Chapter 6. COMMREQ/Data_Init_Comm Programming
50
PACSystems RX3i Genius Communications Gateway
GFK-2892F
6.1
COMMREQs and Passwords
Level 1 and 2 controller passwords, which prevent write access, cannot be used in applications that include
COMMREQs. COMMREQs require write access to return their completion status and requested data.
6.2
Programming for a COMMREQ Communication Request
In order to communicate via a COMMREQ with a Genius device attached via a Genius Gateway module, the
application program should perform the following actions.
1)
Supply the content of the COMMREQ communication
. Ladder logic Block Moves,
Data_Init_Comm
, or
similar program instructions can be used to place the required information into CPU memory. This content
is called the Command Block.
CPU Memory
Application Program
Command Block
Edit content of COMMREQ
2)
Clear status block
. The program should set the status block to all zeroes (see programming example
Figure 30). Establishing this initial condition allows the program to differentiate between the result of an
earlier command and the currently
–
executing COMMREQ command.
CPU Memory
Application Program
Status Block
Clear status block
(set value to zero)
3)
Use a COMMREQ instruction to perform the intended function
.
Application Program
PROFINET-Genius Genius Device
COMMREQ instruction issued
to targeted PROFINET
Controller
Gateway
converts
COMMREQ
content into
Genius Datagram
I/O Module receives Genius
Datagram from Gateway
4)
Check the status of the initiated COMMREQ task
. COMMREQs should be executed sequentially. The
application program should check that the status of the previous COMMREQ to the targeted PROFINET
Controller is complete before sending it another one. Failure to do this may result in improper operation of
the PROFINET Controller.