Download Print this page
Panasonic KT4R Communication Instruction Manual
Panasonic KT4R Communication Instruction Manual

Panasonic KT4R Communication Instruction Manual

Temperature controller
Hide thumbs Also See for KT4R:

Advertisement

Quick Links

This manual contains instructions for communication functions of the KT4R.
To prevent accidents arising from the misuse of this controller, please ensure the operator receives this manual.
For model number and basic operation, please read the User's Manual 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 electric shock.
1. System Configuration
1.1 When Using Communication Converter (sold separately)
Host computer
1.2 When U sing a PLC
PLC
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
COMMUNICATION INSTRUCTION MANUAL
Communication converter
(sold separately)
RS-232C
RS-485
(Fig. 1.1-1)
RS-485
(Fig. 1.2-1)
KT4R
No. 1
No. 2
KT4R
No. 1
No. 2
Temperature Controller
No. KT4RCE1 2015.06
No. 31
No. 31
KT4R

Advertisement

loading

Summary of Contents for Panasonic KT4R

  • Page 1 This manual contains instructions for communication functions of the KT4R. To prevent accidents arising from the misuse of this controller, please ensure the operator receives this manual. For model number and basic operation, please read the User’s Manual for the KT4R. Warning Turn the power supply to the instrument off before wiring or checking.
  • Page 2 2. Wiring 2.1 When Using Communication Converter (sold separately) Communication converter KT4R Host computer (sold separately) ⑯ YA(-) YA(-) ⑰ YB(+) YB(+) ⑱ SG Shield wire Shield wire Shield wire ⑯ YA(-) ⑰ YB(+) RS-232C RS-485 ⑱ SG D-sub 9-pin connector Shield wire ⑯...
  • Page 3 The terminator is mounted at the end of the wire when connecting a personal computer to multiple peripheral devices. The terminator prevents signal reflection and disturbance. It is not necessary to connect a terminator to the communication line because the KT4R has built-in pull-up and pull-down resistors.
  • Page 4 3. Setting Communication Parameters Set communication parameters in Engineering mode. To enter Engineering mode, press and hold the keys (in that order) for approx. 3 seconds in RUN mode. Use the key for settings (or selections). To register the set data, use the key.
  • Page 5 Characters, Setting Item, Function, Setting Range Factory Default Stop bit • Selects the stop bit. • Selection item: 1 bit 2 bits Response delay time • Response from the controller can be delayed after receiving command from the host computer. •...
  • Page 6 (Fig. 4.1.2-1) 4.1.3 Negative Acknowledgement Host computer KT4R When the host computer sends a non-existent command or value out of the setting range, the KT4R Non-existent command or returns a negative acknowledgement. data out of the setting range Negative acknowledgement (Fig.
  • Page 7 4.3 Data Format Data format is shown below. Start bit Parity Stop bit Start bit 1 bit Data bit 7 bits/8 bits Parity Even parity/Odd parity/No parity Stop bit 1 bit/2 bits 4.4 Command Structure All commands are composed of ASCII, and have the following structures. Numerals written above the command represent the number of characters.
  • Page 8 4.4.2 WCP Command Structure Contact Area Write Multiple contacts (R only) are set to ON/OFF. 8 points to 1 command can be specified. Command Number of Address Contact No. Contact data contacts 57H 43H 50H (Decimal) (1 to 8) Contact No. Contact data Acknowledgement ・・・Number of characters...
  • Page 9 4.4.3 RD Command Structure Data Area Read Reads contents of data area (DT area only). 16 pieces of data to 1 command can be specified. Command Address Starting data No. (Decimal) ( Decimal) 52H 44H Ending data No. (Decimal) Acknowledgement Address Starting data Ending data...
  • Page 10 4.4.4 WD Command Structure Data Area Write Writes data to data area (DT area only). 16 pieces of data to 1 command can be specified. Command Address Ending data No. Starting data No. (Decimal) (Decimal) (Decimal) 57H 44H Write Starting data Write Ending data (Hexadecimal) (Hexadecimal)
  • Page 11 4.4.5 MC Command Structure Monitor Contact Register/Reset Registers contact (R only) to be monitored. Up to 16 contacts can be registered. Command Address Contact No. (Decimal) 4DH 43H Contact No. Reset Address FFFFF (Decimal) 4DH 43H 46H 46H 46H 46H 46H Acknowledgement Address (Decimal)
  • Page 12 4.4.6 MD Command Structure Monitor Data Register/Reset Registers data (DT only) to be monitored. Up to 16 pieces of data can be registered. Command Address Specified data No. (Decimal) (1)( Decimal) 4DH 44H Specified data No. (n)(Decimal) Reset Address FFFFFF (Decimal) 4DH 44H 46H 46H 46H 46H 46H 46H...
  • Page 13 4.4.7 MG Command Structure Monitor Data Execute Monitors registered contacts or data. Command Address (Decimal) 4DH 47H Acknowledgement Contact data: Address Pace Contact data Number of (Decimal) 4DH 47H Counter characters (mx2) Data: Data Data Contact data Number of characters (nx4) High High Negative acknowledgement...
  • Page 14 Header: Represents the beginning of the command and the response. ASCII % (25H) is used. Address (Instrument number): Numbers by which the master discerns each slave. Instrument numbers 1 to 95 (2-digit decimal) and Global addresses EE and FF are used. By using the Global address, the same command can be sent to all connected slaves.
  • Page 15 Data: Composed of 5-digit decimal, 4-digit hexadecimal, or ‘3-digit decimal+1-digit hexadecimal’, expressed using ASCII. Negative numbers are represented in 2's complement. Decimal data (e.g.) Starting data No. of Data area Read (RD) command Starting data No. (Decimal) 0 0 1 0 7 107 (Actual data) Hexadecimal data (e.g.) Starting data of Data area Read (RD) acknowledgement...
  • Page 16 4.5 Example of BCC (Block Check Code) Calculation (e.g.) % 01 # RD D 00101 00107 53H (Exclusive OR) Converts to ASCII. BCC (H) = 5 (35H), BCC (L) = 3 (33H) % 01 # RD D 00101 00107 53 C Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 17 4.6 Command Example Numerals written above the command represent the number of characters. 4.6.1 Read (Address 1, PV, OUT1 MV, OUT2 MV, Current SV) • Read command from the master Address Starting data No. 30H 31H 52H 44H 30H 30H 33H 35H 36H 0 0 3 5 6 Ending data No.
  • Page 18 4.6.3 Write (Address 1, Program pattern data) Program pattern setting example Step SV ( ) Time 1:00 2:00 0:30 1:00 2:00 Wait value ( ) 1:00 2:00 0:30 1:00 2:00 Program control RUN (Fig. 4.6.3-1) When writing the above program pattern, command data section converts to the following. Data: Data in the following table is converted to Hexadecimal.
  • Page 19 4.6.4 Read (Address 1, program pattern data) • Read command from the master (when reading the previous program pattern data) Address Starting data No. 30H 31H 52H 44H 30H 31H 30H 30H 30H 0 1 0 0 0 Ending data No. 30H 31H 30H 31H 34H 35H 30H 0 1 0 1 4...
  • Page 20 5. Modbus Protocol 5.1 Communication Procedure Communication starts with command transmission from the host computer (master), and ends with the response of the KT4R (slave). 5.1.1 Response with Data Master Slave When the master sends the Read command, the slave...
  • Page 21 To transmit continuously, an interval between characters which consist of one message, must be within 1.5 character transmission times. If an interval lasts longer than 1.5 character transmission times, the KT4R assumes that transmission from the master is finished, which results in a communication error, and will not return a response.
  • Page 22 5.5 Message Configuration 5.5.1 ASCII Mode ASCII mode message is configured to start by Header [: (colon) (3AH)] and end by Delimiter [CR (carriage return) (0DH) + LF (Line feed) (0AH)]. Data section: Max. 2 x 252 characters Header Slave Function Error check Delimiter...
  • Page 23 (3) Data Data differs depending on the function code. A request message from the master is composed of a data item, amount of data and setting data. A response message from the slave is composed of a number of bytes, data and exception codes in negative acknowledgements, corresponding to the request message.
  • 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 Slave Function Data item Amount of data Error check Delimiter address code [0100H]...
  • Page 25 (4) Write (Slave address 1, multiple pieces of program pattern data) Program pattern setting example Step SV ( ) Time 1:00 2:00 0:30 1:00 2:00 Wait value ( ) 1:00 2:00 0:30 1:00 2:00 Program control RUN (Fig. 5.6.1-1) When writing the above program pattern, message data section converts to the following. Amount of data: 15 (000FH) Number of bytes: 30 (1EH) Data: Data in the following table is converted to Hexadecimal.
  • Page 26 • Response message from the slave in normal status Header Slave Function Data item Data Error check Delimiter address code [1000H] [000FH] CR+LF (3AH) (30H 31H) (31H 30H) (31H 30H 30H 30H) (30H 30H 30H 46H) (44H 30H) (0DH 0AH) (5) Read (Slave address 1, Multiple pieces of program pattern data) •...
  • Page 27 5.6.2 RTU Mode Numerals written below the command represent the number of characters. (1) Read (Slave address 1, PV) • A request message from the master Slave Function Data item Amount of data Error check 3.5 idle 3.5 idle address code CRC-16 characters...
  • Page 28 (4) Write (Slave address 1, multiple pieces of program pattern data) Program pattern setting example Step SV ( ) Time 1:00 2:00 0:30 1:00 2:00 Wait value ( ) 2:00 0:30 1:00 1:00 2:00 Program control RUN (Fig. 5.6.2-1) When writing the above program pattern, message data section converts to the following. Amount of data: 15 (000FH) Number of bytes: 30 (1EH) Data: Data in the following table is converted to Hexadecimal.
  • Page 29 • Response message from the slave in normal status Slave Function Data item Data Error check 3.5 idle 3.5 idle address code CRC-16 characters characters (01H) (10H) (1000H) (000FH) (84CDH) (5) Read (Slave address 1, Multiple pieces of program pattern data) •...
  • Page 30 5.7 Self-diagnostic Function In Modbus protocol, the following Self-diagnostic functions are included. • Echoes back the request message. • Reads device identification information. 5.7.1 Message Configuration ASCII mode Header Slave Function Error check Delimiter Delimiter Data address code (CR) (LF) RTU mode 3.5 idle Slave...
  • Page 31 01/04H (Corresponds to Basic category.) Object ID 1 byte Vendor name (company name) Panasonic Industrial Devices SUNX Co., Ltd. 01 Product code (model number) (e.g.) AKT4R1111001 02 Version (Major Minor Revision) (e.g.) 010000 Response message from the 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.
  • Page 32 3.5 idle address code code CRC-16 characters characters (01H) (2BH) (0EH) (0400H) (7327H) • Response message from the slave in normal status (Panasonic Industrial Devices SUNX Co., Ltd.) Sub-function Slave Function 3.5 idle code address code characters (0EH) (01H) (2BH)
  • Page 33 Data in the response message becomes the following. Data Read Device ID code 1 byte Conformity level 1 byte More Follows 1 byte Next Object ID 1 byte Number of Objects 1 byte List of Object ID 1 byte List of Object length 1 byte 43 (2BH) List of Object value...
  • Page 34 (3) Read [Slave address 1, Device identification information: Product code (model number)] • A request message from the master Slave Function Sub-function Data Error check 3.5 idle 3.5 idle code code CRC-16 address characters characters (2BH) (0EH) (0401H) (B2E7H) (01H) •...
  • Page 35 6. Communication Command Table Communication command can be selected in [Communication protocol]. (MEWTOCOL), (Modbus ASCII) or (Modbus RTU) is selected, communication commands on pages 35 to 47 can be used. [Modbus ASCII (KT4 command allocation)] or [Modbus RTU (KT4 command allocation)] is selected, KT4 command on pages 48 to 51 can be used.
  • Page 36 Modbus Function MEWTOCOL Data Item Data Code 0000H: No event DT00106 03/06/10H 0006H Event output EV1 0001H: Alarm output, High limit alarm allocation (*1) 0002H: Alarm output, Low limit alarm 0003H: Alarm output, High/Low limits alarm 0004H: Alarm output, High/Low limits independent alarm 0005H: Alarm output, High/Low limit range alarm...
  • Page 37 Modbus Function MEWTOCOL Data Item Data Code DT00114 03/06/10H 000EH Set value, Decimal point ignored DT00115 03/06/10H 000FH Set value, Decimal point ignored DT00116 03/06/10H 0010H Set value, Decimal point ignored DT00117 03/06/10H 0011H Set value, Decimal point ignored DT00118 03/06/10H 0012H EV1 alarm value...
  • Page 38 Modbus Function MEWTOCOL Data Item Data Code DT00177 03/06/10H 004DH Direct/Reverse action 0000H : Reverse action 0001H : Direct action DT00178 03/06/10H 004EH Set value lock 0000H : Unlock 0001H : Lock 1 0002H : Lock 2 0003H : Lock 3 0004H : Lock 4 0005H : Lock 5 DT00179...
  • Page 39 Modbus Function MEWTOCOL Data Item Data Code DT00220 03/06/10H 0078H Reserved (*2) DT00240 03/06/10H 008CH Reserved (*2) DT00241 03/06/10H 008DH Control method 0000H : Usual PID 0001H : 2DOF PID DT00242 03/06/10H 008EH Proportional gain 2DOF Set value coefficient (α) DT00243 03/06/10H 008FH...
  • Page 40 6.1.3 Read Command Modbus Function MEWTOCOL Data Item Data Code DT00356 03/04H 0100H Read value, Decimal point ignored DT00357 03/04H 0101H OUT1 MV Read value, Decimal point ignored DT00358 03/04H 0102H OUT2 MV Read value, Decimal point ignored DT00359 03/04H 0103H Current SV Read value, Decimal point ignored...
  • Page 41 Modbus Function MEWTOCOL Data Item Data Code DT00371 03/04H 010FH Error status Error 01 0 : OFF 1 : ON flag 1 Error 02 0 : OFF 1 : ON (*8) Reserved Reserved Error 05 0 : OFF 1 : ON Error 06 0 : OFF 1 : ON...
  • Page 42 6.1.4 A Single/Multiple Piece(s) of Data Read/Write Command (for Program Control) Modbus MEWTOCOL Function Data Item Data Code DT01000 03/06/10H 1000H Step 1 SV Set value, Decimal point ignored (*10) DT01001 03/06/10H 1001H Step 1 time Set value, Decimal point ignored (*12) DT01002 03/06/10H...
  • Page 43 6.1.5 Contact No. Contact No. Read/Write Contents of Data Data Section R0000 EV1 alarm Energized/De-energized 0000H : Energized (OFF) 0001H : De-energized (ON) EV1 alarm value 0 Enabled/Disabled R0001 0000H : Disabled (OFF) 0001H : Enabled (ON) R0002 EV2 alarm Energized/De-energized 0000H : Energized (OFF) 0001H : De-energized (ON) EV2 alarm value 0 Enabled/Disabled...
  • Page 44 Contact No. Read/Write Contents of Data Data Section R0017 Reserved Always 0000H (*2) Always 0000H R0018 Reserved (*2) Always 0000H R0019 Reserved (*2) R001A Reserved Always 0000H (*2) Always 0000H R001B Reserved (*2) Always 0000H R001C Reserved (*2) Always 0000H R001D Reserved (*2)
  • Page 45 Contact No. Read/Write Contents of Data Data Section R003B Control mode 0000H : Fixed value control (OFF) 0001H : Program control (ON) R003C Program control 0000H : Standby (OFF) 0001H : RUN (ON) R003D Wait function 0000H : OFF 0001H : ON R003E Hold function 0000H : OFF...
  • Page 46 Contact No. Read/Write Contents of Data Data Section R0061 EV2 output Enabled/Disabled 0000H : Disabled (OFF) 0001H : Enabled (ON) Always 0000H R0062 Reserved (*2) Always 0000H R0063 Reserved (*2) Always 0000H R0064 Reserved (*2) Always 0000H R0065 Reserved (*2) Always 0000H R0066 Reserved...
  • Page 47 (*5) If “Program control Advance” is read, acknowledgement (data 0, MEWTOCOL) or Exception code 2 (02H, Modbus) will be returned. If any value except 0001H (Advance Perform) is written, Error code 61H (MEWTOCOL) or Exception code 3 (03H, Modbus) will be returned. (*6) If “Data clear”...
  • Page 48 6.2 KT4 Command Table [Modbus ASCII (KT4 command allocation)] or [Modbus RTU (KT4 command allocation)] is selected in [Communication protocol], the following KT4 command can be used. 6.2.1 A Single Piece of Data Read/Write Command Modbus Function Data Item Data Code 03/06H 0001H...
  • Page 49 Modbus Function Data Item Data Code 03/06H 0023H Event output EV1 allocation 0000H : No event (*2)(*5) 0001H : Alarm output, High limit alarm 0002H : Alarm output, Low limit alarm 0003H : Alarm output, High/Low limits alarm 0004H : Alarm output, High/Low limit range alarm 0005H : Alarm output, Process high alarm 0006H : Alarm output, Process low alarm...
  • Page 50 Modbus Function Data Item Data Code 0000H : Energized 03/06H 0040H EV1 alarm Energized/De-energized 0001H : De-energized 0000H : Energized 03/06H 0041H EV2 alarm Energized/De-energized 0001H : De-energized 03/06H 0042H Not used (*1) 03/06H 0043H Not used (*1) 03/06H 0044H Input type 0000H : K -200 to 1370 0001H : K -200.0 to 400.0...
  • Page 51 6.2.3 Read Command Modbus Function Data Item Data Code 0080H Read value, Decimal point ignored 0081H OUT1 MV Read value, Decimal point ignored 0082H OUT2 MV Read value, Decimal point ignored 0083H Not used (*1) 0084H Not used (*1) 0085H Status flag 0000 0000 0000 0000 OUT1 output...
  • Page 52 6.3 Data 6.3.1 Notes about Write/Read Command • The data (set value, decimal) is converted to hexadecimal numbers. Negative numbers are represented in 2's complement. • When connecting multiple slaves, the address (instrument number) must not be duplicated. • Do not use undefined Data items. If they are used, negative acknowledgement will be returned or a random value will be written or read, resulting in malfunction.
  • Page 53 6.4 Negative Acknowledgement • When non-existent data item is read or written: For MEWTOCOL, if the data item is read, acknowledgement (data is 0) will be returned. If the data item is written, the data will be discarded, and acknowledgement will be returned. (If Data larger than DT 10000 is read or written, Error code 61H will be returned.) For Modbus, Exception code 2 (02H) will be returned.
  • Page 54 6.5 Notes on Programming Monitoring Software 6.5.1 How to Speed up the Scan Time When monitoring multiple units of the controller, set the program so that the requisite minimum pieces of data such as PV, OUT1 MV, Status flag 1, and Status flag 2 can be read. For other data, set the program so that they can be read only when their set value has changed.
  • Page 55 6.6 Items to Be Initialized by Changing Settings 6.6.1 MEWTOCOL/Modbus ASCII/Modbus RTU If settings are changed, the following items will be initialized. Yes: Initialized No: Not initialized Setting item Input Type Event output Event output Transmission to be changed EV1 allocation EV2 allocation output (0002H)
  • Page 56 6.6.2 KT4 Command For KT4 command, if settings are changed, the following items will be initialized. Yes: Initialized No: Not initialized Setting item Input type Event output Event output to be changed EV1 allocation EV2 allocation (0044H) (0023H) (0024H) Item to be Initialized SV1 (0001H) AT bias (0047H) OUT1 proportional band (0004H)
  • Page 57 7. Specifications Cable length 1.2 km (Max.), Cable resistance: Within 50 (Terminators are not necessary, but if used, use 120 or more on both sides.) Communication interface EIA RS-485 Communication method Half-duplex communication Communication speed 9600, 19200, 38400 bps (Selectable by keypad) Synchronization method Start-stop synchronization Code form...
  • Page 58 The controller cannot be written when Check the status of slave. acknowledgement. functions such as AT are performing. The KT4R is in front keypad operation Return the controller to RUN mode. setting mode. For all other malfunctions, please contact our main office or dealers.