GE PACSystems RX3i Genius User Manual page 55

Programmable control products, communications gateway
Table of Contents

Advertisement

If any fault intrinsic to the conduct of the COMMREQ occurs, power flow passes to the FT
output instead.
If there are errors in the portion of the Command Block used specifically by the PROFINET
Controller or Genius Gateway (for example, the Device Number entered is incorrect), these
errors are reflected in the value returned in the Status Block location, not in the FT output.
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.
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:
decimal
(word)
0
1
2
4
8
16
128
4096
32769
32770
GFK-2892B
CPU Memory
Status Block
VALUE
DESCRIPTION
binary
(bit)
00000000
00000000
Command has not been processed.
00000000
00000001
Command not accepted: target PROFINET Controller busy with previous request.
00000000
00000010
Command currently being processed, not yet completed.
00000000
00000100
Command completed successfully.
00000000
00001000
Command terminated due to a syntax error.
00000000
00010000
Command terminated due to a data error.
00000000
10000000
Command not supported.
00010000
00000000
Command failed.
00100000
00000001
Unknown Task ID rejected by the PNC COMMREQ Manager.
00100000
00000010
PNC COMMREQ Manager got an internal error while dispatching the request.
PACSystems RX3i Genius Communications Gateway User Manual
Chapter 6. COMMREQ/Data_Init_Comm Programming
Application Program
Check completion of prior
COMMREQ
Public 51

Advertisement

Table of Contents
loading

Table of Contents