User manual
Transferring Data Using Communication Blocks
142
33002479 06 07/2008
Elementary
Description for
WordArr5 with
TCP/IP Ethernet
Elementary description for WordArr5 with TCP/IP Ethernet:
Function Mode of
the WRITE_REG
Module
Although a large number of WRITE_REG function blocks can be programmed, only
sixteen write operations may be active at the same time. In such a case, it is
insignificant whether they are the result of this function block or of other write
operations (for example, MBP_MSTR, MSTR, CWRITE_REG). All function blocks
use one data transaction path and require multiple cycles to complete a job.
If several WRITE_REG function blocks are used within an application, they must at
least differ in the values of their NO_REG or REG_WRITE parameters.
The status signals DONE and ERROR report the function block state to the user
program.
The entire routing information is contained in data structure WordArr5 of input
AddrFld. The type of function block connected to this input and thus the contents of
the data structure depend on the network used.
Please use:
z TCP/IP Ethernet: the function block TCP_IP_ADDR
REQ A rising edge triggers the read transaction.
The REQ parameter can be specified as direct address, located variable or
unlocated variable.
Element Data Type Meaning
WordArr5[1] WORD high value byte: Slot of the NOE module
low value byte: MBP on Ethernet Transporter (MET)
mapping index
WordArr5[2] WORD byte 4 (MSB) of the 32-bit destination IP address
WordArr5[3] WORD byte 3 of the 32-bit destination IP address
WordArr5[4] WORD byte 2 of the 32-bit destination IP address
WordArr5[5] WORD byte 1 (LSB) of the 32-bit destination IP address
Note: A TCP/IP communication between a Quantum PLC (NOE 771xx) and a
Momentum PLC (all TCP/IP CPUs and all TCP/IP I/O modules) is possible only
when one read or write job is carried out in every cycle. If several jobs are sent per
PLC cycle, the communication stops without generating an error message in the
status register of the function block.
Note: For experts: The WordArr5 data structure can also be used with constants.