Fuji Electric MICREX-SX Series User Manual
Fuji Electric MICREX-SX Series User Manual

Fuji Electric MICREX-SX Series User Manual

Spf general purpose communication
Hide thumbs Also See for MICREX-SX Series:
Table of Contents

Advertisement

series
USER'S MANUAL
SPF General Purpose Communication
FEH528b

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MICREX-SX Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Fuji Electric MICREX-SX Series

  • Page 1 series USER’S MANUAL SPF General Purpose Communication FEH528b...
  • Page 2 User’s Manual SX-Programmer Expert FEH257 (D300win) <Reference>, MICREX-SX series Expert. * In addition to the above manuals, the following Fuji Electric Co.,Ltd.site offers various manuals and technical documents associated with MICREX-SX series. URL http://www.fujielectric.com Notes 1. This manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer.
  • Page 3 Safety Precautions Be sure to read the "Safety Precautions" thoroughly before using the module. Here, the safety precautions items are classified into "Warning" and "Caution". Warning : Incorrect handling of the device may result in death or serious injury. Caution : Incorrect handling of the device may result in minor injury or physical damage.
  • Page 4  Do not attempt to change system configurations (such as installing or removing expansion block) while the power is ON, otherwise, failure or erratic operation might occur.  Do not attempt to repair the module by yourself, but contact your Fuji Electric agent, otherwise, fire, accident or failure might occur.
  • Page 5 Revision * The manual No. is printed at the bottom right of the cover of this manual. Printed on * Manual No. Revision contents Jan. 2017 FEH528 First edition Apr. 2017 FEH528a NA0LA-RS3 was added. Oct. 2017 FEH528b The safety precautions were revised.
  • Page 6: Table Of Contents

    Contents Contents Preface Safety Precautions Revision Contents General Section Section G1 Communication Mode Introduction ..................G-1 G1-1 Overview of Communication Modes ..........................G-1 G1-2 About Communication Port ............................G-6 Hardware Section Section H1 Hardware Specifications ......................H-1 H1-1 General Specifications ...............................H-1 H1-2 Transmission Specifications ............................H-2 H1-3 Names and Functions ..............................H-3 H1-4 External Dimensions ..............................H-6 H1-5 Communication Cable Wiring ............................H-7...
  • Page 7 Contents Section S5 Modbus RTU Master Communication Details ................S-23 S5-1 Overview ..................................S-23 S5-1-1 Settings of system definition..........................S-23 S5-2 Connection Configuration ............................S-24 S5-3 Communication Specifications ...........................S-25 S5-4 Function Code List ..............................S-26 S5-5 FB Format ..................................S-27 S5-6 Description of FB Terminals ............................S-29 S5-7 Error Status ................................S-32 S5-7-1 Initialization status (O_STS) ..........................S-32 S5-7-2 Sending/receiving status (R_STS) ........................S-33...
  • Page 8: General Section

    General Section Section G1 Communication Mode Introduction You can perform RS-232C/RS-485 communication between external devices by adding a communication board or unit to SPF. Up to five ports can be used (PORT 0 to 4). Port Nos. are defined according to the location of the SPF communication port. For details, refer to “G1-2 About communication port”.
  • Page 9 General Section (2) Loader communication This communication mode allows the connections shown below. 1) Connection to POD (MONITOUCH) No application program for communication is required. Connect to CPU loader port 2) Connection to PC loader Connect to CPU loader port PC loader USB connection Dedicated cable (NA0H-CUV)
  • Page 10 General Section * Notes on executing resource initialization of the CPU by the loader using Port 1 to Port 4 Be aware of the following notes when you use PORT 1 to 4 as Loader connection. If you execute resource initialization using PORT 1 to 4, set the parameter setting to “Loader” and download the project file to the PLC before resetting the PLC.
  • Page 11 General Section (3) CPU link communication (SPF mode) This communication mode enables data sharing between multiple CPUs (N-to-N communication). Data communication can be performed simply by setting the station No. and area in the parameter setting. Only RS-485 is supported. * CPU link communication specifications of SPF are different from those of SPB/SPE.
  • Page 12 General Section (4) Modbus RTU master communication SPF acts as a Modbus RTU master, and communicates with multiple slaves. You need to create a communication program using Modbus FB on the SPF side. Modbus RTU master Connect to communication board or unit (RS-485) Modbus RTU slave device Modbus RTU slave device Modbus RTU slave device...
  • Page 13: G1-2 About Communication Port

    General Section G1-2 About Communication Port The table below shows the specifications of each communication port. Communication expansion Communication expansion CPU built-in Port location board unit loader port (Attach on the front of CPU) (Attach on the left of CPU) Port number PORT0 PORT1...
  • Page 14: Hardware Section

    Hardware Section Section H1 Hardware Specifications H1-1 General Specifications The table below shows the communication board/unit specifications. For the general specifications, refer to the user’s manual “SPF Hardware (FEH526).” Item Specification NA3LA-RS1: 5V DC, 55mA or less (supplied from basic unit) Internal power consumption NA0LA-RS5: 5V DC, 95mA or less (supplied from basic unit) NA0LA-RS3: 5V DC, 18mA or less (supplied from basic unit)
  • Page 15: H1-2 Transmission Specifications

    Hardware Section H1-2 Transmission Specifications Item Specification Interface RS-232C RS-485 Synchronization method Start-stop synchronous transmission Baud rate (bps) 1200/2400/4800/9600/19200/38400/57600/115200 Transmission distance 15m or less 1km or less (at 19200bps or less) Number of connectable units 1:15 (Max) PORT 0: mini DIN-4 pin (female) Connection method 3-pole European-style terminal block PORT 1 to 4: D-sub9 pin (female)
  • Page 16: H1-3 Names And Functions

    Hardware Section H1-3 Names and Functions (1) Names NA3LA-RS1 (Communication expansion board: RS-232C × 1ch, RS-485 × 1ch) 3) RS-485 transmission status LED 1) RS-232C transmission status LED PORT2 4) RS-485 terminal block 2) RS-232C connector PORT1 5) RS-485 terminating resistor switch * Inside the surface cover NA0LA-RS5 (Communication expansion unit: RS-485 ×...
  • Page 17 Hardware Section (2) Functions 1) RS-232C transmission status LED These LEDs indicate the RS-232C transmission status. Symbol Color Lighting condition ON while sending data Green ON while receiving data 2) RS-232C connector D-sub9 pin female connector. The screws on both ends of the connector are inch type screws. Note that the pin assignment is opposite to that of normal RS-232C.
  • Page 18 Hardware Section 3) RS-485 transmission status LED These LEDs indicate the RS-485 transmission status. Symbol Color Lighting condition ON while sending data Green ON while receiving data 4) RS-485 terminal block Signal name Description + (D+) RS-485 transmission+ - (D-) RS-485 transmission- G (SG) Signal ground...
  • Page 19: H1-4 External Dimensions

    Hardware Section H1-4 External Dimensions NA0LA-RS5, NA0LA-RS3 2 - 4.5 Unit: mm * NA3LA-RS1 (front board) is stored inside the CPU.
  • Page 20: H1-5 Communication Cable Wiring

    Hardware Section H1-5 Communication Cable Wiring H1-5-1 RS-485 cable wiring RS-485 provides connection for multiple stations. Its wiring distance must conform to the restriction specified in the EIA standard. For hardware wiring, observe the principle that connection distance should be as short as possible and the station should be far away from high noise sources.
  • Page 21 Hardware Section <Cable> Use the shielded twisted pair cables for connection. The cable quality is an important factor for transmission signal. When the baud rate is high, low quality twisted pair cables (e.g. PVC twisted pair cables) will cause extremely high signal attenuation and considerably shorten the transmission distance.
  • Page 22 Hardware Section <Topology> Topology is a graph structure of transmission connection. The topology of RS485 must be in a Bus structure. Connect all cables from the first station to the second station, from the second station to the third station, …… and then to the last station. Bus connection The shorter, The shorter,...
  • Page 23 Hardware Section <FG grounding> Though RS-485 network can be connected with two cables, the connection is easily affected by noise. To improve communication quality, the ground potential difference (common mode voltage) between two stations should not exceed the max. allowable common mode voltage of the RS-485 transmission IC.
  • Page 24: H1-5-2 Rs-232C Cable Wiring

    Hardware Section H1-5-2 RS-232C cable wiring RS-232C is used by 1 : 1 connection. The transmission distance is defined as maximum 15m at 19200bps by standard. Use cables sold for RS-232C. If used at a faster speed, the transmission distance must be shortened. For hardware wiring, observe the principle that connection distance should be as short as possible and the station should be far away from high noise sources to minimize the influence of noise.
  • Page 25: Software Section

    Software Section Section S1 Communication Board/Unit Registration Register communication boards and units on the system definition dialog box. <Communication board/unit registration procedure> ‹ Open the system definition. Right-click “Basic unit”, and then left-click [Insert]. ‹ The “Module insert" dialog box appears. When you use the “Communication board”, select “Front Board”...
  • Page 26 Software Section ‹ Click the [Parameter] button. The “Communication Adapter parameter setting” dialog box appears. Select “Loader,” “General (Asyn)” or “CPU LINK” for the Mode. * If you use Modbus RTU master communication, select “General (Asyn).”...
  • Page 27: Section S2 General Purpose Communication Mode Details

    Software Section Section S2 General Purpose Communication Mode Details S2-1 Overview With non-procedural FB, it is possible to make free format data communication with external devices. You need to create a communication program on the SPF side. With Modbus RTU FB, you can use SPF as a Modbus RTU master. For details, refer to Section S5. Connect to communication board or unit Data receive Enternal device...
  • Page 28: S2-2 Connection Configuration

    Software Section S2-2 Connection Configuration (1) RS-232C 1:1 configuration RS-232C External device (2) RS-485 1:1 configuration RS-485 External device (3) RS-485 1:N configuration RS-485 External device 1 External device 2 External device N...
  • Page 29: S2-3 Non-Procedural Fb Specifications

    Software Section S2-3 Non-procedural FB Specifications S2-3-1 Communication specifications Item Specification Baud rate 1200/2400/4800/9600/19200/38400/57600/115200bps Data bit 7/8 bits Parity bit None/Odd/Even Stop bit 1/2 bits None RS: Always ON, Data send : unconditional Signal flow control Yes RS: ON when sending data, Data send : When CS is ON Xon/Xoff control Use / not use RS-485 mode...
  • Page 30: S2-3-2 Fb Format

    Software Section S2-3-2 FB format <D300win> Input terminal name Output terminal name CSPF_FREE Open (BOOL) OPEN (BOOL) OK Communication ready Send request (BOOL) S_REQ (WORD) O_STS Open status Send data length (INT) S_LEN (BOOL) S_END Send end (BOOL) S_ERR Send error (WORD) S_STS Send status (BOOL) R_END...
  • Page 31 Software Section <Standard> CSPF_FREE Open Communication ready OPEN Send request Open status S_REQ O_STS Send data length Send end S_LEN S_END Send error S_ERR WV11 Send status S_STS Receive end R_END Receive error R_ERR WV14 Receive status R_STS WV15 Receive data length R_LEN Send data Send data...
  • Page 32: S2-3-3 Description Of Fb Parameters

    Software Section S2-3-3 Description of FB parameters Terminal name FB name Data type Description ON: Sends the “Communication parameters” to the communication board/unit to initialize communication. “Communication ready” is set ON when the communication Open OPEN BOOL board/unit is ready for communication. OFF: Terminates the communication port.
  • Page 33 Software Section <Data arrangement of Communication parameter PARA (INT array)> Change setting while (Note) D300win Standard FB is in operation PARA[0] PARA[1] PORT No. Not possible PARA[1] PARA[2] Reserved – PARA[2] PARA[3] Reserved – PARA[3] PARA[4] Reserved – PARA[4] PARA[5] Baud rate (bps) Not possible PARA[5]...
  • Page 34: S2-4 Initialization

    Software Section S2-4 Initialization S2-4-1 Initialization parameters To initialize the ports of the communication board/unit, set values that match the communication specifications of the external device in the “communication parameter”. The table below describes the setting items. Item Description Select the port No. assigned (PORT1 to 4) to the FB. PORT No.
  • Page 35 Software Section Item Description This is valid when “Variable length” is selected in parameter 17. Sets whether or not to add horizontal parity for checking text data transmission error. 0: None 1: Set BCC in the order of upper and lower digit 2: Set BCC in the order of lower and upper digit Sets the calculation range and BCC position.
  • Page 36: S2-4-2 Initialization Procedure

    Software Section S2-4-2 Initialization procedure When the OPEN terminal of the FB is set ON, communication parameters are transferred to the communication board/unit, which executes processing for initialization. If initialization is failed due to a communication parameter setting error or hardware error, the FB outputs the corresponding error code to the “open status”.
  • Page 37: S2-4-3 Open Status List

    Software Section S2-4-3 Open status list Item Description '00' Completed normally '01' Baud rate out of range error The setting of the “baud rate” is out of the range. '02' Data bit out of range error The setting of the “data bit length” is out of the range. '03' Parity bit out of range error The setting of the “parity bit”...
  • Page 38: S2-5 Data Sending

    Software Section S2-5 Data Sending S2-5-1 Data sending procedure Set data. Send data (S_DAT) Set data length. Send data length (S_LEN) Set ON by the application program Set OFF by the application program Send request (S_REQ) Processing for sending Send end (S_END) S_END and S_ERR are outputted for one scan.
  • Page 39: S2-6 Data Receiving

    Software Section S2-6 Data Receiving S2-6-1 Data receiving procedure Communication ready (OK) Ready to receive data Receive data (R_DAT) Receive data length (R_LEN) Receive status (R_STS) Receive end (R_END) In case of receive error R_END Receive error (R_ERR) While the “communication ready” flag is ON, whether the data to be received exists or not is checked continuously and, when it exists, the FB executes processing for receiving.
  • Page 40: Section S3 Loader Communication Mode Details

    Software Section Section S3 Loader Communication Mode Details S3-1 Overview This mode is used to communicate with SPF, using loader commands. On the PLC side, all you need is to select “Loader” for the mode of the communication board/unit. It is not necessary to create a communication program. You can connect D300win, Standard loader, POD (MONITOUCH) or personal computer to perform data communication.
  • Page 41: Section S4 Cpu Link Communication (Spf Mode) Details

    Software Section Section S4 CPU Link Communication (SPF mode) Details S4-1 Overview You can construct a network between up to 16 SPF series CPUs using the RS-485 port of the communication board/ unit. One port per SPF unit can be defined as CPU link communication. The CPU link of SPF series cannot be combined with that of SPB or NB series.
  • Page 42: S4-1-2 Memory Related To Cpu Link Communication

    Software Section S4-1-2 Memory related to CPU link communication The table below shows the memories related to CPU link communication. (1) Memory list Address Name Description D300win Standard Link station configuration The bits corresponding to the stations that are connected to the %MW1.61858 WM61858 relay link are set ON.
  • Page 43 Software Section %MW1.62112 WM62112 The send area of the station No. 7 (receive area when viewed Station No. 7 Send area to 62143 to 62143 from other stations) %MW1.62144 WM62144 The send area of the station No. 8 (receive area when viewed Station No.
  • Page 44 Software Section (2) Memory details <Link station configuration relay> This memory indicates, for each station, that link communication is performed successfully. (Number in a frame means station No.) The bit for the station that is connected to the link is set ON. The bit for unregistered or unconnected station is set OFF. %MW1.61858/WM61858 <Link station error relay>...
  • Page 45 Software Section <Configuration data> This memory indicates the number of link data words of the station that is connected to the link (set in the system definition). This data is not cleared even when the station is disconnected from the link. F E D C B A 9 8 7 6 5 4 3 2 1 0 Station No.
  • Page 46 Software Section <Send/receive area> The send/receive area is used to exchange data between the CPUs during CPU link communication. 32 words (fixed) are allocated to each station as a send/receive area. In practice, the specified size of memory (“Data size” specified in the system definition) is used from the lowest address.
  • Page 47: Section S5 Modbus Rtu Master Communication Details

    Software Section Section S5 Modbus RTU Master Communication Details S5-1 Overview Modbus RTU master FB enables Modbus RTU communication with Modbus RTU slave stations. You need to create a program on the SPF side to send/receive data. S5-1-1 Settings of system definition When using the Modbus RTU master FB, select “General (Asyn)”...
  • Page 48: S5-2 Connection Configuration

    Software Section S5-2 Connection Configuration (1) RS-232C 1:1 connection Modbus master RS-232C Modbus slave device (SPF) (2) RS-485 1:1 connection Modbus master RS-485 Modbus slave device (SPF) (3) RS-485 1:N connection Modbus master RS-485 Modbus slave device (SPF) Modbus slave device Modbus slave device *N: Max.
  • Page 49: S5-3 Communication Specifications

    Software Section S5-3 Communication Specifications Item Specification Baud rate 1200/2400/4800/9600/19200/38400/57600/115200 bps Synchronization method Start-stop synchronous transmission Communication method Half-duplex communication RS-232C, mater : slave = 1:1, or Communication form RS-485, master : slave = 1:N (1 <= N <= 15) Start bit 1 bit (fixed) Data bit...
  • Page 50: S5-4 Function Code List

    Software Section S5-4 Function Code List MODBUS master FB supports the functions listed below. For the data formats of individual functions, refer to “S5-8 Message Formats for Individual Function Codes.” Function code Function Coil (output) reading Read Coil Status Input bit reading Read Input Status Retain register reading Read Holding Register...
  • Page 51: S5-5 Fb Format

    Software Section S5-5 FB Format <D300win> CSPF_MODM Open OPEN (BOOL) Communication ready (BOOL) OK Communication request S_REQ (BOOL) Open status (WORD) O_STS Slave station No. STN_NO_I (INT) Receive end (BOOL) R_END Function code Receive error F_CODE_I (WORD) (BOOL) R_ERR Start address 1 ADD_I (WORD) Receive status (WORD) R_STS...
  • Page 52 Software Section <Standard> CSPF_MODM Communication ready Open OPEN WV13 Open status Send request O_STS S_REQ Receive end Slave station No. STN_NO_I R_END Function Code Receive error F_CODE_I R_ERR Start address 1 Receive status WV16 ADD_I R_STS Data length 1 Slave station No. WV17 LEN_I STN_NO_O...
  • Page 53: S5-6 Description Of Fb Terminals

    Software Section S5-6 Description of FB Terminals Variable Terminal name Data type Description name Open OPEN BOOL ON: Sends the “communication parameters” to a communication board/ unit to initialize communication. When the communication board/unit is ready for communication, “communication ready” is set ON. Leave this terminal ON during communication.
  • Page 54 Software Section Receive error R_ERR BOOL Set ON for one scan when an error occurs while receiving data from a MODBUS slave station. This is a code to indicate the result of receiving. Receive status R_STS WORD For details, refer to “S5-7-2 Sending/receiving status.” Slave station No.
  • Page 55 Software Section <Data arrangement of communication parameter (array of INT)> Item Description Set the port number assigned (PORT1 to 4) to the FB. PORT No. 1: PORT1, 2: PORT2, 3: PORT3, 4: PORT4 1 to 3 Reserved Not used. Set to 0. Baud rate (bps) 0: 1200, 1: 2400, 2: 4800, 3: 9600, 4: 19200, 5: 38400, 6: 57600, 8: 115200 Reserved...
  • Page 56: S5-7 Error Status

    Software Section S5-7 Error Status S5-7-1 Initialization status (O_STS) Item Description '00' Completed normally '01' Baud rate error The setting of the “baud rate” is out of the range. '03' Parity bit error The setting of the “parity bit” is out of the range. '04' Stop bit error The setting of the “stop bit”...
  • Page 57: S5-7-2 Sending/Receiving Status (R_Sts

    Software Section S5-7-2 Sending/receiving status (R_STS) Item Description (Hex) '00' Completed normally A response from the target device is normally received. No response is received from the target device within the time set in the “response monitoring timer”. Response monitoring time There are two error causes: the target device has not sent a response or the receive ‘41’...
  • Page 58: S5-8 Message Formats For Individual Function Codes

    Software Section S5-8 Message Formats for Individual Function Codes 1) Coil reading (code: 01 (h)) / Input bit reading (code: 02 (h)) Reads the status of the output/input bit of a slave device. The format of request message and response message is as follows: FB terminal FB terminal Request message...
  • Page 59 Software Section 2) Retain register reading (code: 03 (h)) / Input register reading (code: 04 (h)) Reads the status of the retain register / input register of a slave device. The format of request message and response message is as follows: FB terminal Request message Response message...
  • Page 60 Software Section 3) Forcible ON/OFF (1 bit) (code: 05 (h)) Forcibly sets ON/OFF a bit (coil) that is designated by a slave station. The format of request message and response message is as follows: FB terminal Request message Response message FB terminal Slave station No.
  • Page 61 Software Section 4) Retain register writing (1 word) (code: 06 (h)) Writes data in the register (1 word) that is designated by a slave device. The format of request message and response message is as follows: FB terminal Request message Response message FB terminal Slave station No.
  • Page 62 Software Section 5) Forcible ON/OFF (multiple bits) (code: 0F (h)) Forcibly sets ON/OFF a bit (coil) that is designated by a slave device. The format of request message and response message is as follows: FB terminal Request message Response message FB terminal Slave station No.
  • Page 63 Software Section 6) Retain register writing (multiple words) (code: 10 (h)) Writes data in consecutive registers starting with the one designated by a slave device. The format of request message and response message is as follows: FB terminal FB terminal Request message Response message Slave station No.
  • Page 64 Software Section 7) Diagnosis (code: 80 (h)) Diagnoses a slave device. The format of request message and response message is as follows: FB terminal Request message Response message FB terminal Slave station No. (STN_NO_I) Slave station No. Slave station No. Slave station No.
  • Page 65 Software Section 8) Retain register writing/reading (multiple words) (code: 17 (h)) FB terminal Request message Response message FB terminal Slave station No. (STN_NO_I) Slave station No. Slave station No. Slave station No. (STN_NO_O) Function code (F_CODE_I) Function code Function code Function code (F_CODE_O) Read data byte length Read start address (upper byte)
  • Page 66: Section S6 Memory Map

    Software Section Section S6 Memory Map This section describes the memories related to the communication expansion board/unit. * L : Loader communication G : General-purpose communication C : CPU link communication Related Address communication Name Description mode * D300win Standard Communication Set ON when the system definition data of the communication %MX10.27.0...
  • Page 67 Software Section Parity error counter Counted up when a parity error occurs during the data receiving. %MW1.61827 WM61827 – (PORT 3) Restarted from 0 when the maximum value (FFFF) is exceeded. Framing error Counted up when a framing error occurs during the data %MW1.61828 WM61828 counter...
  • Page 68 Software Section Configuration data The upper 8 bits indicate the configuration data of the station No. %MW1.61872 WM61872 (Station Nos. D. The lower 8 bits indicate the configuration data of the station – – C and D) No. C. Configuration data The upper 8 bits indicate the configuration data of the station No.
  • Page 69 Fuji Electric Co., Ltd. Gate City Ohsaki, East Tower, 11-2, Osaki 1-chome, Shinagawa-ku, Tokyo 141-0032, Japan E-mail: micrex-sx@fujielectric.com URL: http://www.fujielectric.com/ Materials covered in this document are subject to revision due to the modification of the product.

Table of Contents