Using The Message Service - Omron SYSMAC CS1W-CLK13 Operation Manual

Optical ring controller link units, h-pcf/gi cable
Table of Contents

Advertisement

Using the Message Service

6-3
Using the Message Service
Network Instruc-
Execution
tion Enabled Flag
condition
Reset B
Active Node Flag for re-
mote node
A
Active Node Flag for
local node
Network Instruction
Enabled Flag
A
Network Instruction Error Flag
A
Network Instruction
Execution
Enabled Flag
condition
Reset D
(Continues in the same way.)
SEND/RECV Flags
CS-series PLCs
Network Instruc-
tion Enabled Flag
Network Instruc-
tion Error Flag
Note
154
With SEND, RECV, and CMND, the Network Instruction Enabled Flag and
Network Instruction Error Flag are generally written into the program as input
conditions, as shown below. Only one instruction can be executed at a time for
any given communications port. Exclusive control thus must be incorporated
to execute nine or more instructions with CVM1 and CV-series PLCs
(because CVM1 and CV-series PLCs have eight ports). A program example is
given below.
C
KEEP A
Keep instruction
Operand and
control data cre-
ation by @MOV
and @XFER
Communications
instruction
@SEND
@RECV
@CMND
Startup differ-
ential
DIFU B
A
KEEP C
Keep instruc-
tion
Name
Word
A202
Port number corresponds
to bit number, i.e., port 0:
bit 00, port 1, bit 00, etc.
A219
Port number corresponds
to bit number plus 8, i.e.,
port 0: bit 08, port 1, bit 09,
etc.
With CS-series PLCs, ports 0 to 7 are also used for executing the PMCR (Pro-
tocol Macro) instruction, therefore these flags are used for the 4 instructions,
SEND/RECV/CMND/PMCR. When the PMCR command is being executed,
the same port cannot be used for SEND/RECV/CMND instructions.
Turns A ON from beginning to completion of
communications instruction.
Creates operand and control data in a given area.
Executes communications instruction.
Creates reset input. (Turns reset B ON after execution of
communications instruction.)
In case of Send Error Flag, re-send processing
can be executed.
Exclusive control to prevent simultaneous execution:
Establishes exclusive control so that no communications
instruction is started before the previous one has been
completed.
Address
Bit
0: Execution not enabled (executing)
1: Execution enabled (not executing)
0: Normal end
1: Abnormal end
Section 6-3
Contents

Advertisement

Table of Contents
loading

Table of Contents