series
USER’S MANUAL
SPF Ethernet Communication
FEH630
Страница 1: ...series USER S MANUAL SPF Ethernet Communication FEH630...
Страница 2: ...CREX SX series URL http www fujielectric com Title Manual No Contents User s Manual Hardware MICREX SX series SPF FEH526 Describes the system configuration hardware specifications and operations of un...
Страница 3: ...terminals and exposed metal portion while the power is turned ON It may result in an electric shock to the operator Turn OFF the power before mounting dismounting wiring maintaining or checking otherw...
Страница 4: ...operation might occur Before touching the PLC discharge any static electricity that may have been collected on your body To discharge it touch a grounded metallic object Static electricity might cause...
Страница 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...
Страница 6: ...ons of General Purpose Communication Mode FB S 6 C_ETHERNET S 6 S3 2 1 FB format S 6 S3 2 2 Description of FB terminals S 8 S3 3 Communication Procedures S 13 Section S4 Loader Communication Client Op...
Страница 7: ...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 C...
Страница 8: ...ultaneously used responses of communication deteriorate For details see G1 2 Communication Port The following communication modes are available 1 General purpose communication 2 Loader communication s...
Страница 9: ...Ethernet connection Commercially available LAN cable cross connection Connect to communication expansion board unit 2 Connection to PC loader 3 Connection to PC by creating a loader protocol communica...
Страница 10: ...r 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 t...
Страница 11: ...logical ports The communication expansion board or unit has a maximum of 8 logical ports per unit In loader communication server operation mode one of them is in an open request waiting state listeni...
Страница 12: ...ation Communication with a POD or loader host PC is performed by a loader command No communication program is required on the PLC side Loader communication Client operation The data memory in the targ...
Страница 13: ...n LED 2 Ethernet connector 1 Ethernet status indication LED 2 Ethernet connector The front board mounting holes are provided inside the cover Use the mounting screws supplied with the product Since th...
Страница 14: ...n ON When connecting to the target device or HUB OFF When the cable is not connected or the target device is powered off Symbol Color Lighting condition RUN Green ON When the unit is operating normall...
Страница 15: ...External Dimensions NA0LA ET1 2 4 5 3 8 7 5 Unit mm 73 25 25 90 90 25 25 21 NA3LA ET1 front board is mounted inside a main unit The Ethernet connector part is protruded by approximately 15 mm from th...
Страница 16: ...e 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...
Страница 17: ...S 2 Software Section Click the Parameter button The Ethernet parameter setting dialog box appears For the details of the parameters see Section S2 Communication Parameters...
Страница 18: ...t value is set to 300 0 1 second 30 seconds 30000ms You can also access this setting item from the special register area F Y I The LAN controller built in the unit automatically calculates and sets th...
Страница 19: ...mode Server operation The port No specified here is the actual port No of the self station Client operation The actual port No of the self station is calculated by the formula below Actual port No of...
Страница 20: ...erview 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 Co...
Страница 21: ...e Communication submode Destination port No Source port No Send data size Receive buffer size Parameter information size RAS information size Send data Receive data Parameter information RAS informati...
Страница 22: ...ion Send data Receive data Parameter information RAS information Open complete Open error Send end Send error Receive end Receive error Size of sent data Size of received data V1 O_EN V2 S_REQ V3 R_EN...
Страница 23: ...r than the size of S_DAT When setting a value larger than 1460 a send error occurs Receive buffer size R_SIZE UINT IN Specify the size of data to be received in units of bytes 1 to 1460 Set a value eq...
Страница 24: ...age sending abnormally ends When the message sending abnormally ends the send end S_END is not set on Receive end R_END BOOL OUT This bit is set on for one scan when the message receiving is normally...
Страница 25: ...open fixed to 0 0 Disable Data swap fixed to 0 0 Disable Transmission code fixed to 0 0 Binary Not used fixed to 0 Not used fixed to 0 Communication protocol 0 TCP IP 1 UDP IP 1 Destination IP address...
Страница 26: ...pen request O_EN of the FB is set on the self station becomes ready for receiving data from the target station The self station cannot send data before receiving the first data Once data communication...
Страница 27: ...The set value is used as a port number for communication The setting range is 1 to 65535 However the port numbers 0 to 1023 are called well known ports and reserved for specific services It is recomme...
Страница 28: ...dule No IP_ADD destination IP address MODE communication mode SUB_MODE communication submode fixed to 0 RPORT_NO destination port No and SPORT_NO source port No 2 Turn O_EN of the FB to off and then o...
Страница 29: ...n is stored in S_SIZE_O size of sent data For UDP IP communication S_END send end is set on for one scan at the moment when the data packet is sent out from the self station 3 2 If the data cannot be...
Страница 30: ...self station receives data from the target station For TCP IP communication the self station returns ACK to the target station The received data is stored in R_DAT receive data The number of data byt...
Страница 31: ...Not used INFO 4 Not used INFO 5 Not used INFO 6 Not used 6 RAS information RAS Various statuses are output in the RAS information RAS Set the size of the parameter to be read in the RAS information s...
Страница 32: ...alue such as 0 is set in IP_ADD An abnormal value is set in MODE When Active open mode is selected in TCP IP communication the target station IP address and port No cannot be found on the network Conn...
Страница 33: ...1 scan Read request to the target station Read data from the target station Read data is stored in RD Set ON by application 1 When REQ read request of the R_READ FB is set on a port is opened to the t...
Страница 34: ...cification method Target variable to access Read data size Read data Read end Read error Status Target variable to access Read data UINT type array REMOTE_VAR WORD type array RD BOOL DONE BOOL ERROR I...
Страница 35: ...riable specification method Target variable to access Read data size Read data Read end Read error Status Target variable to access Read data V1 REQ WV2 MODULE_NO WV3 CHANNEL_NO DV4 STATION_NO WV5 VAR...
Страница 36: ...a variable where data to be read is stored Read end DONE BOOL OUT This bit is set on for one scan when the reading is completed normally Read error ERROR BOOL OUT This bit is set on for one scan when...
Страница 37: ...hen the connection is established the self station issues a write request of the internal memory to the target station by a loader command via Ethernet 3 The target station returns a write completion...
Страница 38: ...ification method Target variable to access Write data size Write data Write end Write error Status Target variable to access Write data UINT type array REMOTE_VAR WORD type array RD BOOL DONE BOOL ERR...
Страница 39: ...ion method Target variable to access Write data size Write data Write end Write error Status Target variable to access Write data V1 REQ WV2 MODULE_NO WV3 CHANNEL_NO DV4 STATION_NO WV5 VAR_TYPE _V6 RE...
Страница 40: ...RD ANY IN OUT Connect a variable where data to be written is stored Write end DONE BOOL OUT This bit is set on for one scan when the writing is completed normally Write error ERROR BOOL OUT This bit i...
Страница 41: ...commands Classification Command name Command Mode Description Read Read data 00h 00h Reads data from the specified data memory Write Write data 01h 00h Writes data in the specified data memory PLC co...
Страница 42: ...header part and Command part Since the Ethernet communication driver automatically attaches TCP IP header part the user does not need to pay attention to it TCP IP header part Data part max 492 bytes...
Страница 43: ...ort No on the source module not TCP IP port No This No is specified by the requester and fixed to 128 80h For request PC to PLC Fixed to 80h In response data DP and SP are swapped For response PLC to...
Страница 44: ...command cannot be executed because the system is now being initialized 40h Data setting error An invalid data type or number was specified 41h Inexistent data The specified data cannot be found 44h Me...
Страница 45: ...ode Command 00h Mode 00h 2 Format of the data part of request command and response command Memory type Memory address L Memory address M Memory address H Number of read words L Number of read words H...
Страница 46: ...ion mode 7B 7B Connection ID L FE FE Connection ID H 00 00 Fixed to 11h 11 11 Fixed to 00h 00 00 Fixed to 00h 00 00 Fixed to 00h 00 00 Fixed to 00h 00 00 Fixed to 00h 00 00 Command 00 00 Mode 00 00 Fi...
Страница 47: ...34 12 78 56 15 0 Memory in PLC Personal computer 4 Example of data write command When D300win is used The table on the right shows the command part for writing one word of data in the retain memory MW...
Страница 48: ...nd 04 04 Mode 04 04 Fixed to 00h 00 00 Fixed to 01h 01 01 No of bytes of data part L 00 00 No of bytes of data part H 00 00 S5 3 3 CPU start This command is used to start a CPU that is currently stopp...
Страница 49: ...No of bytes of data part L 00 00 No of bytes of data part H 00 00 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 cle...
Страница 50: ...mand 04 04 Mode 06 06 Fixed to 00h 00 00 Fixed to 01h 01 01 No of bytes of data part L 00 00 No of bytes of data part H 00 00 S5 3 5 CPU stop This command is used to stop a CPU that is currently runni...
Страница 51: ...o 00h 00 00 Fixed to 00h 00 00 Command 04 04 Mode 07 07 Fixed to 00h 00 00 Fixed to 01h 01 01 No of bytes of data part L 00 00 No of bytes of data part H 00 00 S5 3 6 CPU reset This command is used to...
Страница 52: ...2410 TCP sending and receiving timeout value Indicates the TCP sending timeout value MW3 62411 WL62411 Not used MW3 62412 WL62412 Loader command watch timer value Indicates the timer to monitor access...
Страница 53: ...ending retry number of times Indicates the number of sending retries in TCP communication Fixed to 8 MW3 62447 WL62447 Close process during TCP sending timeout Not supported MW3 62448 WL62448 Close pr...
Страница 54: ...the system Do not set it off on the user side 4 Perform either of the following operations Turn the power of the PLC off and then on again or Reset the PLC by the loader Bit assignment of parameter s...
Страница 55: ...411 WM62411 Not used MW1 62412 WM62412 Loader command watch timer value Indicates the timer to monitor access from the target station in the loader command server operation mode MW1 62413 WM62413 Not...
Страница 56: ...5 Not used MW1 62446 WM62446 Sending retry number of times Indicates the number of sending retries in TCP communication Fixed to 8 MW1 62447 WM62447 Close process during TCP sending timeout Not suppor...
Страница 57: ...esses 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...
Страница 58: ...ation on the unit This section describes the information related to the unit Each of the front board and left side expansion unit has information In this section information on the front board is desc...
Страница 59: ...rmation 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 th...
Страница 60: ...ror information Gr5 00D0 to 00EFh Error information Gr6 00F0 to 010Fh Error information Gr7 0110 to 012Fh Error information Gr8 0130 to 014Fh Error information Gr9 0150 to 016Fh Error information GrA...
Страница 61: ...L 5 Log time free run timer value H 6 Error type 7 Error code 8 to 1Fh Area used by system Internal socket No Indicates the internal socket No 0 to 7 that is automatically assigned by the PLC If not...
Страница 62: ...ss L 0001h MAC address M 0002h MAC address H 0003h Reserved 0004h IP address L 0005h IP address H 0006h Subnet mask L 0007h Subnet mask H 0008h Default gateway address L 0009h Default gateway address...
Страница 63: ...0017h Port 2 information 0018 to 001Fh Port 3 information 0020 to 0027h Port 4 information 0028 to 002Fh Port 5 information 0030 to 0037h Port 6 information 0038 to 003Fh Port 7 information 0040 to 00...
Страница 64: ...information 0090 to 00A7h Port 6 information 00A8 to 00BFh Port 7 information 00C0 to 00EFh Reserved The table below shows the address assignment of the port 0 to 7 information Offset address Name 0...
Страница 65: ...ceiving is completed normally 8 Number of receive data A binary value for the number of bytes of receive data that is transferred to the receive data storage area during receipt confirmation after a r...
Страница 66: ...e Port 1 0022h Error code Port 2 0023h Error code Port 3 0024h Error code Port 4 0025h Error code Port 5 0026h Error code Port 6 0027h Error code Port 7 0028 to 003Fh Reserved 1 Connection status The...
Страница 67: ...0 0 0 0 or 255 255 255 255 04h The communication mode setting is wrong Error code Description 02h The target station does not exist during processing for opening a TCP connection 05h The IP address of...
Страница 68: ...nt are subject to revision due to the modification of the product 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 co...