Panasonic KT4R Communication Instruction Manual Download Page 24

5.6 Message Example

5.6.1 ASCII Mode

Numerals written below the command represent the number of characters.

(1) Read [Slave address 1, PV)]

• A request message from the master

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(30H 33H)

Data item

[0100H]

(30H 31H 30H 30H)

Amount of data

[0001H]

(30H 30H 30H 31H)

Error check

LRC

(46H 41H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

4

4

2

2

• Response message from the slave in normal status [When PV is 600

(0258H)]

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(30H 33H)

Number of

response bytes

[02H]

(30H 32H)

Data

[0258H]

(30H 32H 35H 38H)

Error check

LRC

(41H 30H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

2

4

2

2

(2) Write (Slave address 1

,

SV1)

• A request message from the master [When SV1 is set to 600

(0258H)]

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(30H 36H)

Data item

[0001H]

(30H 30H 30H 31H)

Data

[0258H]

(30H 32H 35H 38H)

Error check

LRC

(39H 45H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

4

4

2

2

• Response message from the slave in normal status

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(30H 36H)

Data item

[0001H]

(30H 30H 30H 31H)

Data

[0258H]

(30H 32H 35H 38H)

Error check

LRC

(39H 45H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

4

4

2

2

• Response message from the slave in exception (error) status (When a value out of the setting range

is set.)
The function code MSB is set to 1 for the response message in exception (error) status, and
[86H (38H, 36H)] is returned. Exception code 03H [(30H, 33H, Value out of the setting range)
is returned (error).

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(38H 36H)

Exception code

[03H]

(30H 33H)

Error check

LRC

(37H 36H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

2

2

2

(3) Read (Slave address 1, SV1)

• A request message from the master

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(30H 33H)

Data item

[0001H]

(30H 30H 30H 31H)

Amount of data

[0001H]

(30H 30H 30H 31H)

Error check

LRC

(46H 41H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

4

4

2

2

• Response message from the slave in normal status [When SV1 is 600

(0258H)]

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(30H 33H)

Number of

response bytes

[02H]

(30H 32H)

Data

[0258H]

(30H 32H 35H 38H)

Error check

LRC

(41H 30H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

2

4

2

2

• Response message from the slave in exception (error) status (When a data item is misread)

The function code MSB is set to 1 for the response message in exception (error) status, and
[83H (38H 33H)] is returned. Exception code 02H (30H 32H, Non-existent data address) is
returned (error).

Header

(3AH)

Slave

address

(30H 31H)

Function

code

(38H 33H)

Exception code

[02H]

(30H 32H)

Error check

LRC

(37H 41H)

Delimiter

CR+LF

(0DH 0AH)

1

2

2

2

2

2

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]

Summary of Contents for KT4R

Page 1: ...for the KT4R Warning Turn the power supply to the instrument off before wiring or checking Working on or touching the terminal with the power switched on may result in severe injury or death due to e...

Page 2: ...wire Shield wire Shield wire RXD TXD DCD DTR DSR RTS CTS 2 3 5 1 4 6 7 8 GND RI 9 FG FG FG FG YA YB COM RX TX COM YA YB SG YA YB SG YA YB SG KT4R Shield wire Shield wire Shield wire Shield wire D sub...

Page 3: ...alent Use a twisted pair cable Terminator Terminal resistor The terminator is mounted at the end of the wire when connecting a personal computer to multiple peripheral devices The terminator prevents...

Page 4: ...tocol Selection item MEWTOCOL Modbus ASCII Modbus RTU Modbus ASCII KT4 command allocation Modbus RTU KT4 command allocation Instrument number Sets the instrument number The instrument numbers should b...

Page 5: ...tion item 1 bit 2 bits Response delay time Response from the controller can be delayed after receiving command from the host computer Setting range 0 to 1000 ms Many times RUN mode PV SV Display Now s...

Page 6: ...er from the communication line within a 1 character transmission period after sending the command in preparation for reception of the response from the slave To avoid collision of transmissions betwee...

Page 7: ...F status of multiple contacts R only 8 points to 1 command can be specified Command 1 2 1 3 1 1 4 RCP R 25H Address Decimal 23H 52H 43H 50H Number of contacts n 1 to 8 52H Contact No 1 10 1 10 0 10 3...

Page 8: ...10 1 10 0 10 3 10 2 10 1 16 0 1 4 1 2 1 R CR 52H Contact No n Contact data n BCC 0DH 10 3 10 2 10 1 16 0 16 1 16 0 Acknowledgement 1 2 1 2 2 1 Number of characters WC CR 25H Address Decimal 24H 57H 4...

Page 9: ...data No Decimal BCC 0DH 10 4 10 3 10 2 10 1 10 0 16 1 16 0 Acknowledgement 1 2 1 2 4 4 RD 25H Address Decimal 24H 52H 44H Starting data Hexadecimal Ending data Hexadecimal 10 1 10 0 16 1 16 0 16 3 16...

Page 10: ...0 10 4 10 3 10 2 10 1 10 0 4 4 2 1 CR Write Starting data Hexadecimal Write Ending data Hexadecimal BCC 0DH 16 1 16 0 16 3 16 2 16 1 16 0 16 3 16 2 16 1 16 0 Low High Low High Acknowledgement 1 2 1 2...

Page 11: ...ontact No n BCC 0DH 10 3 10 2 10 1 16 0 16 1 16 0 Reset 1 2 1 2 5 2 1 MC FFFFF CR 25H Address Decimal 23H 4DH 43H 46H 46H 46H 46H 46H BCC 0DH 10 1 10 0 16 1 16 0 Acknowledgement 1 2 1 2 2 1 MC CR 25H...

Page 12: ...cified data No n Decimal BCC 0DH 10 4 10 3 10 2 10 1 10 0 16 1 16 0 Reset 1 2 1 2 6 2 1 MD FFFFFF CR 25H Address Decimal 23H 4DH 44H 46H 46H 46H 46H 46H 46H BCC 0DH 10 1 10 0 16 1 16 0 Acknowledgement...

Page 13: ...16 1 16 0 16 1 16 0 16 3 16 2 16 1 16 0 16 3 16 2 16 1 16 0 Low High Low High Negative acknowledgement 1 2 1 2 2 1 CR 25H Address Decimal 21H Error code Hexadecimal BCC 0DH 10 1 10 0 16 1 16 0 16 1 16...

Page 14: ...elow Command Code Contents Description RCP Contact Area Read multiple points Reads ON OFF status of multiple contacts R only Up to 8 points to 1 command can be specified WCP Contact Area Write multipl...

Page 15: ...igits are expressed in decimal e g Specifying Contact No of Contact area Read RCP command R 52H Contact No 1 10 3 10 2 10 1 16 0 0 0 2 F R002F Actual designation BCC BCC Block check code is a code to...

Page 16: ...00107 25H 0 30H 1 31H 23H R 52H D 44H D 44H 0 30H 0 30H 1 31H 0 30H 1 31H 0 30H 0 30H 1 31H 0 30H 7 37H 53H Exclusive OR Converts to ASCII BCC H 5 35H BCC L 3 33H 01 RD D 00101 00107 53 CR Phone 800 8...

Page 17: ...H 30H 32H 36H 36H 0DH 0 0 0 0 5 8 0 2 6 6 4 6 2 Write Address 1 Input type Scaling high limit Scaling low limit Decimal point place Write command from the master Input type 4 to 20 mA DC 001EH Scaling...

Page 18: ...me 30 minutes 0 30 001EH DT01008 1008H Step 3 wait value 10 000AH DT01009 1009H Step 4 SV 300 012CH DT01010 100AH Step 4 time 60 minutes 1 00 003CH DT01011 100BH Step 4 wait value 0 0000H DT01012 100C...

Page 19: ...data section converts to the following MEWTOCOL Data Item Data Data Converted to Hexadecimal DT01000 1000H Step 1 SV 200 00C8H DT01001 1001H Step 1 time 60 minutes 1 00 003CH DT01002 1002H Step 1 wait...

Page 20: ...a non existent command or value out of the setting range the slave returns negative acknowledgement Fig 5 1 3 1 5 1 4 No Response The slave will not respond to the master in the following cases Broad...

Page 21: ...after sending the response Can be set in Response delay time p 5 within a range of 0 to 1000 ms 5 3 Transmission Mode There are 2 transmission modes ASCII and RTU in Modbus protocol which have the fo...

Page 22: ...pe Function Code Sub Function Code Contents 03 03H Reads a single or multiple piece s of data from slave s 04 04H Reads information from slave s 06 06H Writes a single piece of data to slave s Data ac...

Page 23: ...II characters RTU Mode After calculating CRC 16 Cyclic Redundancy Check from the slave address to the end of the data the calculated 16 bit data is appended to the end of message in sequence from low...

Page 24: ...a value out of the setting range is set The function code MSB is set to 1 for the response message in exception error status and 86H 38H 36H is returned Exception code 03H 30H 33H Value out of the set...

Page 25: ...0C8H 1004H Step 2 time 120 minutes 2 00 0078H 1005H Step 2 wait value 0 0000H 1006H Step 3 SV 300 012CH 1007H Step 3 time 30 minutes 0 30 001EH 1008H Step 3 wait value 10 000AH 1009H Step 4 SV 300 012...

Page 26: ...ytes 1EH 31H 45H 1 2 2 2 Data 00C8003C000A00C800780000012C001E000A012C003C0000000000780000H 30H 30H 43H 38H 30H 30H 33H 43H 30H 30H 37H 38H 30H 30H 30H 30H 60 Error check LRC 35H 41H Delimiter CR LF 0...

Page 27: ...the setting range is set The function code MSB is set to 1 for the response message in exception error status and 86H is returned Exception code 03H Value out of the setting range is returned error 3...

Page 28: ...wait value 10 000AH 1003H Step 2 SV 200 00C8H 1004H Step 2 time 120 minutes 2 00 0078H 1005H Step 2 wait value 0 0000H 1006H Step 3 SV 300 012CH 1007H Step 3 time 30 minutes 0 30 001EH 1008H Step 3 w...

Page 29: ...bytes 1EH 1 1 1 Data 00C8003C000A00C800780000012C001E000A012C003C0000000000780000H 30 Error check CRC 16 F340H 3 5 idle characters 2 Response message data section converts to the following Data Item D...

Page 30: ...the master When acknowledgement is returned the slave simply returns the original function code When negative acknowledgement is returned the MSB of the original function code is set as 1 for the resp...

Page 31: ...he slave is composed of Sub function code 14 0EH for the request Read Device ID code Object ID and Exception code when negative acknowledgement is returned Function code 1 byte 2BH Sub function code M...

Page 32: ...0H Data 00C8003C000AH Error check CRC 16 E7D9H 3 5 idle characters 1 1 2 n x 2 2 2 Read Slave address 1 Device identification information Vendor name company name A request message from the master 3 5...

Page 33: ...ct ID 1 byte 00H List of Object length 1 byte 43 2BH List of Object value Object length P 50H a 61H n 6EH a 61H s 73H o 6FH n 6EH I 69H c 63H 20H I 49H n 6EH d 64H u 75H s 73H t 74H r 72H I 69H a 61H...

Page 34: ...ID code 1 byte 04H Conformity level 1 byte 81H More Follows 1 byte 00H Next Object ID 1 byte 00H Number of Objects 1 byte 01H List of Object ID 1 byte 01H List of Object length 1 byte 12 0CH List of O...

Page 35: ...850 0 000CH JPt100 200 0 to 500 0 000DH Pt100 200 to 850 000EH JPt100 200 to 500 000FH K 328 to 2498 0010H K 328 0 to 752 0 0011H J 328 to 1832 0012H R 32 to 3200 0013H S 32 to 3200 0014H B 32 to 330...

Page 36: ...y communication command DT00107 03 06 10H 0007H Event output EV2 allocation 1 0000H No event 0001H Alarm output High limit alarm 0002H Alarm output Low limit alarm 0003H Alarm output High Low limits a...

Page 37: ...bled 0001H Enabled DT00141 03 06 10H 0029H EV2 alarm hysteresis Set value Decimal point ignored DT00142 03 06 10H 002AH EV2 alarm delay time Set value DT00143 03 06 10H 002BH EV2 alarm Energized De en...

Page 38: ...03 06 10H 005CH Output status when input errors occur 0000H Output OFF 0001H Output ON DT00193 03 06 10H 005DH Auto Manual after power interruption 0000H Automatic control 0001H Manual control DT00194...

Page 39: ...is selected 0000H Program control STOP 0001H Program control RUN DT00327 03 06H 00E3H Program control Holding Not holding 0000H Not holding 0001H Holding DT00328 03 06H 00E4H Output by communication...

Page 40: ...B2 EV1 output 0 OFF 1 ON B3 EV2 output 0 OFF 1 ON B4 Reserved B8 Reserved B9 AT Auto reset AT on startup Stop Perform 0 Stop 1 Perform B10 AT Auto reset AT on startup 0 AT Auto reset 1 AT on startup B...

Page 41: ...rmation 1 B0 Reserved B1 EV2 output Enabled Disabled 0 Disabled 1 Enabled B2 Reserved B4 Reserved B5 Reserved B6 Reserved B7 Communication function Enabled Disabled 0 Disabled 1 Enabled B8 Heating Coo...

Page 42: ...06 10H 100CH Step 5 SV Set value Decimal point ignored DT01013 03 06 10H 100DH Step 5 time 12 Set value Decimal point ignored DT01014 03 06 10H 100EH Step 5 wait value Set value Decimal point ignored...

Page 43: ...nction Auto Manual control Program control RUN STOP When Control output OFF function is selected 0000H Control output ON OFF 0001H Control output OFF ON When Auto Manual control is selected 0000H Auto...

Page 44: ...001H Perform ON R002A R AT AT on startup status 13 0000H AT is performing OFF 0001H AT on startup is performing ON R002B R Reserved 2 Always 0000H R002C R Loop break alarm 0000H OFF 0001H ON R002D R O...

Page 45: ...0000H OFF 0001H ON R004A R Reserved 2 Always 0000H R004B R Reserved 2 Always 0000H R004C R Reserved 2 Always 0000H R004D R Reserved 2 Always 0000H R004E R Reserved 2 Always 0000H R004F R Reserved 2 Al...

Page 46: ...No R0100 is read or written Error code 61H will be returned If Data larger than DT10000 is read or written Error code 61H will be returned 1 If any action is changed in Event output EV1 allocation or...

Page 47: ...t value for DC voltage current inputs Error 06 Underscale PV has dropped below Input range low limit value Scaling low limit value for DC voltage current inputs Error 07 Input burnout or disconnection...

Page 48: ...ignored 03 06H 0012H Set value lock 0000H Unlock 0001H Lock 1 0002H Lock 2 0003H Lock 3 0004H Lock 4 0005H Lock 5 03 06H 0013H SV high limit Set value Decimal point ignored 03 06H 0014H SV low limit...

Page 49: ...andby alarm 0009H Alarm output High Low limits with standby alarm 03 06H 0025H EV1 alarm hysteresis Set value Decimal point ignored 03 06H 0026H EV2 alarm hysteresis Set value Decimal point ignored 03...

Page 50: ...32 to 3200 0014H B 32 to 3308 0015H E 328 to 1472 0016H T 328 0 to 752 0 0017H N 328 to 2372 0018H PL 32 to 2534 0019H C W Re5 26 32 to 4199 001AH Pt100 328 0 to 1562 0 001BH JPt100 328 0 to 932 0 00...

Page 51: ...default value For the items to be initialized Refer to Section 6 6 Items to Be Initialized by Changing Settings p 56 The following items cannot be selected via software communication They can only be...

Page 52: ...s the value before the setting the value will not be written in non volatile IC memory Setting range of each item is the same as that of keypad operation When data set value has a decimal point a whol...

Page 53: ...l stop While AT is performing in Program control if any item except AT AT on startup Auto reset Cancel Program control STOP Direct Reverse action Program control Advance Perform Program control Holdin...

Page 54: ...ation change flag clearing to 0001H Clear key operation change flag 2 Set the program depending on the acknowledgement or negative acknowledgement as follows When acknowledgement is returned Consider...

Page 55: ...oop bread alarm time 001EH Yes No No No Loop bread alarm span 001FH Yes No No No SVTC bias 0053H Yes No No No Remote bias 0056H Yes No No No EV2 alarm value 0014H Yes No Yes No EV2 high limit alarm va...

Page 56: ...No No Scaling low limit 0019H Yes No No EV1 alarm value 000BH Yes Yes No Loop bread alarm time 0010H Yes No No Loop bread alarm span 0011H Yes No No EV2 alarm value 000CH Yes No Yes OUT2 proportional...

Page 57: ...Communication protocol MEWTOCOL Modbus ASCII Modbus RTU Modbus ASCII KT4 command allocation Modbus RTU KT4 command allocation Selectable by keypad Data format is different depending on the communicat...

Page 58: ...arameters pages 4 5 The instrument number address of the slave does not correspond to that of the command Check the instrument number address of the slave and the command Refer to Section 3 Setting Co...

Reviews: