Download "user manual"

Transcript
Section 1-11
Basic Procedure of the Protocol Macro Usage
Procedure 3 Connection with External Devices
CS1W-SCB41-V1 Serial Communications Board
CS1W-SCU21-V1 Serial Communications Unit
CPU Unit
Port 1
Port 1
RS-232C
Port 2
Port 2
RS-422A/485
RS-232C
General-purpose
external device
RS-232C
General-purpose
external device
General-purpose
external device
General-purpose General-purpose
external device external device
Note For connector pin arrangements and connection methods, refer to the CS/CJ
Series Serial Communications Boards/Unit Operation Manual (W336) and
other relevant manuals for general-purpose external devices.
Procedure 4 Initial Setting
1,2,3...
1. For Connecting Cables between the PLC and the CX-Protocol, refer to
1-4 System Configuration.
2. PLC Setup of the CPU Unit and the PMSU.
PLC Setup for Connecting the PLC to the CX-Protocol.
Perform the following setups (a) and (b). The communications conditions
designated in (a) and (b) must be coherent.
a) Using the CX-Protocol, designate a target PLC model and perform the
communications setup between the personal computer and the PLC.
b) Using a Programming Device for PLC’s CPU Unit, perform the PLC
setup according to a connected port.
PLC Setup of the Serial Communications Board
Allocated DM area: D32000 to D32767
D32000 to D32009
D32010 to D32019
D32020 to D32767
PLC setup of port 1
PLC setup of port 2
Reserved by the system
PLC Setup of the Serial Communications Unit
Allocated DM area: D30000×100 Unit No.
DM area
Unit No.
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
D30000 to D30099
D30100 to D30199
D30200 to D30299
D30300 to D30399
m to m+9: PLC setup of port 1
m+10 to m+19: PLC setup of port 2
m+20 to m+99: Not used
D30400 to D30499
D30500 to D30599
D30600 to D30699
D30700 to D30799
D30800 to D30899
D30900 to D30999
D31000 to D31099
D31100 to D31199
D31200 to D31299
D31300 to D31399
D31400 to D31499
D31500 to D31599
Example: Setting the Default Communications Conditions (m=D30000+100×Unit No.)
Board
Port 1
Port 2
D32000 D32010
Unit
Port 1
Port 2
m
m+10
D32001
D32008
D32009
m+1
m+8
m+9
D32011
D32018
D32019
m+11
m+18
m+19
Bits
15
11 to 08
03 to 00
15
15 to 00
Settings
0: Start bit=1 bit, Data length=7 bits, Parity=Even, Stop bit=2 bits
6: Protocol macro
0: Baud rate: 9600 bits/s
0: Half-duplex
00C8 Hex: Protocol send/receive data bytes: 200 bytes max.
27