Thank you for purchasing the Fuji Digital Temperature Controller.
This document describes how to connect the Micro controller PXF Series (referred to below as "Micro controller") to the personal
computer or programmable controller. It also describes communication specifications for controlling and monitoring the
communications with the micro controller, MODBUS protocol, and address map for the micro controller.
In addition to this document, please make sure to read the Instruction Manual (which comes with the product) and the Operations
Manual (packaged separately).
NOTE
■ Exclusions
The contents of this document may change without prior notice.
Although great care has been taken in the accuracy of this document, Fuji Electric takes no responsibility for loss or indirect
damages caused by mistakes, missing information, or use of information in this document.
• The micro controller is equipped with communication functions fr om the RS-485 interface and PC loader interface, which
enables the transmission and reception of data between such devices as the personal computer, programmable controller,
and graphic panel.
• The version with RS-485 communication can provide the following three function s.
1. MODBUS RTU communicationTypical master/stave communication is available. A PC or PLC acts as a master, while multiple
temperature controllers act as slaves. Communication is made in such a way that the master
sends messages to the slaves, and the slaves respond to it.
2. Cooperative operationWhen you control one temperature controller, the other controllers follow it. The one controller
3. Programless communicationProgrammable controller (PLC) can read the data of temperature controllers or write data on
The following is the description for MODBUS RTU communication. For cooperative operation and programless
communication, refer to Chapter 9 "Cooperative operation" and/or Chapter 10 "Programless communication".
• The communication system is composed of a master and slave relationship. Up to thirty-one slaves (micro controllers) may
be connected to one master (such as a personal computer) based on a “single master/multiple slave” method.
• However, the master can only communicate with one slave at a time. Therefore, each slave is specified by the "Station No."
setting.With PC loader communication, only one slave can be connected to one master.
Caution
• Systems constructed with the micro controller as slaves do not respond to messages issued by the master
with broadcast queries where the station number is "0".
• PC loader communication is not compatible with the multiple slave method.
acts as a master, while other controllers act as slaves. When you change the settings of the
master controller, a message will be sent to all slave controllers which follow the change.
temperature controllers without preparing a rudder program. One PLC acts as a master, and
multiple temperature controllers act as slaves. Each temperature controller in turn carries out
master-slave communication with PLC. The communication protocol is MODBUS RTU.
• In order to have proper communication between master and slave, the transmission data must be in the same format. This
document explains how to transmit data using the MODBUS protocol format.
• When using equipment with an RS-232C interface, such as a personal computer, as the master, make sure to use an RS-
232C to RS-485 converter.
• When using PC loader communication, you can use communication with the personal computer by connecting the PC loader
interface on the bottom of this unit with the PC loader communication cable (model: ZZP
When using the RS-232C to RS-485 converter, check to make sure that the cable is properly connected between the
converter and master. Communication will not work properly if the connection is incorrect.
Also be sure to correctly set the communication settings (such as communication speed and parity) on the RS-2 32C
to RS-485 converter. Communication will not work properly if the settings are incorrect.
– 5 –
MEMO
– 6 –
Chapter 2
Specifications
Communication Specifications – 8
– 7 –
Communication Specifications
RS-485
ItemSpecifications
Electrical specificationsEIA RS-485 compliant
Communication methodTwo wire system, half double-bit serial
Synchronous methodAsynchronous
Connection status1:N
Max. no. of connections31 units
Communication distanceMax 500m (total length)
Communication speed9600bps, 19200 bps, 38.4kbps, 115.2kbps
Data formatData length8 bits
Stop bit1 bit
ParityNone/Even/Odd (Selectable)
Transmission codeHEX value (MODBUS RTU mode)
Error detectionCRC-16
InsulationFunctional insulation for the transmission area and
other areas (withstanding AC 500V)
PC Loader Interface
ItemSpecifications
Electrical specificationsTTL Level
Communication method3wire system, half double-bit serial
Synchronous methodAsynchronous
Connection status1:1
Station No.1 (Not to be changed)
Communication speed38.4kbps (Not to be changed)
Data formatData length8 bits
Stop bit1 bit
Paritynone (Not to be changed)
Transmission codeHEX value (MODBUS RTU mode)
Error detectionCRC-16
InsulationNon-insulated internal circuit
– 8 –
Chapter 3
Connection
Communication Terminal Configuration – 10
●
Wiring – 11
– 9 –
Warning
■ RS-485 (rear terminal)
PXF4
PXF5, PXF9
Terminal
Number
Signal Name
7RS-485 +
8RS-485 -
Terminal
Number
Signal Name
25RS-485 +
26RS-485 -
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1
2
3
4
5
6
7
8
9
10
11
12
25
26
27
28
29
30
31
32
33
34
35
36
■ PC Loader Interface
PXF4
PXF5
PXF9
Do not turn on power until all of the wiring is completely finished.
There is a risk of electrical shock or damage.
Communication Terminal Configuration
PC Loader Interface
PC Loader Interface
PC Loader Interface
– 10 –
Wiring
Master
SG
Slave
+
–
+
–
Shielded twist pair cable
Terminating resistance
100W (1/2W)
Terminating resistance
100W (1/2W)
PXF Series
PXF Series
PXF Series
RS-485 interface
or
RS-485 side of
RS-232C to RS-485 converter
+
–
+
–
■ RS-485
• Please use a shielded twist pair cable. (Recommended cable: KPEV-SB (made by The Furukawa Electric Co., Ltd.))
• The maximum cable length should be 500m. One master and up to thirty-one micro controllers (slaves) can be connected per
circuit.
• Terminate both ends of the circuit with a terminating resistance of 100Ω (1/2W or more).
• Ground the shielded cable once towards the master side.
• SG does not have to be connected, but it can be used as an effective countermeasure against communication errors due to
noise.
– 11 –
• When using the micro controller in an area where the imp ose d noise level is expected to exceed 1000V, we recommend using
Noise filter
Programmable controller
or
Personal computer
+ RS-232C to RS-485 converter
RS-485
PXF Series
a noise filter on the master side as seen in the figure b el ow.
[Noise filter] (recommended): ZRAC220 3-1 1 (ma de by TDK Corporation)
• If there are problems with EMC during communication, the noise l evel can be reduced by using a communication cable with a
ferrite core.
Ferrite core (recommended): ZCAT series (made by TDK Corporation)
MSFC series (made by Morimiya Electric Co., Ltd.)
– 12 –
■ PC Loader Interface
PC loader communication cable
Master side
USB
PXF4 Left view
Personal
computer
etc.
ZZP
*
TQ501923C3
Master side
PXF5 Left view
Personal
computer
etc.
PC loader communication cable
ZZP
*
TQ501923C3
USB
• Use the PC loader communication cable sold separately.
PXF4
PXF5
PXF9
Master side
Personal
computer
etc.
USB
PC loader communication cable
TQ501923C3
ZZP
*
PXF9 Left view
– 13 –
MEMO
– 14 –
Chapter 4
Setting Communication Parameters
List of Setting Parameters – 16
●
Parameter Setting Procedure – 17
– 15 –
The following settings are required for proper communication between the master and micro controller units.
• The communication parameters for the master and all of the units must be set the same.
• During RS-485 communication, all of the micro controllers on a circuit must b e set with different "Station No. (STno)" other
than "0 (zero)". (Multiple micro controllers must not have the same "Station No.".)
• When using the PC loader interface, settings are not necessary on the main unit (the micro controller).
List of Setting Parameters
The setting parameters are shown in the chart shown below. Change the settings using the keys on the front of the micro
controller.
■ RS-485 (controller side)
Parameter
channel
CoM CH9
Screen
Parameter
No.
760
761
762
763
764
767
display
symbol
CTYPCommunication
StNoStation No.0 to 255 (0: unresponsive
SPEdRS-485 baud rate96: 9600 bps
PRtyRS-485 paritynone
iNtVRS-485 response
SCCCommunication
–
–
–Data lengthFixed (cannot be changed)8 bits Set the master and all of the slaves with
–Stop bitFixed (cannot be changed)1 bits Set the master and all of the slaves with
NameSetting range
0: MODBUS RTU
type
interval
permissions
1: Cooperative operation
2: Programless communication
communication)
192: 19200 bps
384: 38400 bps
115K: 115 Kbps
odd
even
0 to 1001Widen the time interval of receiving
r: read only
rW: read/writable
Initial
value
0Select "0: MODBUS RTU".
1Sets the station number.
96Sets the baud rate
oddSets the parity check
response. (Set value x 20 ms)
rWSets whether or not overwriting is
possible from the master side (PC, etc.)
the same settings.
the same settings.
Remarks
■ Loader interface (main unit side)
The parameters do not need to be set. Set the loader software (master) with the following settings.
• Communication speed: 38400 bps
• Parity: none
– 16 –
Parameter Setting Procedure
Pid
1
CoM
2
0
3
"3"
4
5
96
6
"96"
7
8
odd
9
"NoNE"
10
11
R
12
"WR"
13
The following steps explain how to change the settings to station number "3", parity setting "9600bps/none", and communication
permissions "read and writable" as an example.
Press and hold the key to move to "channel selection mode".
Use the keys to select "CoM CH9".
Press the key to display "StNo".
Press the key, and whe n the bottom part of the display begins to blink, use the
keys to select "3".
The station number "3" is selected.
Press the key to set.
Use the keys to select "SPEd".
Press the key, and whe n the bottom part of the display begins to blink, use the
keys to select "96".
The RS-485 baud rate is set to "9600 bps".
CH 1
CH 9
StNo
StNo
SPEd
SPEd
Press the key to set.
Use the keys to select "PRty".
Press the key, and whe n the bottom part of the display begins to blink, use the
keys to select "NoNE".
The RS-485 parity is set to "none".
Press the key to set.
Use the keys keys to select SCC ("SCC").
Press the key, and whe n the bottom part of the display begins to blink, use the
keys to select "WR".
Communication permissions is set to "read/writable".
PRty
PRty
SCC
SCC
– 17 –
Press the key to set.
14
15
16
Press the key to return to the operation mode PV/SV screen.
Turn the power to the micro controller off and on a g ain.
The changes to the communication parameters become effective after the power turns off and on
again.
– 18 –
Chapter 5
MODBUS Communication Protocol
Overview – 20
●
Message Composition – 21
●
Calculating Error Check Code (CRC-16) – 24
●
Transmission Control Steps – 25
●
Prercautions when Writing Data – 26
– 19 –
Overview
MasterSlave
Command Message
Response Message
Station number is the same
The communication system with the MODBUS protocol always operates using a method where the master first sends a command
message and the applicable slav e re plys with a respo nse message .
The following describes the communication steps.
Master sends the command
message for the slave.
The slave checks whether the station
number in the received message is
the same as its own station number.
When it’s the sameWhen it’s not the same
The slave runs the command and
sends a response message.
The slave throws out the received
message and waits for the next
command message. (No reply.)
● When the station number in the command message is the same as the unit’s station number
● When the station number in the command message is not the same as the unit’s station number
MasterSlave
The master can communicate with an individual slave when multiple slaves are connected on the same circuit by the station
number specified in the master’s command message.
Command Message
Station number is not the same
– 20 –
Message Composition
Refer to
Refer to
Refer to
Refer to
The command message and response message are composed of four parts: the station number, function code, data part, and
error check code. These four parts are sent in that order.
Field nameNo. of bytes
Station No.1 byte
Function Code1 byte
Data Part2 to 125 bytes
Error Check Code (CRC-16)2 bytes
The following describes each part of the message.
Station No.
This is the number specifying the slave. Commands can only be processed by slaves that have the same value set in the "STno"
parameter.
For more about setting the "STno" parameter, see "Chapter 4,
Setting Communication Parameters" (p. 15).
Function Code
This code specifies the function for the slave to perform.
For more about function codes, see "Function Code" (p. 23).
Data Part
This data is required to run the function code. The composition of the data part is different depending on the function code.
See "Chapter 6, Command and Transmission Frame Details"
(p. 27).
The data in the micro controller is assigned a coil number or resistor number. This coil number or resistor number is specified
when the data is read or written through communication.
The coil number or resistor number used by the message employs a relative address.
The relative address is calculated using the following formula.
Relative address = (last four digits of the coil number or resistor number) – 1
(Ex.) When a function code specifies resistor number "40003"
Relative address = (the last four digits of 40003) – 1
= 0002
is used in the message.
Error Check Code
This code detects whether there are errors (changes in the bits) dur ing the signal transmission processes. MODBUS protocol
(RTU mode) uses CRC-16 (Cyclic Redundancy Check).
For more about calculating CRC, see Section 5,
"Calculating Error Check Code (CRC-16)" (p. 24).
– 21 –
Slave Response
Refer to
Refer to
■ Normal Slave Response
The slave creates and replies with a response message for each command message. The response message has the same
format as the command message.
The contents of the data part are different depending on the function code.
See "Chapter 6, Command and Transmission Frame Details".
■ Irregular Slave Response
If there are problems (such as specification of a nonexistent function code) with the contents of the command message other than
transmission error, the slave creates and replies with an error response message without following the command.
The composition of the error response message uses the value of the function code in the command message plus 80
below.
Field nameNo. of bytes
Station No.1 byte
Function Code +80
H1 byte
Error Code1 byte
Error Check Code (CRC-16)2 bytes
The error code is shown as follows.
Error CodeContentsExplanation
HFaulty function codeA nonexistent function code was specified. Please check the function code.
01
HFaulty address for coil or resistorThe specified relative address for the coil number or resistor number cannot be
02
used by the specified function code.
03
HFaulty coil or resistor numberThe specified number is too large and specifies a range that does not contain
04
HWrite inhibitedData writing via communication is prohibited. “SCC” parameter is set to “R: read
06
HBusyEEPROM is busy in writing. Wait for a few seconds, and then retry writing.
coil numbers or resistor numbers.
only”.
H, as seen
■ No Response
In the following situations, the slave will ignore the command message and not send a response message.
• The station number specified by the command message is not the same as the slave’s specified station number.
• The error check code does not correspond, or a transmission error (such as parity error) is detected.
• The interval between the data comprising the message is empty for more than 24 bit time.
See Section 5 "Transmission Control Steps" (p. 25).
• The slave station number is set to "0".
– 22 –
Function Code
For MODBUS protocol, coil numbers or resistor numbers are assigned by the function code, and each function code
only works for the assigned coil number or resistor number.
The correspondence between the function code and the coil number or resistor number is as follows.
Function CodeCoil Number, Resistor Number
CodeFunctionTargetNumberContents
HRead (continuous) Hold resistor3xxxxRead word data
Exclusive-or (XOR) runs on each character of J (one byte) for CR
and the specified message, and sets that result to CR.
After CR has been adjusted one bit to the right, A001
H and XOR
run and set that result to CR.
Is the right-hand
bit for CR 1?
NO
Adjust CR one bit
to the right.
Has calculation
finished 8 times ?
J > 8
Has every character
been calculated ?
J > Number of characters
(Calculations occur in the order
command message station number,
function code, and data.)
The CR calculation result is added
onto the end of the command
message in LOW or HIGH order.
CRC-16 is a 2-byte (16-bit) error check code. The calculation range extends from the start of the message (station number) to the
end of the data part.
The slave calculates the CRC of the received message and ignores the message if this value is not the same as the received
CRC code.
CRC-16 is calculated as follows.
– 24 –
Transmission Control Steps
Caution
Master Communication Method
Start communication from the master while following the rules below.
1. The command message, must be sent after an empty space of at least 48 bit time.
2. The interval between each byte in a command message should be less than 24 bit time.
3. After sending a command message, for less than 24 bit time the master will enter receiving standby.
4. After receiving the response message, the next command message must be sent after at least 48 bit time. (Similar to #1.)
5. For safety reasons, create a framework where the master checks the response message, and if there is no response or an
error occurs, retry at least three times.
The definitions written above are for the minimum required value. For safety reasons, we recommend creating a
master side program that keeps margins two to three times as large. For a concrete example, with 9600 bps, we
recommend programming a blank state (#1 above) of at least 10ms, and the interval between bytes (#2 above) and
switching time from sending to receiving (#3 above) within 1 ms.
Explanation
■ Frame Detection
This communication system uses a two-wire RS-485 interface, and the circuit can therefore enter one of the following two states.
• Empty state (no data on the circuit)
• Communication state (data running on the circuit)
The units connected on the circuit start in receiving state and monitor the circuit. When a blank state appears on the circuit f or at least
24 bit time, the unit detects the end of the previous frame, and within the next 24 bit time, enters receiving standby. When data
appears on the circuit, the unit begins receiving data, and once another blank state of at least 24 bit time is detected, that frame is
ended. In other words, the data on the circuit from the first time that a 24 bit time blank state appears to the second time one appears
is loaded as one frame (a bundle of data). Therefore, one frame (command message) must be sent while following the rules below.
• Before sending the command message, leave an empty space of at least 48 bit time.
• The interval between each byte in a command message should be less than 24 bit time.
■ Micro controller Response
After the micro controller detects the frame (detects blank states at least 24 bit time long), that frame is used to send a command
message. When a command message is sent locally, the response message is returned, but the processing time is about 1 to 30
ms. (The time may change depending on the contents of the command message. ) Therefore, one frame (command message)
must be sent while following the rules below.
– 25 –
• After sending a command message, for less than 24 seconds the master will enter receiving standby.
Caution
Master
POL1
POL1 response data
POL2 response data
Slave
POL2
1 to 30ms
1 to 30ms
Interval of at least 10ms required
(at least 20ms recommended)
Prercautions when Writing Data
PXF contains internal nonvolatile memory (EEPROM) that is used to save the setting parameters. The data written to the
nonvolatile memory (EEPROM) remains even after the power for PXF is turned off. Parameters that are written via
communication are automatically saved in the internal nonvolatile memory (EEPROM). However, please note that there are two
limitations as follows.
1. There is a limit to the number of times that data can be transferred to the nonvolatile memory (EEPROM)
(100,000 times). Data cannot be guaranteed if written more than 100,000 times.
Be careful not to transfer unnecessary data when writing data via communication.
In particular, when constructing a communication system with master POD (such as a touch panel), make sure
that the POD writing and trigger settings are appropriate.
Avoid writing at fixed cycles.
2. Writing to the nonvolatile memory (EEPROM) takes seve ral milliseconds . If the pow er f or PXF is turned off during
this operation, the data saved to the nonvolatile memory (EEPROM) may be corrupted.
Wait several seconds after writing data before turning off the power.
In particular, when writing data in a cycle from master device, there is a greater danger of the writing timing and
power shutoff timing coinciding.
Avoid writing at fixed cycles.
– 26 –
Chapter 6
Command and Transmission Frame
Details
Reading Data – 28
●
Writing Data – 32
– 27 –
Reading Data
MasterSlave
Command Message Composition
(bytes)
Station No.
Function Code
No. to Start Reading
(Relative Address)
Upper
Lower
No. of Words to Read
(1 to 60 words)
Upper
Lower
CRC Data
Upper
Lower
Reply Message Composition (bytes)
Station No.
Function Code
No. of Bytes to Read
(No. of Words to Read x 2)
First Word Data
Contents
Upper
Lower
Next W ord Da ta
Contents
Upper
Lower
Last Word D a t a
Contents
Upper
Lower
CRC Data
Upper
Lower
■ Meaning of Read Word Data
MSBLSB
First Word Data upper byte
First Word Data lower byte
Next Word Data upper byte
Next Word Data lower byte
Last Word Data upper byte
Last Word Data lower byte
Reading Word Data (Function Code: 03H)
The unit reads word data continuously for the specified number of words from the first number to start reading from.
The slave forwards the read word data from the upper number of bytes to the lower number.
Function Code03H
Max. No. of Words to Read in One Message60 words
Relative Address0000H to 07CFH
Resistor Number40001 to 4200042001 to 45032
Contents
Internal Calculation
Value
Message Composition
H to 013AH
07D0
Engineering Unit
– 28 –
Example of Transmitting a Message (For Engineering Unit)
Refer to
MasterSlave
Command Message (bytes)
Station No.02H
Function Code03H
No. to Start Reading
(Relative Address)
Upper 07H
Lower E7H
No. of Words to Read
Upper 00H
Lower02H
CRC Data
Upper 78H
Lower95H
Response Message (bytes)
Station No.02H
Function Code03H
No. of Bytes to Read04H
First Word Data
Contents
Upper 00H
Lower 00H
Next Word
Data Contents
Upper 01H
Lower 90H
CRC Data
Upper C8H
Lower CFH
The message is composed as fo ll ows when reading the PV input lower limit and PV input upper limit from station number 2.