PLUGIN_READ (read plug-in)

The PLUGIN_READ instruction reads data from a generic plug-in module.
When a plug-in generic module is not present, all values return to zero (0).
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
PLUGIN_READ
PLUGIN_READ
PLUGIN_READ parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Execute UPM read.
  • FALSE: There is no read operation and the data inside the data array is not valid.
SlotID
Input
UINT
Plug-in slot number.
Slot ID = 1,2,3,4,5 (starting with the far left slot = 1).
Offset
Input
UINT
Address offset of the first data to be read, calculating from the first byte of the plug-in generic module.
DataLength
Input
UINT
The number of bytes to be read.
DataArray
Input
USINT
An array used to store the data read from the plug-in generic module.
Sts
Output
UINT
Status codes for PLUGIN_READ.
Status (Sts) codes:
  • 0x00: Function block not enabled (no operation).
  • 0x01: Plug-in operation success.
  • 0x02: Plug-in operation fails due to an invalid Slot ID.
  • 0x03: Plug-in operation fails because it is not a valid plug-in generic module.
  • 0x04: Plug-in operation fails due to data operated out of range.
  • 0x05: Plug-in operation fails due to a data access parity error.
ENO
Output
BOOL
Enable output.
Applies only to ladder diagram programs.

PLUGIN_READ examples

PLUGIN_READ function block diagram example
PLUGIN_READ function block diagram example
PLUGIN_READ ladder diagram example
PLUGIN_READ ladder diagram example
PLUGIN_READ structured text example
PLUGIN_READ structured text example
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal