User manual

Transferring Data Using Communication Blocks
134
33002479 06 07/2008
CWRITE_REG
Function
Description
Thie CWRITE_REG block writes data to a register area continuously, transferring
data from the PLC via TCP/IP Ethernet to an addressed slave.
EN and ENO can be configured as additional parameters.
Symbol Block representation:
Parameter
Description
Description of parameters:
Note: About this function block:
z When programming this function, you must be familiar with the routing
procedures used by your network.
z For technical reasons, this function block does not allow the use of ST and IL
programming languages.
CWRITE_REG
SLAVEREGDINT
NO_REG
INT
REG_WRIT
WORD
AddrFld
WordArr5
WORD
STATUS
Parameter Data Type Meaning
SLAVEREG DINT offset address of the first %MW word (4x register) in the
slave to be written to
NO_REG INT number of registers to be written to slave
REG_WRIT WORD first %MW word (4x register) of the source data area
AddrFld WordArr5 data structure for transferring the TCI/IP address
STATUS WORD MSTR error code