Transcript CP1L Modbus RTU
Modbus RTU CP1L with V1000 and Celciux
Settings CP1L
• Serial Gateway • Baudrate 9600 • 8 databits • 1 stopit • Even parity
Settings Celciuxº
Use “CelciuX Technote 3C” Connecting CP1L to CelciuXº Connect CelciuX with PC / CX-Thermo with the E58-CIFQ1 cable and adjust the “Comm. Port B” settings (defaults are CompowayF, 9K6bps, 7-E-2) Set to “Modbus, 9k6 and
8-E-1
” to match the CP1L and
V1000
settings
With V1000 the 8 and 1 are fixed, so then only 8E1 and 8O1 are possible
New CX-Thermo v4 view
Settings V1000 Hardware setup
Settings V1000 Communication settings
Settings V1000
Frequency settings A1-02 B1-01 B1-02 H5-01 H5-02 H5-03 H5-04 H5-05 H5-07 H5-12 0: (V/f control) 2: Serial Com - MEMOBUS/Modbus RS-422/485 terminals 2: Serial Com - MEMOBUS/Modbus RS-422/485 terminals 1: Drive Node Address Serial Comm Adr 3: 9600 bps 1: Even parity 3: Alarm only 1: Enabled - If communication is lost for more than two seconds, a CE fault will occur.
1: Enabled - RTS turns on only when sending.
1: Run command Method Selection
CP1L with V1000 and Celciuxº
When connected you can use either: • CP1L’s “easy Modbus Master” – Make the settings in the memory area of the CP1L to read/write parameters from/to the V1000 and CelciuX
(see next slide)
• CP1L’s function blocks – V1000 settings must be Modbus – CelciuX settings must be CompowayF – The “mix” of protocols work!! CP1L doesn’t care and the slave do not listen to messages from each other – You can use CX-integrator to connect to the CelciuX and use CX-Thermo, the V1000 will give a comms error.
CP1L Easy Modbus Master to EJ1 (example) • Connecting EJ1 – Must connect to port B – SW2 -1 -2 and -8 must be “off” – Select correct unit number of EJ1 in the host – Select PortB comm protocol in EJ1 = Modbus – Datalength must be 8 • With parity none, stop = 2 bits • With parity Odd or Even, stop = 1 bit
CP1L Easy Modbus Master
CP1L Easy Modbus Master to EJ1 (example) Read PV from CelciuX < Request PV
READ PV D32300 : xx01 (Slave number = 1)
(1 byte setting at Bit 7-0)
D32301: xx03 (Function code = 3 = Read)
(1 byte setting at Bit 7-0)
D32302: 0004 (No. of Comms data = 4 bytes)
(0000-005E bytes) (2 bytes setting)
D32303: 0200 (Start address)
( 2 bytes setting)
D32304: 0002 (Reading 2 registers)
( 2 bytes setting) < Reply
0400 5000 > PV = 0050hex 50hex = 80’C (decimal)
< execute request bit
Response on Read PV D32350: xx01 (slave adress =1) D32351: xx03 (Function code = 3 = read) D32352: 0000 (error code = 00 = normal end) D32353: 0005 (number of response bytes = 5)
1=count, 2=data, 2=data in this example it says 0400 5000 0000 or 04 0050 0000 4 bytes, 0050 (=80dec) and 0000 (=0) D32354 to D32399 other response data
CP1L Easy Modbus Master to EJ1 (example) Write SP to CelciuX Send task > Reply > Execution bit >
Write SP D32300 : xx 01
(Slave adress = 1)
D32301: xx 03
(Function code = 10 = write)
D32302: 00 07
(No. of comms data = 7 bytes) data = 02C0 0001 2000 50
D32303: 02 C0
(Start address communication data)
D32304: 00 01
(writing 1 registers)
D32305: 02 00
(data = 02 bytes)
D32306: 50
xx (write SP = 00 50 = 80C) xx = don’t care in this example
Response on write SP D32350: xx01 (slave adress =1) D32351: xx10 (Function code = 10 = write) D32352: 0000 (error code = 00 = normal end) D32353: 0004 (number of response bytes = 4) D32354: 02C0 D32355: 0001
D32356 to D32399 other response data