Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 82

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

Advertisement

Basic Operating Procedure
Input condition
1,2,3...
received data and return responses. An example is provided below for
SEND(090).
SEND(090) can be used to send data from the PLC to a host computer. If the
input condition turns ON when the Communications Port Enabled Flag is ON,
10 words of data from CIO 0100 to CIO 0109 will be sent to the host computer
connected to port 1 on the Serial Communications Unit with network address
0, node address 0, and unit address 10 Hex.
Communications Port
Enabled Flag for Port 0
A20200
The control data for the above instruction is shown in the following table.
Word
Contents
D00200
000A
D00201
0100
D00202
0010
D00203
0000
D00204
0000
A program would be required at the host computer to receive the above data
and return a response.
Protocol Macros
When a standard system protocol (provided in the Serial Communications
Board, Serial Communications Unit, and CX-Protocol) is executed.
Using Standard System Protocols
Board or Unit
1. Setting the Send Data
Programming to
return responses.
Serial Communications
Host computer
Board/Unit
Command
CPU Unit
@SEND (90)
0100
First send word: CIO 0100
"0000" used to send to a host computer.
0000
First control data word: D00200
D00200
Number of send words: 10
Bits 00 to 07: Destination network address 0
Bits 08 to 10: Serial Communications Unit port 1
Bits 00 to 07: Destination unit address 10 Hex
Bits 08 to 15: Destination node address 0
Bits 00 to 04: Number of retries is 0
Bits 08 to 11: Communications port 0
Bit 15: Response required
Response monitoring time: 2 s (default value for 0000)
Uses standard system protocol No. 600
Executed
with
PMCR(260)
(237)
CPU Unit
External device
Example: K3N Series
Section 1-9
SEND(090),
RECV(098),
CMND(490)
Meaning
Digital Panel Meter
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents