211
Using the Serial Gateway Section 6-4
Serial Communications Boards
CPU Unit
Note The following ladder program example shows how to return the Serial Gate-
way to the not prohibited status when the PMCR(260) instruction has been
executed and the sequence is completed. (This example uses port number 1
of a Serial Communications Unit with unit number 0.)
Serial port Serial port number
Serial port 1 E4 hex (228 decimal)
Serial port 2 E5 hex (229 decimal)
Serial port Serial port number
Peripheral port FD hex (253 decimal)
RS-232C port FC hex (252 decimal)
Serial Communications Board
Serial port 1
Serial port 2
CPU Unit
Peripheral port
RS-232C port
SET
1500.04
PMCR
C1
C2
W000.01 A20200
ASL
W000
W000.00
150915
S
D
RSET
1500.04
W000.02
150915 150915
ASL
W000
Execution condition
At the same time, bit 00 of W000 is shifted one bit to the left.
At the same time, bit 00 of W000 is shifted one bit to the left.
Communications
Port Enabled
Flag for Port No.
0
Protocol
Macro
Executing
Flag (n+9,
bit 15)
Protocol Macro
Executing Flag
(n+9, bit 15)
When execution condition W00000 is ON, the Serial Gateway Prohibited Flag
(port 1: Word n, bit 04: CIO 1500, bit 04) turns ON and the Serial Gateway is
prohibited.
When W00001 is ON, the Communications Enabled Flag for port No. 0
(internal logic port) is ON, and the Protocol Macro Executing Flag (port 1:
Word n+9, bit 15: CIO 150915) is OFF, the PMCR(260) instruction
executes.
When W00002 is ON, the sequence ends, and the Protocol Macro Executing
Flag (port 1: Word n+9, bit 15: CIO 150915) turns from ON to OFF, the Serial
Gateway Prohibited Flag (port 1: Word n, bit 04: CIO 150004) is reset to 0,
and the Serial Gateway is no longer prohibited.