JCL-33A Communication Manual
JCL-33A Communication Manual
JCL-33A (C5)
No.JCL3CE1 2003.10
To prevent accidents arising from the misuse of this controller, please ensure the operator using it receives
this manual.
Warning
Turn the power supply to the instrument off before wiring or checking.
Working or touching the terminal with the power switched on may result in severe injury or
death due to Electric Shock.
1. System configuration
RS-485 multi-drop connection communication (Option: C5)
Host computer
RS-485
Confectionery
(Fig. 1-3)
1
2. Wiring connection
Serial communication (option C5)
When using communication converter IF-300-C5
• Connector: D sub 25-pin
Connection: RS-232C RS-485 (Communication speed: 2400, 4800, 9600, 19200bps)
Host
computer IF-300-C5 JCL-33A
120 built-in terminator
TXD 2 YA (-) 2 10 YA (-)
RXD 3 YB (+) 1 11 YB (+)
SG 7 COM 11 12 SG
FG 1 Shield wire
RTS 4 6 RX Shield wire
CTS 5 5 TX
DSR 6 4 COM
DTR 20 RS-232C RS-485
CD 8
10 YA (-)
D sub connector 25-pin
11 YB (+)
12 SG
(Fig. 2-1)
• Connector: D sub 9-pin
Connection: RS-232C RS-485 (Communication speed: 2400, 4800, 9600, 19200bps)
Host computer
IF-300-C5 JCL-33A
120 built-in terminator
TXD 3 YA (-) 2 10 YA (-)
RXD 2 YB (+) 1 11 YB (+)
GND 5 COM 11 12 SG
DCD 1 Shield wire
(Fig. 2-3)
Procedure for Setting value digital transmission between PCD-33A and JCL-33A
(1) Setting to PCD-33A
If the option SVTC is applied, it is not necessary to set any item.
Check if Setting value digital transmission [ ] is selected during Communication
protocol selection [ ] in Auxiliary function setting mode 1.
(2) Setting to JCL-33A
Check if the communication speed in Auxiliary function setting mode 1 of the JCL-33A is
identical with that of PCD-33A.
(3) Setting value digital transmission starts.
Input program setting value to the PCD-33A.
If the program is initiated by pressing the RUN key, PCD-33A setting values are
transmitted to the JCL-33A.
During program standby mode, “0” is sent to the JCL-33A.
• For the Communication protocol and Communication speed selection, refer to the Instruction manual
for the JCL-33A.
3
4. Communication procedure
Communication starts with command transmission from the host computer (hereafter Master) and
ends with the response of the JCL-33A (hereafter Slave).
5. Shinko protocol
5.1 Transmission mode
Shinko protocol is composed of ASCII codes.
Hexadecimal (0 to 9, A to F), which is divided into high order (4-bit) and low order (4-bit) out of
8-bit binary data in command is transmitted as ASCII characters.
Data format Start bit : 1 bit
Data bit : 7 bits
Parity : Even
Stop bit : 1 bit
Error detection : Checksum
5.2 Command configuration
All commands are composed of ASCII. The data (setting value, decimal number) is represented by
hexadecimal figures, and ASCII code is used.
The negative numbers are represented by 2's complement.
(1) Setting command
Header Sub Command Data Delimiter
Address address Data Checksum
(02H) (20H) type (50H) item (03H)
Number of
1 1 1 1 4 4 2 1
(Fig. 5.2-1) characters
4
(2) Reading command
Header Sub Command Data Delimiter
Address address Checksum
(02H) (20H) type (20H) item (03H)
Number of
1 1 1 1 4 2 1
(Fig. 5.2-2) characters
(3) Response with data
Header Sub Command Data Delimiter
Address address Data Checksum
(06H) (20H) type (20H) item (03H) Number of
1 1 1 1 4 4 2 1 characters
(Fig. 5.2-3)
(4) Acknowledgement
Header Delimiter
Address Checksum
(06H) (03H)
Number of
1 1 2 1
characters
(Fig. 5.2-4)
(5) Negative acknowledgement
Header Error Delimiter
Address Checksum
(15H) code (03H)
Number of
1 1 1 2 1
(Fig. 5.2-5) characters
Header : Control code to represent the beginning of the command or the response
ASCII codes are used.
Setting command, Reading command : STX(02H) fixed
Response with data, Acknowledgement : ACK(06H) fixed
Negative acknowledgement : NAK(15H) fixed
Address : Numbers by which the master discerns each slave.
Instrument number 0 to 94 (00H to 5EH) and Global address 95 (5FH)
The numbers (20H to 7EH) are used by giving 20H of bias.
95 (7FH) is called Global address, which is used when the same command
is sent to all the slaves connected. However, a response is not returned.
Sub address : (20H) fixed
Command type : Code to discern Setting command (50H) and Reading command (20H)
Data item : Data classification of the command object
Composed of hexadecimal 4 digits (Refer to the Communication command table)
Data : The contents of data (setting value) differs depending on the setting command.
Composed of hexadecimal 4 digits (Refer to the Communication command table)
Checksum : 2-character data to detect communication errors
Delimiter : Control code to represent the end of command
(03H) fixed
Error code : Represents an error type. Composed of hexadecimal 1 digit.
1 (31H)-----Non-existent command
2 (32H)-----Not used
3 (33H)-----Setting value outside the setting range
4 (34H)-----Unsettable status (e.g. AT is performing)
5 (35H)-----During setting mode by keypad
5.3 Checksum calculation
Checksum is used to detect receiving errors in the command or data.
Set the program for the master side as well to calculate the checksum of the response
data from the slaves so that the communication errors can be checked.
The ASCII code (hexadecimal) corresponding to the characters which range from the address
to that before the checksum is converted to binary notation, and the total value is calculated.
The lower 2-digits of the total value are converted to 2’s complements and then to hexadecimal
figures, that is, ASCII code for the checksum.
Checksum calculation example
Step 1, step SV: 600 (0258H)
Address (instrument number): 0 (20H)
• 1’s complement: Reverse each binary bit. 0 will become 1 and vice versa.
• 2’s complement: Add 1 to 1’s complement.
5
Checksum calculation range
[e.g.]
STX P 1 1 1 0 0 2 5 8 D E ETX
02H 20H 20H 50H 31H 31H 31H 30H 30H 32H 35H 38H 44H 45H 03H
6. Modbus protocol
6.1 Transmission mode
There are 2 transmission modes (ASCII and RTU) in Modbus protocol.
6.2 ASCII mode
Hexadecimal (0 to 9,A to F), which is divided into high order (4-bit) and low order (4-bit) out of
8-bit binary data in the command is transmitted as ASCII characters.
Data format Start bit : 1 bit
Data bit : 7 bits
Parity : Even
Stop bit : 1 bit
Error detection : LRC (Longitudinal Redundancy Check)
Data interval : 1 second or less
(1) Message configuration
ASCII mode message is configured to start by [: (colon)(3AH)] and end by [CR (carriage return)
(0DH) + LF (Line feed)(0AH)]. (See Fig. 6.2-1)
Header Slave Function Error check Delimiter Delimiter
Data
(:) address code LRC (CR) (LF)
(Fig. 6.2-1)
Slave address
Slave address is an individual instrument number on the slave side and is set within the range
00H to 5FH (0 to 95).
The master identifies slaves by the slave address of the requested message.
The slave informs the master which slave is responding to the master by placing its own address
in the response message.
[Slave address 00H (broadcast address) can identify all the slaves. However slaves do not respond.]
7
Function code
The function code is the command code that makes the slave to undertake the following action types (Table
6.2-1).
(Table 6.2-1)
Function code Contents
03 (03H) Reading the setting value and information from slaves
06 (06H) Setting to slaves
A function code is used to discern whether the response is normal (acknowledgement) or if any error
(negative acknowledgement) has occurred when the slave returns the response message to 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 response.
(For example, when the master sends a request message setting 10H to function code by mistake,
slave returns 90H by setting the MSB to 1, because the former is an illegal function.)
For negative acknowledgement, abnormal code (Table 6.2-2) below is set to the data of response
message and returned to the master in order to inform it that what kind of error has occurred.
(Table 6.2-2)
Abnormal code Contents
1 (01H) Illegal function (Non-existent function)
2 (02H) Illegal data address (Non-existent data address)
3 (03H) Illegal data value (Value outside the setting range)
17 (11H) Illegal setting (Unsettable status)
18 (12H) Illegal setting (During setting mode by keypad, etc)
Data
Data differs depending on the function code.
A request message from the master is composed of data item, number of data and setting data.
A response message from the slave is composed of number of bytes, data and abnormal code
in negative acknowledgement. Only one piece of data can be dealt with per message.
Therefore the number of data for ASCII mode is fixed as (30H 30H 30H 31H).
Effective range of data is –32768 to 32767 (8000H to 7FFFH).
(2) ASCII mode error check
After calculating LRC (Longitudinal Redundancy Check) from the slave address to the end of data,
the calculated 8-bit data is converted to two ASCII characters and are appended to the end of the
message.
How LRC is calculated
1 Create a message in RTU mode.
2 Add all the values from the slave address to the end of data. This is assumed as X.
3 Make a complement for X (bit reverse). This is assumed as X.
4 Add a value of 1 to X. This is assumed as X.
5 Set X as an LRC to the end of the message.
6 Convert the whole message to ASCII characters.
(3) ASCII mode message example
1 Reading (Address 1, SV1)
• A request message from the master
The number of data indicates the data item to be read and it is fixed as (30H 30H 30H 31H).
Slave Function
Header Data item Number of data Error check Delimiter
address code LRC
(3AH) (30H 31H) (30H 33H) (30H 30H 30H 31H) (30H 30H 30H 31H) (46H 41H) (0DH 0AH) Number of
1 2 2 4 4 2 2 characters
(Fig. 6.2-2)
• A response message from the slave in normal status [When SV1=100 (0064H)]
The number of response bytes indicates the number of bytes of the data which has been read, and
it is fixed as (30H 32H).
Slave Function Number of Error check
Header Data Delimiter
address code response bytes LRC
(3AH) (30H 31H) (30H 33H) (30H 32H) (30H 30H 36H 34H) (39H 36H) (0DH 0AH) Number of
1 2 2 2 4 2 2 characters
(Fig.6.2-3)
8
• A response message from the slave in abnormal status (When data item is mistaken)
The function code MSB is set to 1 for the response message in abnormal status.
(Value: 83H, ASCII: 38H 33H).
Slave Function Abnormal Error check
Header Delimiter
address code code LRC
(3AH) (30H 31H) (38H 33H) (30H 32H) (37H 41H) (0DH 0AH)
Number of
1 2 2 2 2 2 characters
(Fig.6.2-4)
2 Reading (Address 1, SV1)
• Request message from the master
The number of the data indicates the data item to be read and it is fixed as (30H 30H 30H 31H).
Slave Function Error check
Header Data item Number of data Delimiter
address code LRC
(3AH) (30H 31H) (30H 33H) (30H 30H 30H 31H) (30H 30H 30H 31H) (46H 41H) (0DH 0AH) Number of
1 2 2 4 4 2 2 characters
(Fig. 6.2-5)
• A response message from the slave in normal status [When SV1=100 (0064H)]
The number of response bytes indicates the number of bytes of the data which has been read, and
it is fixed as (30H 32H).
Slave Function Number of Error check
Header Data Delimiter
address code response bytes LRC
(3AH) (30H 31H) (30H 33H) (30H 32H) (30H 30H 36H 34H) (39H 36H) (0DH 0AH) Number of
1 2 2 2 4 2 2 characters
(Fig. 6.2-6)
• A response message from the slave in abnormal status (When non-existent data item is sent)
The function code MSB is set to 1 for the response message in abnormal status (Value: 83H,
ASCII: 38H 33H).
If an abnormal code (Value: 02H, ASCII: 30H 32H Non-existent data address) is returned, the error
can be determined by reading this code.
• Response message from the slave in abnormal status (When a value out of the setting
range is set)
The function code MSB is set to 1 for the response message in abnormal status (86H).
If an abnormal code (03H: Value out of the setting range) is returned, the error can be determined
by reading this code.
3.5 idle Slave Function Abnormal Error check 3.5 idle
characters address code code CRC characters
(01H) (86H) (03H) (0261H)
Number of
1 1 1 2 characters
(Fig. 6.3-9)
12
20H/50H 03H/06H 0012H: Setting value lock selection 0000H: Unlock
0001H: Lock 1
0002H: Lock 2
0003H: Lock 3
20H/50H 03H/06H 0013H: Not used
20H/50H 03H/06H 0014H: Not used
20H/50H 03H/06H 0015H: Sensor correction setting Setting value, Decimal point ignored
20H/50H 03H/06H 0016H: Overlap band/Dead band setting Setting value
20H/50H 03H/06H 0017H: Not used
20H/50H 03H/06H 0018H: Scaling high limit setting Setting value, Decimal point ignored
20H/50H 03H/06H 0019H: Scaling low limit setting Setting value, Decimal point ignored
20H/50H 03H/06H 001AH: Decimal point place selection 0000H: No decimal point
0001H: 1 digit after decimal point
0002H: 2 digits after decimal point
0003H: 3 digits after decimal point
20H/50H 03H/06H 001BH: PV filter time constant setting Setting value, Decimal point ignored
20H/50H 03H/06H 001CH: OUT high limit setting Setting value
20H/50H 03H/06H 001DH: OUT low limit setting Setting value
20H/50H 03H/06H 001EH: OUT ON/OFF action Setting value, Decimal point ignored
hysteresis setting
20H/50H 03H/06H 001FH: Not used
20H/50H 03H/06H 0020H: Not used
0021H: Not used
20H/50H 03H/06H 0022H: Cooling output ON/OFF action Setting value, Decimal point ignored
hysteresis setting
20H/50H 03H/06H 0023H: A1 action selection 0000H: No alarm action
0001H: High limit alarm
0002H: Low limit alarm
0003H: High/Low limits alarm
0004H: High/Low limit range alarm
0005H: Process high alarm
0006H: Process low alarm
0007H: High limit alarm with standby
0008H: Low limit alarm with standby
0009H: High/Low limits alarm with
standby
000AH: Timer function
000BH: Pattern end output
20H/50H 03H/06H 0024H: A2 action selection The same as A1 action selection
20H/50H 03H/06H 0025H: A1 hysteresis setting Setting value, Decimal point ignored
20H/50H 03H/06H 0026H: A2 hysteresis setting Setting value, Decimal point ignored
20H/50H 03H/06H 0027H: Not used
20H/50H 03H/06H 0028H: Not used
20H/50H 03H/06H 0029H: A1 action delayed timer Setting value
20H/50H 03H/06H 002AH: A2 action delayed timer Setting value
20H/50H 03H/06H 002BH: Not used
20H/50H 03H/06H 002CH: Not used
20H/50H 03H/06H 002DH: Not used
20H/50H 03H/06H 002EH: Not used
20H/50H 03H/06H 002FH: Not used
20H/50H 03H/06H 0030H: Not used
20H/50H 03H/06H 0031H: Not used
20H/50H 03H/06H 0032H: Not used
20H/50H 03H/06H 0033H: Not used
20H/50H 03H/06H 0034H: Not used
20H/50H 03H/06H 0035H: Not used
20H/50H 03H/06H 0036H: Not used
20H/50H 03H/06H 0037H: OUT/OFF, RUN/STOP selection 0000H: OUT (STOP)
0001H: OFF (RUN)
20H/50H 03H/06H 0038H: Not used
20H/50H 03H/06H 0039H: Not used
13
20H/50H 03H/06H 003AH: Not used
20H/50H 03H/06H 003BH: Not used
20H/50H 03H/06H 003CH: Not used
20H/50H 03H/06H 003DH: Not used
20H/50H 03H/06H 003EH: Not used
20H/50H 03H/06H 003FH: Not used
20H/50H 03H/06H 0040H: Not used
20H/50H 03H/06H 0041H: Not used
20H/50H 03H/06H 0042H: Alarm HOLD function selection 0000H: Alarm HOLD [Not used]
0001H: Alarm HOLD [Used]
20H/50H 03H/06H 0043H: Not used
20H/50H 03H/06H 0044H: Input type selection 0000H: K [–200 to 370 ]
0001H: K [–199.9 to 400.0 ]
0002H: J [–200 to 1000 ]
0003H: R [0 to 1760 ]
0004H: S [0 to 1760 ]
0005H: B [0 to 1820 ]
0006H: E [–200 to 800 ]
0007H: T [–199.9 to 400.0 ]
0008H: N [–200 to 1300 ]
0009H: PL- [0 to 1390 ]
000AH: C (W/Re5-26) [0 to 2315 ]
000BH: Pt100 [–199.9 to 850.0 ]
000CH: JPt100 [–199.9 to 500.0 ]
000DH: Pt100 [–200 to 850 ]
000EH: JPt100 [–200 to 500 ]
000FH: K [–320 to 2500 ]
0010H: K [–199.9 to 750.0 ]
0011H: J [–320 to 1800 ]
0012H: R [0 to 3200 ]
0013H: S [0 to 3200 ]
0014H: B [0 to 3300 ]
0015H: E [–320 to 1500 ]
0016H: T [–199.9 to 750.0 ]
0017H: N [–320 to 2300 ]
0018H: PL- [0 to 2500 ]
0019H: C (W/Re5-26) [0 to 4200 ]
001AH: Pt100 [–199.9 to 999.9 ]
001BH: JPt100 [–199.9 to 900.0 ]
001CH: Pt100 [–300 to 1500 ]
001DH: JPt100 [–300 to 900 ]
001EH: 4 to 20mA DC[–1999 to 9999]
001FH: 0 to 20mA DC[–1999 to 9999]
0020H: 0 to 1V DC [–1999 to 9999]
0021H: 0 to 5V DC [–1999 to 9999]
0022H: 1 to 5V DC [–1999 to 9999]
0023H: 0 to 10V DC [–1999 to 9999]
20H/50H 03H/06H 0045H: Direct/Reverse action selection 0000H: Heating (Reverse action)
0001H: Cooling (Direct action)
20H/50H 03H/06H 0046H: Not used
20H/50H 03H/06H 0047H: AT bias setting Setting value, Decimal point ignored
20H/50H 03H/06H 0048H: ARW setting Setting value
20H/50H 03H/06H 006FH: Key lock selection 0000H: Key enabled
0001H: Key locked
50H 06H 0070H: Key operation change flag 0000H: No action
clearing 0001H: All clearing
20H 03H 0080H: PV (input value) reading Current PV, Decimal point ignored
20H 03H 0081H: Control output MV Control output MV,
(manipulated variable) reading Decimal point ignored
20H 03H 0082H: Control output MV Control output MV,
Decimal point ignored
20H 03H 0083H: Current SV reading Current SV, Decimal point ignored
14
20H 03H 0084H: Running step remaining time Remaining time
reading Decimal point ignored
20H 03H 0085H: Instrument status reading 215 to 20
0000 0000 0000 0000
0
2 digit: Control output (OUT)
0: OFF 1: ON
(For current output, Not decided)
21 digit: Cooling output
0: OFF 1: ON
22 digit: A1 output
0: OFF 1: ON
23 digit: A2 output
0: OFF 1: ON
24 digit: Not used (Always 0)
25 digit: Not used (Always 0)
26 digit: Not used (Always 0)
27 digit: Not used (Always 0)
28 digit: Overscale
0: OFF 1: ON
29 digit: Underscale
0: OFF 1: Run
210 digit: OUT (STOP)/OFF (RUN)
0: OUT 1: OFF
211 digit: During AT
0: OFF 1: AT
212 digit: OFF key selection
0: OFF 1: PROC
213 digit: Controller/Converter mode
selection
0: Controller 1: Converter
214 digit: Not used (Always 0)
215 digit: Key operation change
0: No 1: Yes
20H 03H 0086H: Running step Running step
20H 03H 0087H: Not used
20H 03H 0088H: Not used
20H 03H 00A0H: Not used
20H 03H 00A1H: Instrument information reading 215 to 20
0000 0000 0000 0000
0
2 digit: Control output (OUT)
0: OFF 1: ON
(For current output, Not decided)
21 digit: Cooling function
0: Not applied
1: Applied
22 digit: A1 function
0: Not applied
1: Applied
23 digit: A2 function
0: Not applied
1: Applied
24 to 215 digit: Not used (Always 0)
Data:
• When the data (setting value) has a decimal point, remove the decimal point and represent it as a
whole number, then express it in hexadecimal figures.
• When the alarm action type is changed, the alarm setting value returns to the default value.
The alarm output status is also initialized.
Note
The settings by the front keypad and by communication function differ as follows.
• When data is changed by front keypad, the data that is related to the changed item is also changed
automatically as shown in Example 1 below.
15
• When the data is changed by communication function, the related data does not change
as shown in Example 2 below. (Only the changed data is altered.)
8. Specifications
Cable length : Maximum communication distance 1.2km
Cable resistance: Within 50 (The terminator is not necessary or
120 or greater on one side of the cable.)
Communication line : Based on EIA RS-485
Communication method: Half-duplex
Communication speed : 9600bps (2400, 4800, 9600, 19200bps) Selectable by keypad
Synchronous system : Start-stop synchronous
Code form : ASCII, binary
Error correction : Command request repeat system
Error detection : Parity check, Checksum (LRC), CRC
Data format Start bit: 1
Data bit: 7, 8
Parity : Even, No parity
Stop bit : 1
9. Troubleshooting
If any malfunctions occur, refer to the following items after checking the power supply to the master
and the slave.
• Problem: Communication failure
Check the following
The connection or wiring of communication is not secure.
Burnout on the communication cable or imperfect contact with the connector.
Communication speed of the slave does not coincide with that of the master.
The data bit, parity and stop bit of the master do not accord with those of the slave.
The instrument number (address) of the slave does not coincide with that of the command.
The instrument number (address) is duplicated in multiple slaves.
When communicating without using Shinko communication converter (IF-300-C5), make sure that
the program is appropriate for the transmission timing.
• Problem: Though it is able to communicate, the response is 'NAK'.
Check the following
Check whether a non-existent command code has been sent or not.
The setting command data goes outside the setting range of the slave.
The controller cannot be set when functions such as AT is performing.
The operation mode is under the setting mode by the front keypad.
If you have any inquiries, please consult our agency or the shop where you purchased the unit.