FujiFilm NA0LA-ET1 User Manual
FujiFilm NA0LA-ET1 User Manual

FujiFilm NA0LA-ET1 User Manual

Micrex-sx series spf ethernet communication
Table of Contents

Advertisement

series
USER'S MANUAL
SPF Ethernet Communication
FEH630

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NA0LA-ET1 and is the answer not in the manual?

Questions and answers

Summary of Contents for FujiFilm NA0LA-ET1

  • Page 1 series USER’S MANUAL SPF Ethernet Communication FEH630...
  • Page 2 This User’s Manual describes the following products for the SPF series: • Ethernet communication expansion board (Type: NA3LA-ET1) • Ethernet communication expansion unit (Type: NA0LA-ET1) (These may be collectively referred to as “unit” in this manual.) This manual consists of General section (Page name with G), Hardware section (Page name with H), and Software section (Page name with S).
  • 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. Even some items indicated by "Caution"...
  • Page 4 Safety Precautions Caution  Do not use one found damaged or deformed when unpacked, otherwise, fire, failure or erratic operation might be caused.  Do not shock the product by dropping or tipping it over, otherwise, it might be damaged or troubled. ...
  • Page 5 Revision * The manual No. is printed at the bottom right of the cover of this manual. Printed on * Manual No. Revision contents Oct. 2017 FEH630 First edition...
  • Page 6: Table Of Contents

    Contents Preface Safety Precautions Revision Contents General Section Section G1 Introduction to Communication Modes G1-1 Overview of Communication Modes ..........................G-1 G1-2 Communication Port ..............................G-4 Hardware Section Section H1 Hardware Specifications ......................H-1 H1-1 General Specifications ...............................H-1 H1-2 Transmission Specifications ............................H-1 H1-3 Names and Functions ..............................H-2 H1-4 External Dimensions ..............................H-4 Software Section Section S1...
  • Page 7 Contents Section S6 Memory Map ..........................S-37 S6-1 Communication Parameter Special Register Retain Area ..................S-37 (for Reading/Writing) ..............................S-37 S6-2 Communication Parameter Special Register Non-retain Area ..................S-40 (for Reading) ..................................S-40 Section S7 Failure Diagnosis ........................S-43 S7-1 System RAS ................................S-43 S7-2 Dump List ...................................S-44 S7-3 Error Code List ................................S-52 S7-3-1 Error code format ..............................S-52 S7-3-2 Error code details for each error type ........................S-52...
  • Page 8: General Section

    General Section Section G1 Introduction to Communication Modes You can perform Ethernet communication with an external device by connecting a communication expansion board or communication expansion unit to an SPF series CPU. Each communication board and communication expansion unit has one physical port. Up to eight logical ports can be used per physical port.
  • Page 9 General Section (2) Loader communication (server operation) The “loader communication (server operation)” mode supports TCP/IP only (UDP/IP is not supported). The connections shown below are available. 1) Connection to POD (MONITOUCH) No application program for communication is required on the SPF side. Ethernet connection Connect to communication expansion board/unit Commercially available LAN cable...
  • Page 10 General Section (3) Loader communication (client operation) The “loader communication (client operation)” mode supports TCP/IP only (UDP/IP is not supported.) This mode is used to read/write the data memory in target device (SPH or SPF). “R_READ” (for reading data) and “R_WRITE” (for writing data) FBs are used for communication. Start these FBs to send a loader command from the self station to the target device. No communication program is required on the target device since it operates as a server.
  • Page 11: G1-2 Communication Port

    General Section G1-2 Communication Port The table below shows the specifications of communication ports. Communication expansion board Communication expansion unit Communication port location (Attach on the front of CPU) (Attach on the left of CPU) General purpose communication Communication mode Loader communication (server operation) Loader communication (client operation) No.
  • Page 12: Hardware Section

    “SPF Hardware (FEH526).” Item Specification NA3LA-ET1: 5V DC, 110mA or less (supplied from main unit) Internal power consumption NA0LA-ET1: 5V DC, 160mA or less (supplied from main unit) NA3LA-ET1: Approx. 20g Mass NA0LA-ET1: Approx. 80g External dimensions See “H1-4 External Dimensions”.
  • Page 13: H1-3 Names And Functions

    2) Ethernet connector * The front board mounting holes are provided inside the cover. Use the mounting screws supplied with the product. NA0LA-ET1 (Communication expansion unit: 10BASE-T/100BASE-TX × 1ch) 1) Ethernet status indication LED 2) Ethernet connector Since the Ethernet connector is located deep from the unit surface, there is a gap at the part indicated by...
  • Page 14 <Status indication LED of NA3LA-ET1> Symbol Color Lighting condition ON: When communication is being performed by 100BASE-TX 100M Green OFF: When communication is being performed by 10BASE-T Green ON: When data is being sent or received ON: When connecting to the target device or HUB LINK Green OFF: When the cable is not connected or the target device is powered off. <Status indication LED of NA0LA-ET1> Symbol Color Lighting condition Green ON: When the unit is operating normally. ON: When an error occurs in the unit (hardware error in the unit) ON: When connecting to the target device or HUB LINK Green OFF: When the cable is not connected or the target device is powered off. Green ON: When data is being sent or received 2) Ethernet connector...
  • Page 15: H1-4 External Dimensions

    Hardware Section H1-4 External Dimensions NA0LA-ET1 2 -Φ4.5 Unit: mm * NA3LA-ET1 (front board) is mounted inside a main unit. The Ethernet connector part is protruded by approximately 15 mm from the front of the main unit.
  • Page 16: Software Section Section S1

    Software Section Section S1 Communication Expansion Board/Unit Registration Register a communication expansion board/unit on the system definition screen. <Communication expansion board/unit registration procedure> ‹ Open the system definition. Right-click “Main unit”, and then left-click [Insert]. ‹ The “Module insert” dialog box appears. When you use a communication expansion board, select “Front Board” for the Module group type, and then “NA3LA-ET1” from the Outline specification box. When you use a communication expansion unit, select “Expansion Left Side Unit” for the Module group type, and then “NA0LA-ET1” from the Outline specification box.
  • Page 17 Software Section ‹ Click the [Parameter] button. The “Ethernet parameter setting” dialog box appears. For the details of the parameters, see “Section S2 Communication Parameters.”...
  • Page 18: Section S2 Communication Parameters

    Software Section Section S2 Communication Parameters S2-1 Communication Parameter Setting Items 1) IP address (Default: 192.168.0.1) Set the IP address of the self station. You can also access this setting item from the special register area. 2) Subnet mask (Default: 255.255.255.0) Set the subnet mask.
  • Page 19 Software Section 7) Sending retry number of times (Default: 12, Setting range: 0 to 30) During TCP sending operation, if no ACK is received from the target station, the sending operation is retried the specified number of times. For SPF, retry is executed eight times (fixed) regardless of this setting. 8) Close process during TCP sending timeout This parameter is not supported by SPF. (The setting is disabled.) 9) Close process during response receiving timeout This parameter is not supported by SPF.
  • Page 20: Section S3 General Purpose Communication Mode Details

    Software Section Section S3 General Purpose Communication Mode Details S3-1 Overview The “general purpose communication” mode allows data sending (or receiving) with external devices by TCP/IP or UDP/IP. You need to create a communication program on the SPF side. Use “C_ETHERNET” FB. Connect to communication expansion board/unit Data receive External device...
  • Page 21: S3-2 Specifications Of General Purpose Communication Mode Fb

    Software Section S3-2 Specifications of General Purpose Communication Mode FB “C_ETHERNET” S3-2-1 FB format <For D300win> Input terminal name Output terminal name   C_ETHERNET Open request (BOOL) O_EN (BOOL) O_OK Open complete Send request (BOOL) S_REQ Open error (BOOL) O_ERR Receive request (BOOL) R_EN (BOOL) S_END...
  • Page 22 Software Section <For Standard> Input terminal name Output terminal name   C_ETHERNET Open request Open complete O_EN O_OK Send request Open error S_REQ O_ERR Receive request Send end R_EN S_END WV4 Module No. Send error MODULE_NO S_ERR Destination IP address Receive end IP_ADD R_END...
  • Page 23: S3-2-2 Description Of Fb Terminals

    Software Section S3-2-2 Description of FB terminals FB terminal Terminal name Data type Description name ON: Processing for opening ports starts at the rising edge of this bit. OFF: Processing for opening ports starts at the falling Open request O_EN BOOL edge of this bit.
  • Page 24 Software Section FB terminal Terminal name Data type Description name This bit is set on for one scan if the open processing ends Open error O_ERR BOOL abnormally. This bit is set on for one scan when the message sending is normally completed.
  • Page 25 Software Section *1 Destination IP address Set the IP address in the following manner. The following shows an example when the IP address is “172.16.0.1.” Representation in D300win UDINT#16#AC100001 Representation in the Standard loader HAC100001 * When UDP/IP protocol is used, broadcast transmission is available by specifying “255.255.255.255” and partial broadcast transmission is available by specifying “***.***.***.255.” Broadcast reception is not available.
  • Page 26 Software Section l For TCP/IP communication • Active (Active open station) The self station performs Active open processing to another station that is in Passive open state (waiting for a open request). Specify the IP address and port No. of the target station in “IP_ADD” and “RPORT_NO” of the FB. Active open mode is equivalent to a client in the relation between a server and a client.
  • Page 27 Software Section <Automatic reopen> SPF does not support “Automatic reopen.” Notes: The automatic reopen function is enabled when the open mode of the self station is set to “Passive (passive open station).” If the self station receives a close request after opening a port, it automatically goes into an open request waiting state. Since SPF does not support “Automatic Reopen,”...
  • Page 28: S3-3 Communication Procedures

    Software Section S3-3 Communication Procedures (1) Opening a communication port To send or receive data to or from the target station, open a communication port first (set on “O_EN” by an application program) to establish the connection. When a port is opened normally, “O_OK” is set on and the self station is ready for sending and receiving data. After a port is opened, keep “O_EN” on. Set off “O_EN” when you want to change the target station, for example. When “O_EN” is set off, the port is closed and data cannot be sent or received. If the open processing is failed, “O_ERR” is set on for one scan and an error status code is stored in the open error status (RAS +0).
  • Page 29 Software Section (2) Sending data To send data, follow the procedure below. 1) Set the byte length of the data to be sent in “S_SIZE” (send data size) and the variable for storing the send data (D300win) or the start word address of the send data memory (Standard) in “S_DAT” (send data) of the FB. 2) Turn “S_REQ”...
  • Page 30 Software Section (3) Receiving data To receive data, follow the procedure below. 1) Set the byte length of the data to be received in “R_SIZE” (receive buffer size) of the FB. When the receive data length is variable, set the maximum byte length of the data to be received. Set the variable for storing the receive data (D300win) or the start word address of the receive data memory (Standard) in “R_DAT” (receive data) of the FB. 2) Set on “R_EN” (receive request) of the FB. While “R_EN” is on, data sent from the target station are always stored in “R_DAT”...
  • Page 31 Software Section (4) Data arrangement The figure below shows the arrangement of array data in the PLC (S_DAT, R_DAT) and a data packet that flows on the network. Data packet on the network Max. 1460 bytes (730 words) Array data in the PLC TCP/IP header part Start word address (5) Parameter information (INFO) The current parameter settings are output in the parameter information (INFO). Set the size of the parameter to be read in the parameter information size (INFO_SIZE).
  • Page 32 Software Section (7) Status code list Status code Name Description 35 (23H) Transmission interlock error • In the loader communication (client operation) mode, the target CPU (server side) cannot respond because its is in the middle of operation such as program download. 68 (44H) Memory address setting error • In the loader communication (client operation) mode, a wrong address is specified in “REMOTE_VAR” of R_READ/R_WRITE FB. 69 (45H) Memory size over • In the loader communication (client operation) mode, the total of the address + size specified in “REMOTE_VAR” of R_READ/R_WRITE FB exceeds the...
  • Page 33: Section S4 Loader Communication (Client Operation) Mode Details

    Software Section Section S4 Loader Communication (Client Operation) Mode Details S4-1 Overview The “loader communication (client operation)” mode allows writing/reading of memory data (non-retain, retain, and system memories) in another CPU (SPH or SPF). The self station uses R_READ (for reading) and R_WRITE (for writing) FBs. The target station performs loader communication (server operation) and does not require a communication program. This mode supports TCP/IP communication only (fixed). The FB automatically opens or closes ports.
  • Page 34: S4-2-2 Format Of R_Read

    Software Section S4-2-2 Format of R_READ <D300win> Input terminal name Output terminal name   R_READ Read request Read end (BOOL) REQ (BOOL) DONE Communication unit No. Read error (UINT) MODULE_NO (BOOL) ERROR Communication channel No. Status (UINT) CHANNEL_NO (INT) STATUS Destination station No.
  • Page 35 Software Section <Standard loader> Input terminal name Output terminal name   R_READ Read request Read end DONE Communication unit No. Read error MODULE_NO ERROR WV11 Communication channel No. Status CHANNEL_NO STATUS Destination station No. STATION_NO Variable specification method VAR_TYPE Target variable to access Target variable to access REMOTE_VAR...
  • Page 36: S4-2-3 Description Of R_Read Terminals

    Software Section S4-2-3 Description of R_READ terminals FB terminal Data Terminal name Description name type Read request BOOL The instruction is executed at the rising edge of this bit. Communication unit No. MODULE_NO UINT Front board: Set to 100. Left side expansion unit: Set to 200. Communication channel CHANNEL_NO UINT Fixed to 0.
  • Page 37: S4-3 Details Of R_Write

    Software Section S4-3 Details of R_WRITE S4-3-1 Operation of R_WRITE Set write data in “SD.” Set ON by application Write request (REQ) Write end (DONE) 1 scan Write request to Write completion the target station response from the target station 1) Set write data in “SD.”...
  • Page 38: S4-3-2 Format Of R_Write

    Software Section S4-3-2 Format of R_WRITE <D300win> Input terminal name Output terminal name   R_WRITE Write request Write end (BOOL) REQ (BOOL) DONE Communication unit No. Write error (UINT) MODULE_NO (BOOL) ERROR Communication channel No. Status (UINT) CHANNEL_NO (INT) STATUS Destination station No.
  • Page 39 Software Section <Standard loader> Input terminal name Output terminal name   R_WRITE Write request Write end DONE Communication unit No. Write error MODULE_NO ERROR WV11 Communication channel No. Status CHANNEL_NO STATUS Destination station No. STATION_NO Variable specification method VAR_TYPE Target variable to access Target variable to access REMOTE_VAR...
  • Page 40: S4-3-3 Description Of R_Write Terminals

    Software Section S4-3-3 Description of R_WRITE terminals FB terminal Data Terminal name Description name type Write request BOOL The instruction is executed at the rising edge of this bit. Communication unit No. MODULE_NO UINT Front board: Set to 100. Left side expansion unit: Set to 200. Communication channel CHANNEL_NO UINT Fixed to 0.
  • Page 41: Section S5 Loader Communication (Server Operation) Mode Details

    Software Section Section S5 Loader Communication (Server Operation) Mode Details S5-1 Overview When accessing internal memory in a CPU unit from an intelligent device such as a personal computer via Ethernet, data can be read and written by issuing a “request command” from the personal computer. No application program for data sending/reading is required in the CPU unit. Up to 486 bytes (243 words) of data can be read or written at a time. The following six commands are provided.
  • Page 42: S5-2 Transmission Data Format Of Commands

    Software Section S5-2 Transmission Data Format of Commands The transmission data consists of "TCP/IP header part," “Protocol header part," and "Command part" (request command and response command). The format is the same for both request command and response command. The data are all binary codes (not ASCII codes).
  • Page 43 Software Section <Details of transmission data> 1) TCP/IP header part In the case of a request command, this part is added at the top of the transmission data part of a loader command on the personal computer side before the command is sent. In the case of a response command, this part is added at the top of the transmission data part by the CPU unit before the response data is returned.
  • Page 44 Software Section 6) Operation status This data indicates the result of individual operations requested by a command. This value is valid only for a response command. A request command is issued when this item is set to FFh (fixed). Code Status Description Ended normally The command processing is completed normally. CPU error The command cannot be executed because an error occurred in the CPU.
  • Page 45: S5-3 Loader Command Details

    Software Section S5-3 Loader Command Details S5-3-1 Data read This command is used to read data for the specified number of words from the specified address of the specified data memory. If the requested number of words to read exceeds the range of the specified memory, the data is read out up to the last address of the specified memory. 1) Command/mode code Command: 00h, Mode: 00h 2) Format of the data part of request command and response command Request data Response data Memory type Memory type Memory address (L) Memory address (L) Memory address (M) Memory address (M)
  • Page 46 Software Section 4) Example of data read command [When D300win is used] The table below shows the command part for reading two words of data beginning with %MW1.1000 of the standard memory of the CPU unit. (Data in the case of %MW1.1000=WORD#16#1234 and %MW1.1001=WORD#16#5678) [When Standard loader is used] The table below shows the command part for reading two words of data beginning with WM1000 of the standard memory of the CPU unit. (Data in the case of WM1000=H1234 and WM1001=H5678.) Request command Response command Operation status Connection mode Connection ID (L) Connection ID (H) Fixed to 11h Fixed to 00h Fixed to 00h Fixed to 00h Fixed to 00h...
  • Page 47: S5-3-2 Data Write

    Software Section S5-3-2 Data write This command is used to write data for the specified number of words in the area starting from the specified address of the specified data memory. 1) Command/mode code Command: 01h, Mode: 00h 2) Format of the data part of request command and response command Request data Response data Memory type Memory type Memory address (L) Memory address (L) Memory address (M) Memory address (M) Memory address (H)
  • Page 48: S5-3-3 Cpu Start

    Software Section S5-3-3 CPU start This command is used to start a CPU that is currently stopped. An error occurs if the CPU is already started. 1) Command/mode code Command: 04h, Mode: 04h 2) Format of the data part of request command and response command None 3) Example of start command The table below shows the command part for executing the “CPU start”...
  • Page 49: S5-3-4 Cpu Initialize And Start

    Software Section S5-3-4 CPU initialize and start This command is used to initialize and start a CPU that is currently stopped. The retain memory is cleared before the CPU is started. An error occurs if the CPU is already started. 1) Command/mode code Command: 04h, Mode: 05h 2) Format of the data part of request command and response command...
  • Page 50: S5-3-5 Cpu Stop

    Software Section S5-3-5 CPU stop This command is used to stop a CPU that is currently running. An error occurs if the CPU is already stopped. 1) Command/mode code Command: 04h, Mode: 06h 2) Format of the data part of request command and response command None 3) Example of stop command The table below shows the command part for executing the “CPU stop”...
  • Page 51: S5-3-6 Cpu Reset

    Software Section S5-3-6 CPU reset This command is used to reset a CPU. 1) Command/mode code Command: 04h, Mode: 07h 2) Format of the data part of request command and response command None 3) Example of reset command The table below shows the command part for executing the “CPU reset” command. Request command Response command Operation status...
  • Page 52: Section S6 Memory Map

    Software Section Section S6 Memory Map S6-1 Communication Parameter Special Register Retain Area (for Reading/Writing) You can set the parameters of a communication expansion board/unit in the system definition. The settings are stored in the following memories, which can be read and written. When data are written, the system definition setting is overwritten with the new data. To make the PLC recognize the newly written data, use the “parameter setting request” flag. When the power of the PLC is turned off and then on again or the PLC is reset, it recognizes them. (1) Front board special register area Address Name Description D300win Standard %MW3.62400 WL62400...
  • Page 53 Software Section (2) Left side expansion unit special register area Address Name Description D300win Standard %MW3.62432 WL62432 Not used %MW3.62435 WL62435 %MW3.62436 WL62436 IP address (L) Indicates the IP address of the self station. %MW3.62437 WL62437 IP address (H) %MW3.62438 WL62438 Subnet mask (L) Indicates the subnet mask %MW3.62439 WL62439...
  • Page 54 Software Section (3) Details of parameter setting request flag To reflect the changed settings of the spacial register described above, use the “parameter setting request” flag combining the bits 0 to A, and E, with the bit F. After changing the communication parameter data, set on the target bit position (bit 0 to A, or E), set on the bit F, and then perform either of the following operations. • Stop the PLC by the loader, and then turn the power supply of the PLC off and then on again.
  • Page 55: S6-2 Communication Parameter Special Register Non-Retain Area

    Software Section S6-2 Communication Parameter Special Register Non-retain Area (for Reading) The communication parameter special register non-retain area indicates the communication parameter status that the PLC currently recognizes. This memory is read-only and cannot be written. (1) Front board special register area Address Name Description...
  • Page 56 Software Section (2) Left side expansion unit special register area Address Name Description D300win Standard %MW1.62432 WM62432 MAC address (L) %MW1.62433 WM62433 MAC address (M) Indicates the MAC address of the self station. %MW1.62434 WM62434 MAC address (H) %MW1.62435 WM62435 Not used %MW1.62436 WM62436 IP address (L)
  • Page 57 Software Section (3) Description of setting items • MAC address This is a unique address that is assigned to each product before shipment. Even same type products have different MAC addresses. • Communication parameter status This item indicates with which parameter the CPU currently operates. 0: Default setting 1: System definition 3: Data written in the internal flash ROM from the spacial register...
  • Page 58: Section S7 Failure Diagnosis

    Software Section Section S7 Failure Diagnosis You can perform failure diagnosis of the unit by using the failure diagnosis function of the loader. On the “Failure diagnosis” dialog box, select the unit to display the various kinds of information on the unit. This section describes the information related to the unit.
  • Page 59: S7-2 Dump List

    Software Section S7-2 Dump List Select the [Dump list] tab to display the information shown below. (1) Error logging information Error information detected during Ethernet communication is stored in this area. This information is cleared when the PLC is reset of the power supply is turned off and then on again. The dump list consists of the address part and data part as shown below.
  • Page 60 Software Section <Error logging address map> Address Name 0000h Reserved 0001h Reserved 0002h Error information Gr pointer (L) 0003h Error information Gr pointer (H) 0004h Error information Gr Max. number (L) 0005h Error information Gr Max. number (H) 0006h Error information Gr size (L) 0007h Error information Gr size (H) 0008h...
  • Page 61 Software Section Error information Gr0 to F Each time a communication error occurs, an error code is stored in this area. The information is cyclically stored as follows: Gr1 g Gr2 g Gr3 g ... GrF g Gr0 g Gr2 ... The table below shows the address assignment of the error information Gr.
  • Page 62 Software Section (2) Initializing information Information on the unit (such as MAC address and communication parameter settings) is stored in this area. The contents of this area are the same as those of the communication parameter special register non-retain area (for reading). For details, see “S6-2 Communication Parameter Special Register Non-retain Area (for Reading).”...
  • Page 63 Software Section (3) Communication channel information Information on the used communication ports when they are opened is stored in this area (max. 8 ports). Information of one port consists of 8 words. <Communication channel information address map> Address Name 0000 to 0007h Port 0 information 0008 to 000Fh Port 1 information...
  • Page 64 Software Section (4) Channel communication state information Information on the state of the used communication ports is stored in this area (max. 8 ports). Communication state information of one port consists of 24 words. <Channel communication state information address map> Address Name 0000 to 0017h...
  • Page 65 Software Section 1) Open status code The open status of a channel is stored in this area. 0000: Not open 0001: Opening 0002: Already open 0003: Closing 008nh: Forcible close * “n” is the internal socket No. (0 to 7). 2) Open error code A binary value for the error code that occurred while opening a channel is stored in this area.
  • Page 66 Software Section (5) Node connect information Information on the connection status of each port is stored in this area (max. 8 ports). Address Name 0000h Connection status (Port 0) 0001h Connection status (Port 1) 0002h Connection status (Port 2) 0003h Connection status (Port 3) 0004h Connection status (Port 4)
  • Page 67: S7-3 Error Code List

    Software Section S7-3 Error Code List S7-3-1 Error code format An error code consists of one word (16 bits). The figure below shows the format of error codes. Error code Error type 1: Parameter error 2: Protocol error Error detected internal socket No. S7-3-2 Error code details for each error type (1) Parameter error Error code Description The IP address of the target station is set to “0.0.0.0”...
  • Page 68 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.

This manual is also suitable for:

Na3la-et1

Table of Contents