Basic Operating Procedure
Protocol Macro
Executing Flag
Input condition
191915
54
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.
Communications Port
Enabled Flag for Port 7
A20207
PMCR(260) (260)
C1
C2
S
D
ER
FAL (006) 01
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
0007
S:D00000
D00001
0000
D00002
0101
D00003
000C
D00004
C000
D00005
0000
D00006
0001
Receive Data
D:D00010
0004
D00011
D00012
D00013
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.
Communications port 7 and serial port 2
Destination unit address E1: Serial Communications Board
#72E1
#0258
Sequence No. 600
D00000
First word of send data
D00010
First storage word for receive data
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)
4 words from D00010 to D00013
Response code is stored.
The read data (in this case, the present value of K3N) is stored.
Section 1-9