Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 240

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

Using the Serial Gateway
Serial Communications Board
Serial port 1
Serial port 2
CPU Unit
Peripheral port
RS-232C port
Note
W000.00
Execution condition
W000.01
Communications
Port Enabled
Flag for Port No.
0
W000.02
Serial Communications Boards
Serial port
Serial port 1
Serial port 2
CPU Unit
Serial port
Peripheral port
RS-232C port
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.)
SET
1500.04
ASL
W000
A20200
150915
PMCR
Protocol
C1
Macro
C2
S
Executing
D
Flag (n+9,
bit 15)
ASL
W000
150915
150915
RSET
1500.04
Protocol Macro
Executing Flag
(n+9, bit 15)
Serial port number
E4 hex (228 decimal)
E5 hex (229 decimal)
Serial port number
FD hex (253 decimal)
FC hex (252 decimal)
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.
At the same time, bit 00 of W000 is shifted one bit to the left.
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.
At the same time, bit 00 of W000 is shifted one bit to the left.
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.
Section 6-4
211

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents