54
Basic Operating Procedure Section 1-9
Refer to information on the 3rd operand of PMCR(260) in Appendix B
CompoWay/F Master Protocol and set the number of send data words in
S, and set the send data starting in S+1.
2. Coding PMCR(260)
Example:
The following example shows how to use a Serial Communications Board
to read the present value for a K3N-series Digital Panel Meter using the
CompoWay/F Master standard system protocol sequence No. 600:
Send/receive with ASCII conversion and response.
If the input condition turns ON when the Protocol Macro Executing Flag
(CIO 191915 for Port 2) is OFF and the Communications Port Enabled
Flag (A20207: Internal logic port, communications port 7) is ON, commu-
nications sequence No. 600 of the standard system protocol in the Serial
Communications Board is called, and data is sent and received via port 2
of the Serial Communications Board.
Send Data
Receive Data
3. Executing the PMCR(260) Instruction
4. For details on confirming operation, see Section 12 Tracing and I/O Mem-
ory Monitoring in the CX-Protocol Operation Manual (W344).
• 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.
Protocol Macro
Executing Flag
Communications Port
Enabled Flag for Port 7
Communications port 7 and serial port 2
Destination unit address E1: Serial Communications Board
Sequence No. 600
First word of send data
First storage word for receive data
C1
C2
S
D
PMCR(260) (260)
#72E1
#0258
D00000
D00010
FAL (006) 01
Input condition 191915 A20207
ER
7 words from D00000 to D00006
K3N node No. : 00
CompoWay/F command "0101" (reads the K3N present value)
Number of send bytes
CompoWay/F command send data
(Variable type, read start address, 00, number of elements)
S:D00000
D00001
D00002
D00003
D00004
D00005
D00006
0007
0000
0101
000C
C000
0000
0001
Response code is stored.
The read data (in this case, the present value of K3N) is stored.
4 words from D00010 to D00013D:D00010
D00011
D00012
D00013
0004