GE GFK-2892F User Manual page 64

Pacsystems rx3i genius communications gateway
Table of Contents

Advertisement

Chapter 6. COMMREQ/Data_Init_Comm Programming
COMMREQ Status Block
Once a COMMREQ command is completed, the PROFINET Controller writes any resulting data into the area
designated in the COMMREQ command and then sets the status to Complete (4). However, if an error occurred
during processing of the command, the status will be set to one of the possible error values. Possible status
values are listed below.
Note:
Because COMMREQs require write access to return their status, level 1 and 2 Controller
passwords, which prevent write access, cannot be used with COMMREQs. If an illegal
memory type is specified, a fault will be generated.
If one of the bit–oriented memories (%I or %Q) is used as the status location, the designated bits can be
monitored. These bits correspond to the binary values listed below. For example, if %I048 were selected as the
beginning location, reference %I050 would be set to 1 each time the COMMREQ completed successfully
(corresponding to a value of 04 Hex).
Clearing the Status Block
COMMREQs to the target PROFINET Controller should be executed sequentially. Before sending a COMMREQ to the
PROFINET Controller, the application program should check the status of any previous COMMREQ to that specific
PROFINET Controller.
CPU Memory
Status Block
When the previous COMMREQ has completed, the user's PLC program should set the Status Block to zero. Establishing this
initial condition allows the program to differentiate between the result of an earlier command and the currently–executing
command.
Contents of the Status Block
The Status Block consists of two words in PLC memory to which the PROFINET Controller returns the status of the
COMMREQ.
The lower word is used for general information about the execution of the COMMREQ:
VALUE
decimal
Binary
(word)
(bit)
0
00000000
00000000
1
00000000
00000001
2
00000000
00000010
4
00000000
00000100
8
00000000
00001000
16
00000000
00010000
128
00000000
10000000
4096
00010000
00000000
32769
00100000
00000001
32770
00100000
00000010
56
DESCRIPTION
Command has not been processed.
Command not accepted: target PROFINET Controller busy with previous request.
Command currently being processed, not yet completed.
Command completed successfully.
Command terminated due to a syntax error.
Command terminated due to a data error.
Command not supported.
Command failed.
Unknown Task ID rejected by the PNC COMMREQ Manager.
PNC COMMREQ Manager got an internal error while dispatching the request.
PACSystems RX3i Genius Communications Gateway
Application Program
Check completion of prior
COMMREQ
GFK-2892F

Advertisement

Table of Contents
loading

Table of Contents