Omron CQM1H-SCB41 Operation Manual page 84

Sysmac cqm1h series serial communications board
Hide thumbs Also See for CQM1H-SCB41:
Table of Contents

Advertisement

Application Procedure
Input condition
e) Transferring the created project to the Board:
See 11.1 Transferring and Reading Protocol Data between Personal
Computers and Serial Communications Boards.
3. Create the ladder program.
a) Setting Send Data
• Specifying Operands
Set the send data in the I/O memory after the S+1 operand of the PM-
CR( ) instruction. Set the number of send data words (including S it-
self) in S.
• Direct Designations
Set the send data in the I/O memory specified by the read variables in
the send message.
• Specifying Link Words
Set the send data in the O1 or O2 area of the Link Word Area.
b) Coding PMCR( )
Protocol Macro
Executing Flag
If the input condition turns ON when the Protocol Macro Executing Flag
(IR 20708 for port 1) is OFF, communications sequence No. 100 registered
in the Serial Communications Board is called, and data is sent and re-
ceived via port 1 of the Serial Communications Board.
The amount of send data depends on the number of words specified in
DM 0000 (the number of words after DM 0001 plus 1 for DM 0000 itself),
and is sent from the next word after DM 0001.
S: DM 0000
The receive data is stored in consecutive words beginning with DM 1000,
and the number of words actually stored in DM 1000 (the number of words
after DM 1001 plus 1 for DM 1000 itself) is stored.
D: DM 1000
Number of words
DM 1001
c) Execute PMCR( )
4. For details on the confirming operation, see Section 12 Tracing and Moni-
toring.
• Transmission Line Tracing
The data in the send/receive messages flowing over the transmission
line (RS-232C or RS-422A/485) and the control codes are traced.
• I/O Memory Monitoring
Monitors send/receive data and the status of the various flags.
PMCR
#1100
1: Use port 1, 600: Sequence No. 100
First word of send data
DM0000
First storage word for receive data
DM1000
Number of send words plus 1 for DM 0000
Number of words
Send data
Number of words
Number of receive words plus 1 for DM 1000
Receive data
Number of words
Section 5-3
69

Advertisement

Table of Contents
loading

Table of Contents