Ethercat direct input type step motor controller (servo 24vdc) (82 pages)
Summary of Contents for SMC Networks PFCQ531 Series
Page 1
Doc. No. DOC1117089 PRODUCT NAME Flow controller for air Preset input / Serial communication specification (Serial Communication / Modbus Protocol Edition) MODEL / Series / Product Number PFCQ531 Series...
Page 2
About this User's Manual This operation manual summarizes how to operate the flow Controller for air (PFCQ531 series) using the Modbus serial communication protocol. For common items, please refer to "Flow Controller Instruction Manual (Preset Input/Serial Communication Specifications) Document No. DOC1117087".
Page 3
Contents 1. Safety Instructions ............3 2. Outline ................5 2.1 Purpose of this Instruction Manual ............ 5 2.2 Notation ....................5 2.3 Abbreviations ..................5 3. Serial communication ..........6 3.1 Serial Communication Specifications ..........6 3.2 Memory Map ..................7 3.3 Message Frame Formats ..............
Page 4
1. Safety Instructions These safety instructions are intended to prevent hazardous situations and/or equipment damage. These instructions indicate the level of potential hazard with the labels of “Caution,” “Warning” or “Danger.” They are all important notes for safety and must be followed in addition to International Standards (ISO/IEC)*1), and other safety regulations. ※1) ISO 4414: Pneumatic fluid power -- General rules and safety requirements for system and their components ISO 4413: Hydraulic fluid power -- General rules and safety requirements for system and their components IEC 60204-1: Safety of machinery -- Electrical equipment of machines (Part 1: General requirements)
Page 5
1. Safety Instructions Caution SMC develops, designs, and manufactures products to be used for automatic control equipment, and provides them for peaceful use in manufacturing industries. Use in non-manufacturing industries is not allowed. Products SMC manufactures and sells cannot be used for the purpose of transactions or certification specified in the Measurement Act of each country.
Page 6
2. Outline 2.1 Purpose of this Instruction Manual This instruction manual describes the Modbus communication specifications for the PFCQ531-*-P* series flow controller for air. 2.2 Notation Unless stated otherwise, this operation manual follows the notation detailed below. (1) Values are written in big-endian byte order. (2) Values are generally written in decimal, however those ending with “h”...
Page 7
3. Serial communication 3.1 Serial Communication Specifications The serial communication method with the host device uses the single Master-Slave Modbus protocol. The host device is a master, and this product is a slave. When the master (host device) submits a request, the slave (flow controller) receives the request and responds (the slave does not submit requests).
Page 8
3.2 Memory Map The flow controller has an internal data memory that can be operated via this serial communication. Access to this area allows the user to check and change data in the controller as well as to give operating instructions. The following is a memory map of the flow controllers that can be accessed.
Page 9
Table Word Size Data Data Read Address (hexadecimal) Memory name Size Memory /Write (word) 0403h OUT signal output format 0406h Communication speed 0410h OUT1 signal function 0411h OUT2 signal function 0412h OUT3 signal function 0418h OUT1 output form 0419h OUT2 output form 041Ah OUT3 output form 041Eh...
Page 10
Data Address Read memory name Size memory (hexadecimal) /Write (word) 0A00h Current flow command 0A01h Current flow rate value 0A02h Preset number in progress 0A04h Error condition (in calculators) 0B00h Serial flow command 0C00h Password value 0C01h Password lock enabled Caution In the above memory map, data with RAM entry in the “Memory”...
Page 11
3.3 Message Frame Formats The following table describes the frame format used for serial communication . A) Request (Host device→ Flow controller) Function Note2) Start Data Checksum code ~28 byte T1-T2-T3-T4 1 byte 1 byte 2byte T1-T2-T3-T4 3.5character Function Depends on 3.5character 01h - 20h Note1)
Page 12
When the controller ID in the requested message frame is "00", it will be received as a broadcast request. This request can be sent simultaneously from a host device to all flow controllers connected to it. In this case, no response will be made. See "3.4 List of Functions"...
Page 13
3.4 List of Functions The following is a list of available functions. Functions with "yes" for Broadcast can also send broadcast transmissions. Broadcast can be used for setting functions. Readout functions are not supported. Read/Write Item Contents Broadcast support Communication speed Communication speed setting/reading Setting/reading target flow rate value Preset Data 1 to 7...
Page 14
3.5 Setting and reading out each function (1) Communication speed Feature Communication speed setting for RS-485 communication. Setting by broadcast transmission is also possible. (ii) Function code used Setting 06h / Reading 03h (iii) Setup address 0406h (iv) Set value Communication speed Set value Remarks...
Page 15
When reading the controller's internal settings It is assumed that a communication speed of 57,600 bps is set for controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→...
Page 16
(2) Preset Data 1 to 7 Feature Preset data of the flow rate target value; up to 7 points can be set. (ii) Function code used Setting 06h, 10h (when batch data is set) / Read 03h (iii) Setup address Item Address Preset Data 1...
Page 17
When making settings to the controller (when setting batch data) *Set 100L/min, 200L/min, and 300L/min to preset 1-3 for controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 00h 64h 00h C8h 01h 2Ch 56h F2h No communication 3.5 characters Example No communication 3.5 characters 05h 01h 00h...
Page 18
(3) Operation mode setting Feature Sets the operation mode of the unit. Specify the preset operation mode or the serial operation mode. Select the preset operation mode when the target flow rate command method is preset input, or select the serial operation mode when the target flow rate is commanded via serial communication.
Page 19
When reading the controller's internal settings *Serial operation mode is assumed to be set for controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→ Host device) Data Number of bytes T1-T2-T3-T4...
Page 20
(4) Target flow rate (serial operation mode only) Feature Sets the target flow rate for serial operation. Can also be set by broadcast transmission. (ii) Function code used Setting 06h / Read 03h (iii) Setup address 0B00h (iv) Set value 0 to 300 L/min (0000h to 012Ch) Communication Example...
Page 21
When reading the controller's internal settings Assume that 200(00C8h) L/min is set as the target flow value in controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→...
Page 22
(5) OUT Signal function selection Feature Sets the function of the OUT1-3 signals. For details on each function, refer to the flow controller instruction manual (preset input and serial communication specifications). (ii) Function code used Setting 06h, 10h (when batch data is set) / Read 03h (iii) Setup address Item...
Page 23
When making settings to the controller (when setting batch data) *Set ERROR, AREA1, and AREA2 to OUT1-3 of controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters 04h 10h 00h 00h 01h 00h 03h 00h 04h 3Eh 26h No communication 3.5 characters Response (Flow controller→...
Page 24
AREA 1 to 3 range Function AREA1 to 3 upper/lower limit range. (ii) Function code used Setting 06h, 10h(when batch data is set) / Read 03h (iii) Setup address Item Address AREA1lower limit 041Eh 041Fh AREA1 upper limit 0420h AREA2 lower limit AREA2 upper limit 0421h 0422h...
Page 25
When making settings to the controller (when setting batch data) *Set 50 (0032h) L/min / 250 (00FAh) L/min to the AREA2 lower limit / upper limit for controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters...
Page 26
TOLERANCE range Feature Output range of the TOLERANCE signal. Sets the tolerance of the actual flow rate relative to the flow rate command value. (ii) Function code used Setting 06h / Read 03h (iii) Setup address Item Address TOLERANCE signal range 043Ah (iv) Set value...
Page 27
When reading the controller's internal settings Assume that 25 (0019h) % is set for controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→ Host device) Data Number of bytes T1-T2-T3-T4...
Page 28
(8) OUT signal output format Feature Sets the output format (NPN/PNP) for switch output signal OUT1-3. The set output format is applied to all OUT1-3. Individual settings are not possible. (ii) Function code used Setting 06h / Read 03h (iii) Setup address Item Address...
Page 29
When reading the controller's internal settings It is assumed that NPN is set for the OUT signal output format of controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→...
Page 30
(9) OUT signal Output form Feature Sets the output form (Standard or Reverse) of switch output signal OUT1-3, which can be set individually for OUT1-3. (ii) Function code used Setting 06h, 10h (when batch data is set) Read 03h (iii) Setup address Item Address...
Page 31
When making settings to the controller (when setting batch data) *Set the output form of OUT1-3 of controller ID 01 to Standard, Standard, Reverse. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters 04h 18h 00h 00h 00h 00h 00h 00h 01h B2h 0Fh No communication 3.5 characters Response (Flow controller→...
Page 32
(10) Memory initialization Feature Set all memory contents to factory defaults. Please note that once the transmission is executed, it cannot be cancelled. (ii) Function code used Setting 05h (Cannot be read out) (iii) Setup address Item Address Data initialization execution 0050h (iv) Set value...
Page 33
(11) Firmware Version Feature Reads the firmware version of the flow controller. (ii) Function code used Read 03h (iii) Setup address Item Address Firmware version 04FFh (iv) Set value Version 1.000 is represented as 1000h in hexadecimal. Only readout is possible. Example version 1.230→...
Page 34
(12) IN1to 4 input status Functionalities Reads the status of switch input signal IN1-4. (ii) Function code used Read 01h (iii) Setup address Item Address IN1 state 0010h IN2 state 0011h IN3 state 0012h IN4 state 0013h (iv) Set value OFF :...
Page 35
(13) Preset Data No. during execution Feature Reads the preset data No. being executed. (ii) Function code used Read 03h (iii) Setup address Item Address Running preset data No. 0A02h (iv) Readout : 1 to 7 (0001h-0007h) Preset data No. being executed (0000h) No presets data in progress Communication Example...
Page 36
(14) Current flow value Feature Reads the current flow rate value. (ii) Function code used Read 03h (iii) Setup address Item Address Current flow rate value 0A01h (iv) Read value 0-500 L/min (1 L/min resolution) Communication Example When reading the controller's internal settings *Reads the current flow rate value during the execution of controller ID 01.
Page 37
(15) Target flow value Feature Reads the current target flow value. (ii) Function code used Read 03h (iii) Setup address Item Address Target flow rate value 0A00h (iv) Read value 0-300 L/min (1 L/min resolution) Communication Example When reading the controller's internal settings *Reads the current target flow rate value for controller ID 01.
Page 38
(16) Current error content Feature Reads out the contents of the error that is currently occurring. (ii) Function code used Read 03h (iii) Setup address Item Address Currently Occurring Errors 0A04h (iv) Readout Read value Contents 0 (0000h) No errors. 1 (0001h) Switch input error 3 (0002h)
Page 39
(17) Error history Feature Reads error history. The error history can be read backward from the last error up to 10 errors ago. (ii) Function code used Read 03h (iii) Setup address Item Adress Error history 1 0811h Error history 2 0812h Error History 3 0813h...
Page 40
Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→ Host device) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters...
Page 41
(18) Error history clear Feature Clears (0) the contents of the error history. It is possible to clear the history individually, but the order of the history will not be packed. It is recommended that the history 1-10 be cleared together at the time of implementation. Please note that once the transmission is executed, it cannot be cancelled.
Page 42
When making settings to the controller (when setting batch data) *Clear all error history for controller ID 01. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Each data 0000h Example No communication 3.5 characters 08h 11h 00h 0Ah 14h 4Ah B4h No communication 3.5 characters Response (Flow controller→...
Page 43
(19) OUT signal output status Feature Reads the status of the switch output signal OUT1-3. (ii) Function code used Read 02h (iii) Setup address Item Adress OUT1 state 0040h OUT2 stare 0041h OUT3 state 0042h (iv) Read value OFF: 0 ON:...
Page 44
(20) Password lock Feature Enables or disables locking for all memory contents. For details of the function, refer to the flow controller instruction manual (preset input and serial communication specifications). Two steps are required to use the password lock function via serial communication. Step 1: Set a password Step 2: Enable/disable password lock.
Page 45
<Step 2> Enable password lock Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Response (Flow controller→ Host device) Data Number of bytes T1-T2-T3-T4 T1-T2-T3-T4 Example No communication 3.5 characters No communication 3.5 characters Caution The memory initialization function can be executed even in the password locked...
Page 46
(21) Output Signal status Feature Reads AREA1-3 signal, TOLERANCE signal, and ERROR signal outputs state. (ii) Function code used Read 02h (iii) Setup address Item Address AREA1 signal output 0050h AREA2 signal output 0051h AREA3 signal output 0052h TOLERANCE signal output 0053h ERROR signal output 0054h...
Page 47
(22) Echo back Feature Communication test with echo back. (The data sent is returned as is). (ii) Function code used Setting 08h (iii) Setting address (diagnostic code) 0000h (iv) Set value Any value in the range 0000h-FFFFh can be sent. Communication Example When configuring the controller *Send 1A2Bh as echo back data to controller ID 01.
Page 48
3.6 Irregular Response If an error occurs due to incomplete communication data or circumstances in response to a request sent from a host device to a flow controller via serial communication, the flow controller returns an error response to the host device. The frame format of the irregular response is common regardless of the type of request and is as follows.
Page 49
Example of irregular response Example 1) Undefined function code error *When sending a request to read out the current flow rate value during execution of controller ID 01, it is assumed that the request was sent with incorrect function code 30h (positive value 03h).
Page 50
Example 2) Password mismatch *If a request to disable the password lock for controller ID 01 was sent, but the previously entered password was different from the value that was set when the lock was enabled. Request (Host device→ Flow controller) Data Number of bytes T1-T2-T3-T4...
Page 51
4. Reference Information 4.1 CRC checksum calculation method Calculation Method The checksum calculation method in RTU mode conforms to the CRC-16 method. The data to be calculated is all transmitted data, and data is calculated in 2-byte (16-bit) units. Preload "FFFFh". (ii) Takes the ExOR of the value of 1 Byte from the beginning of the transmitted data (1 value) and the value of (i).
Page 52
ExOR flag...The value taken out as a result of 1-bit shift. When "1" is selected, ExOR is taken between the result of the 1-bit shift and "A001h". A001h High Byte “CRC16(H)” Low Byte ”CRC16(L)” Operational ExOR contents Flag FFFFh load "01h"...
Need help?
Do you have a question about the PFCQ531 Series and is the answer not in the manual?
Questions and answers