Fuji Electric PXF Operating Manual

MODEL : PXF
INP-TN5A2227a-E

Introduction

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.
– 1 –

Contents

1. Communication Functions
Overview................................................................................4
Connecting to a programmable controller.......................... 5
Connecting to a personal computer...................................5
2. Specifications
Communication Specifications..............................................8
RS-485...............................................................................8
PC Loader Interface...........................................................8
3. Connection
Communication Terminal Configuration...............................10
Wiring..................................................................................11
4. Setting Communication Parameters
List of Setting Parameters ...................................................16
Parameter Setting Procedure..............................................17
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
7. Address Map and Data Format
Data Format.........................................................................38
Internal Calculation Value Data Address Map.....................40
8. Sample Program
Sample Program..................................................................68
9. Cooperative operation
Overview..............................................................................70
Connection...........................................................................71
Setup and related parameters .............................................72
Cooperative operation..........................................................73
List of parameters subject to the cooperative operation......74
10. Programless communication
Overview..............................................................................82
Connection...........................................................................83
Programless communication................................................84
Setup and related parameters .............................................88
Setup for Programless Communication ...............................90
11. Troubleshooting
Troubleshooting..................................................................126
6.
Command and Transmission Frame Details
Reading Data ......................................................................28
Writing Data.........................................................................32
– 2 –
Chapter 1
Communication Functions
Overview – 4
– 3 –

Overview

Caution
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 communication Typical 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 operation When you control one temperature controller, the other controllers follow it. The one controller
3. Programless communication Programmable 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
TQ501923C3) sold separately.
*
RS-232C to RS-485 converter (recommended product)
Model Manufacturer URL Baud rate KS3C-10 (isolated type) OMRON Corporation http://www.omron.co.jp Maximum 38400 bps SI-30FA (isolated type) LINEEYE Co., Ltd. http://www.lineeye.co.jp Maximum 115.2 Kbps
– 4 –

Connecting to a programmable controller

Caution
Programmable controller
RS-485
PXF Series

Connecting to a personal computer

Personal computer
PC loader communication cable
RS-232C
RS-232C to RS-485 converter
RS-485
PXF Series
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

Item Specifications Electrical specifications EIA RS-485 compliant Communication method Two wire system, half double-bit serial Synchronous method Asynchronous Connection status 1:N Max. no. of connections 31 units Communication distance Max 500m (total length) Communication speed 9600bps, 19200 bps, 38.4kbps, 115.2kbps Data format Data length 8 bits
Stop bit 1 bit
Parity None/Even/Odd (Selectable) Transmission code HEX value (MODBUS RTU mode) Error detection CRC-16 Insulation Functional insulation for the transmission area and
other areas (withstanding AC 500V)

PC Loader Interface

Item Specifications Electrical specifications TTL Level Communication method 3wire system, half double-bit serial Synchronous method Asynchronous Connection status 1:1 Station No. 1 (Not to be changed) Communication speed 38.4kbps (Not to be changed) Data format Data length 8 bits
Stop bit 1 bit
Parity none (Not to be changed) Transmission code HEX value (MODBUS RTU mode) Error detection CRC-16 Insulation Non-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
7 RS-485 + 8 RS-485 -
Terminal
Number
Signal Name
25 RS-485 + 26 RS-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
CTYP Communication
StNo Station No. 0 to 255 (0: unresponsive
SPEd RS-485 baud rate 96: 9600 bps
PRty RS-485 parity none
iNtV RS-485 response
SCC Communication
Data length Fixed (cannot be changed) 8 bits Set the master and all of the slaves with
Stop bit Fixed (cannot be changed) 1 bits Set the master and all of the slaves with
Name Setting 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 100 1 Widen the time interval of receiving
r: read only rW: read/writable
Initial value
0 Select "0: MODBUS RTU".
1 Sets the station number.
96 Sets the baud rate
odd Sets the parity check
response. (Set value x 20 ms)
rW Sets 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

Master Slave
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 same When 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
Master Slave
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 name No. of bytes Station No. 1 byte Function Code 1 byte Data Part 2 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 name No. of bytes Station No. 1 byte Function Code +80
H 1 byte
Error Code 1 byte Error Check Code (CRC-16) 2 bytes
The error code is shown as follows.
Error Code Contents Explanation
H Faulty function code A nonexistent function code was specified. Please check the function code.
01
H Faulty address for coil or resistor The specified relative address for the coil number or resistor number cannot be
02
used by the specified function code.
03
H Faulty coil or resistor number The specified number is too large and specifies a range that does not contain
04
H Write inhibited Data writing via communication is prohibited. “SCC” parameter is set to “R: read
06
H Busy EEPROM 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 Code Coil Number, Resistor Number
Code Function Target Number Contents
H Read (continuous) Hold resistor 3xxxx Read word data
03 04
H Read (continuous) Input resistor H Write Hold resistor
06
H Write (continuous) Retention resistor
10
The message length for each function is as follows.
Code Contents
H Read word data 60 words
03
H Read word data (read-only) 60 words
04 06
H Write word data 1 word 8888 H Continuously write word data 60 words
10
Assignable
Data Number
*1 *1
*1
Command Message Response Message
Minimum Maximum Minimum Maximum
4xxxx Read/write word data
[unit: byte]
887125 887125
11 129 8 8
*1: "Assignable Data Number" above is limited by the data number that the micro controller assigned to the coil number or
address number. (Excluding function code 06
H).
– 23 –

Calculating Error Check Code (CRC-16)

YES
YES
NO
NO
YES
* Description of Variables
CR : CRC error check data (2 byte) J : Command message calculation
character digit
K : No. of times to check CR calculation
Start
Set J = 1
Set K = 1
Add 1 to K
Complete
Add 1 to J
Set CR to FFFF
H (hexadecimal)
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

Master Slave
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
MSB LSB
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 Code 03H Max. No. of Words to Read in One Message 60 words Relative Address 0000H to 07CFH Resistor Number 40001 to 42000 42001 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
Master Slave
Command Message (bytes)
Station No. 02H Function Code 03H
No. to Start Reading (Relative Address)
Upper 07H Lower E7H
No. of Words to Read
Upper 00H Lower 02H
CRC Data
Upper 78H Lower 95H
Response Message (bytes)
Station No. 02H Function Code 03H No. of Bytes to Read 04H
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.
• PV Lower Limit Relative Address: 07E1H
Meaning of Read Data
PV Input Lower Limit 00 00H = 0 PV Input Upper Limit 01 90H = 400
If Decimal Point Position = 0, then the PV input upper limit and lower limit are as follows. PV Lower Limit = 0°C PV Upper Limit = 400°C
For more about the internal calculation value, engineering unit, and decimal point see "Chapter 7, Address Map and Data Format" (p. 39).
– 29 –
Loading...
+ 98 hidden pages