20 SERIAL COMMUNICATION INSTRUCTIONS
20.14 Reading User Frames
1719
20
• The data of the user frame is read from the module specified by (U).
• The completion status of the G(P).GETE instruction can be checked with the completion device (d) and the completion
status indication device (d)+1.
• The following figure shows how the G(P).GETE instruction operates when completing its execution.
• The following table summarizes the processes that take place if another instruction is issued while the G(P).GETE
instruction is active or the G(P).GETE instruction is issued while another instruction is active with the same channel.
• Completion device (d)
This device turns on during END processing of the scan where the G(P).GETE instruction completes, and turns off during the next END processing.
• Completion status indication device (d)+1
This device turns on or off depending on the completion status of the G(P).GETE instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the G(P).GETE instruction completes, and turns off during the
next END processing.
Instruction to execute
concurrently
Possibility of
concurrent execution
Handling for concurrent execution
G(P).ONDEMAND
G(P).OUTPUT
G(P).PRR
G(P).BIDOUT
G(P).BIDIN
G.INPUT
ZP.CSET
G(P).PUTE A dedicated instruction concurrent execution error (7FF0H) occurs in the second
instruction.
G(P).GETE The instruction is ignored and does not start processing until the active instruction
completes.
Z.BUFRCVS
G(P).SPBUSY
ZP.UINI A dedicated instruction concurrent execution error (7FF0H) occurs in the second
instruction.
G(P).CPRTCL
(s2)+0
b15 b8
A A
B
C
D
E
F
(s2)+1
C
(s2)+2
E
b7 b0
B
D
F
(s1)+3
User frame
CPU module
Reading
a user frame
Serial communication
module
……
END0 0 END0ENDEND 0 END0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
G(P).GETE instruction
Completion device (d)
1 scan
Completion of
the instruction
Completed successfully
Completed with an error
Execution of the instruction
Completion status
indication device (d)+1