PLUGIN_WRITE (write plug-in)

The PLUGIN_WRITE instruction writes a block of data to any plug-in generic module hardware.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
PLUGIN_WRITE
PLUGIN_WRITE
PLUGIN_WRITE parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Execute plug-in write.
  • FALSE: There is no data write operation.
SlotID
Input
UINT
Plug-in slot number.
Slot ID = 1,2,3,4,5 (starting with the far left slot = 1).
AddrOffset
Input
UINT
Address offset of the first data to be written, calculating from the first byte of the plug-in generic module.
DataLength
Input
UINT
The number of bytes to be written.
DataArray
Input
USINT
Data to be written to the plug-in generic module.
Sts
Output
UINT
PLUGIN_WRITE status codes.
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_WRITE examples

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