![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-scu21-v1/sysmac-cj1w-scu21-v1_operation-manual_743586205.webp)
176
Using Protocol Macros
Section 5-4
5-4
Using Protocol Macros
5-4-1
Executing Communications Sequences
Use the PMCR(260) instruction to execute communications sequences.
PMCR(260) Instruction Specifications
Control Data 1 (C1)
The following items are specified in C1.
Communications Port No. (Internal Logical Port Number)
Specify internal logical port 0 to 7 Hex for executing the PMCR(260) instruc-
tion.
Note
A CS/CJ-series CPU Unit has eight internal logical ports for executing FINS
commands. Specify the logical port number to be used for execution. These
ports are also used by the SEND(090), RECV(098), and CMND(490) instruc-
tions used for Host Link communications. Refer to
4-4-1 Simultaneous Com-
mands and Communications Ports
for details.
Serial Port No. (Physical Port)
Set the physical port number of the Serial Communications Board or Unit con-
nected to the remote device.
Port 1: 1 Hex, Port 2: 2 Hex
Destination Unit Address
Specify the Unit address of the Serial Communications Board or Unit to exe-
cute the protocol macro.
Serial Communications Board: E1 Hex
Serial Communications Unit: Unit number (see note) + 10 Hex
Setting range: 10 to 1F Hex
Note
This is the unit number (0 to F) for the CPU Bus Unit set on the rotary switch
on the front panel of the Unit.
Control Data 2 (C2)
C2 specifies the communications sequence number in hexadecimal (000 to
999).
Setting range: 0000 to 03E7 Hex
First Send Data Word (S)
S specifies the first word of the area in which the data required for sending is
stored.
Control data 1 (communications port No., serial port No.,
destination unit address)
Control data 2 (communications sequence No.)
First send word
First receive data storage word
(@) PMCR (260)
C1
C2
S
R
Communications port No. Serial port No. Destination unit address
15
12 11
08 07
00
Number of send words
Total number of words including S
Send data
Word
S
S+1
S+n
0
0
15
12 11
08 07
00
Summary of Contents for SYSMAC CJ1W-SCU21-V1
Page 3: ...iv...
Page 5: ...vi...
Page 9: ...x...
Page 15: ...xvi...
Page 89: ...60 Basic Operating Procedure Section 1 9...
Page 151: ...122 RS 232C and RS 422A 485 Wiring Section 3 4...
Page 173: ...144 Host Link Function for Replacing Existing PLCs Section 4 6...
Page 223: ...194 Enhanced Protocol Macro Functions Section 5 6...
Page 277: ...248 Communications Frames Section 6 8...
Page 291: ...262 Basic Operating Procedure in No protocol Mode Section 7 4...
Page 301: ...272 Auxiliary Area and CIO Area Allocations Section 8 3...
Page 391: ...362 Introduction Appendix A...
Page 421: ...392 CompoWay F Master Protocol Appendix B...
Page 513: ...484 E5 K Digital Controller Read Protocol Appendix F...
Page 571: ...542 E5ZE Temperature Controller Write Protocol Appendix I...
Page 587: ...558 E5 J Temperature Controller Protocol Appendix J...
Page 627: ...598 ES100 Digital Controller Protocol Appendix K...
Page 661: ...632 V500 V520 Bar Code Reader Protocol Appendix M...
Page 697: ...668 3Z4L Laser Micrometer Protocol Appendix N...
Page 717: ...688 Visual Inspection System Protocol Appendix O...
Page 755: ...726 V600 V620 ID Controller Protocol Appendix P...
Page 763: ...734 Hayes Modem AT Command Protocol Appendix Q...
Page 767: ...738 Changing Communications Port Settings Using STUP 237 Appendix R...
Page 781: ...752 Revision History...