Home
        MELSEC iQ-F FX5 User`s Manual (Ethernet Communication)
         Contents
1.          is set  i IP address  7 Subnet mask pattern Clear    Default gateway IP address    When IP address storage area is cleared  IP address change function enable flag SM8498 is OFF   module parameter  Ethernet port setting is enabled     1 00 9 IP ADDRESS CHANGE FUNCTION  9 2  P address to be set for the CPU module    9 3 Write operation to IP address storage area    Set the IP address and other data to be set to special registers  SD8492 to SD8497   and turn the special relay  SM8492   from OFF to ON to write the data to the IP address storage area  CPU module internal FRAM    Set the IP address  etc  to the special registers  SD8492 to SD8497  as hexadecimal values        IP address storage area   CPU module internal FRAM     Special register    SD8492   IP Address IP Address  SD8493  oes Subnet mask  gt  Subnet mask  SD8495 pattem Perform writing pm   SM8492 is ON   SD8496 Default gateway Default gateway  SD8497 IP address IP address        1 Itis possible to specify no setting  0 0 0 0  for the subnet mask pattern and default gateway IP address  However  it is necessary to  specify no setting  0 0 0 0  for both the subnet mask pattern and the default gateway IP address  If no setting  0 0 0 0  is specified for  only one  an error will occur and the IP address will not be changed    It is possible to write data to the IP address storage area without regard to the CPU module mode  RUN or STOP   To reflect    the setting stored in the IP address storage area on the CPU 
2.      0       cc ee ee ern 102  9 5 PICCAUNIONS 3  4 64 51 004 520004 0D be eae ed ae oe EA SOREL ee eee bE CAO ee bean 103  CHAPTER 10 TROUBLESHOOTING 104  10 1    Checking Errors  by LEDS  cn suono od coer eee awed 7 eee eee esteem TR RONDA 70 9 36 28 e 105  Error display check P                                                       105  Error information read clear method          0 0 0  ee eee eee eens 105  10 2 Checking Errors by GX WorkS3          2 00 cece es 106  Emere dg i auda den tone Rea S eie d Puoi up ERES DUREE S RUNS hee eee eee Se Ge eek eee 106  TUS  Enrol Coes Cua a Vibe dr Rode d OE abd ier  E Je qb ee  ee er dede id a t s b oed 111  Error codes of the IP address change function               liliis 111  Error codes of the Ethernet communication              lille 111  SLMP function error code              llllllllllelee eese 113  10 4 Troubleshooting Flowchart           0 0 00 ccc hh hh hn 114  Errors during SLMP communication             0 00 ccc eee 115  APPENDIX 117  Appendix 1 List of Special Device Applications and Assignments                0000  es 117  INDEX 128  aid esp o                                                  130  Dim eT                     rPcPTTTPTT 131  li 2s  ulb4omPP                                                  m 132    Opening a connection s  s dus uctor IER ERU UR EURO RUE ECERUES se ECRIRE ceeded ete Bot Rl os OR Ea diees 77       CONTENTS    RELEVANT MANUALS       User s manuals for the applicable modules    Manual name  lt
3.     2  Access processing    Access the CPU module after successful completion of the remote password unlock processing     3  Prohibiting access  Lock processing     When terminating access from the personal computer  lock the remote password to prohibit access from any other personal    computers      Accessing the Host CPU               Unlocking    dcm E Ethernet       heck Remote password    Porc cC parameter          8 REMOTE PASSWORD  8 1 Communication Using Remote Password    8 2 Remote Password Setting          Set a remote password and a target connection in the engineering tool  and write the data to the CPU module     TZ  Navigation Window gt  Parameter  gt  Remote Password  gt  Remote Password Setting  Screen    Detail Setting       Remote Password Settin    Set the password which authenticated the access  connection  from external devices        Required Settings   Mat Set   Already Set         Password Open  Register Password    Change Password  screen  6 to 32 Single byte    port of the CPU module      1 Half width alphanumeric and special characters can be used for remote password entry   Case sensitive     8 REMOTE PASSWORD  8 2 Remote Password Setting 95    96      Remote password detail setting screen                            Select the connection to enable     Serial Communication  serial Communication CH Valid Setting     Enable All    CHO  Built in 485 Port    GH1  Communication Board    CH   Communication Adapter No  1   GH3  Communication Adapter No 
4.     When receiving  The received data is verified    Multiple static data elements can be placed anywhere in the data part    The following table lists the items     Element Name Set the element name       Code Type Select a data type of the setting value   ASCII String ASCII Control Code HEX    Setting Value Set data within 1 to 50 bytes  Setting example  Code type and setting range are as follows  ASCII String   ABC     ASCII String  20H to 7EH ASCII Control Code  STX    ASCII Control Code  Control code of 00H to 1FH and 7FH HEX  FFFF    HEX  Hexadecimal data of 00H to FFH       44 6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 3 Packet Elements    Length          Element Setting   Length Send     Element Name    Code Type  Asci Hexadecimal T      Data Length    Data Flow  Calculating Range  Start     Calculating Range  End        The length code is used when there is an element that indicates the data length in the packet      When sending  Automatically calculates the data length in the specified range  and adds it to the packet      When receiving  From the received data  the data  value  corresponding to the length is verified as the specified range s  data length    Length elements can be placed anywhere in the data part    Multiple length elements can be set placed in one packet        The following table lists the items     Item Description Remarks  Element Name Set the element name       Code Type Select the data length type   ASCII hexadecimal HEX    Data Length Select 
5.    Endcode   OO PB te       L en eee  10 Variable Response data D 13  D 1 4 D3 3   v arable Length 1 9206 yte LowerUpper Butero Swap    Change Type   Add New   Copy   Paste   Delete         6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 5 Example of Predefined Protocol Communications 53    54    e Error response    Protocol Name   0401  Read  word   Packet Name   Error response      ue Element Type Element Mame Element Setting    DAN0 2Bute    i e  2 Variable Serial No D9 74 D9 74   Fined Length 2B uter Lower Upper Bute Mo Swap     Fixed data     siC  d Bate    L RE ror   Variable Network Ma D375 D375  Fised Length    1B yteLowerUpper Bute  o Swap   LEN iua Musmempinieitiu           Variable Station Mo D375 D375  Fised Length    1 Bute Lower Upper Bute  Mo Swap    O BE  house ere       Variable Requested module 10 No D377 D377  Fixed Length Bute Lower Upper Butero Swap    For future expansion   future expansion DD Bute     000000oo 1Bute  I          ehm   Response data length Object element3 15 HEX Heverse 2Bute    Maon conversian  Variable End code D378 D378  Fized Length Bute Lower Upper Bute  Mo Swap   n NETS LL alienate          Variable Network No DSF9 09 79   Fisted Length    1B yteLowerUpper Bute  Mo Swap    Han canversian  11 Variable Station Ma  D380 D 380  Fised Length    1B yteLowerUpper Bute  o Swap      NEU locum biin  12 Variable Requested module 10 No  D381 D381  Fixed Length   2B ute Lower Upper Bute MHo Swap    0j Byte    Change Type   Add New   Copy   Paste   Del
6.    MITSUBISHI  ELECTRIC  PROGRAMMABLE CONTROLLERS    series    MELSEC iQ F  FX5 User s Manual  Ethernet Communication     SAFETY PRECAUTIONS     Read these precautions before use         Before using this product  please read this manual and the relevant manuals introduced in this manual carefully and pay full  attention to safety in order to handle the product correctly   This manual classifies the safety precautions into two categories  L N WARNING  and L N CAUTION       N WARNING Indicates that incorrect handling may cause hazardous conditions  resulting in  death or severe injury     A CAUTION Indicates that incorrect handling may cause hazardous conditions  resulting in  minor or moderate injury or property damage     Depending on the circumstances  procedures indicated by    N CAUTION  may also cause severe injury   It is important to follow all precautions for personal safety   Store this manual in a safe place so that it can be read whenever necessary  Always forward it to the end user      DESIGN PRECAUTIONS    NWARNING      Make sure to set up the following safety circuits outside the PLC to ensure safe system operation  even during external power supply problems or PLC failure  Otherwise  malfunctions may cause  serious accidents     1  Note that when the CPU module detects an error  such as a watchdog timer error  during self   diagnosis  all outputs are turned off  Also  when an error that cannot be detected by the CPU  module occurs in an input output control bl
7.    Setingdala            llDescriptions  ranges  and data types     Uy  Dummy  Input the character string   UO     MERERI Character string ANYSTRING  SINGLE     s1    Connection No      No  1 to Atos     16 bit unsigned binary       bit   16 bit unsigned binary       binary ANY 16     s2  to        number of the device in which control data is C     to Control data Word ANY16 ARRAY  stored  I Page 91   Number of elements  2    d  Start number of the device in which connection Word ANY16 ARRAY  information is stored  Number of elements  5    1 In the case of the ST language and the FBD LD language  U displays as UO   BApplicable devices       7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    Control data    eno swtmae e A E     s2  1 Completion status Completion status is stored System  0000H  Completed    Other than 0000H  Failed  Error code   Refer to k  Page 111 Error Codes           d  0 Target device IP address   IP address of the target device is stored  1 to 3758096382    d  1  00000001H to  DFFFFFFEH      d  2 Target device port Port number of the target device is stored  1 to 65534  0001H to   number FFFEH      d  3 Host Station Port No  Port number of the host station is stored  1 to 5548  5570 to 65534   0001H to 15ACH  15C2H to  FFFEH  2      d  4 Application setting area Shown on left side 2   b15b14b13 to b10 b9 b8 b7 to b0      api o qan 0            1  Communication method  protocol   0  TCP IP   1  UDP IP    2  Socket communica
8.    range  maximum length or less in the data length storage area      Check the maximum allowable data quantity  and specify the  maximum quantity or less in the data quantity storage area     The connection was closed during the SP ECPRTCL instruction   Check the operation of the external device    execution    Check the connection open status with the external device      Open the connection with the external device again and execute  the instruction     112 10 TROUBLESHOOTING  10 3 Error Codes    SLMP function error code    3E frame    MError codes returned to target device during data communication  Error codes stored when communication ends in error during SLMP  3E frame  are as provided in the following table        Error code Error details and causes Action   Hexadecimal              0055H CPU module requested other device to write data during RUN   Write data when write is permitted during RUN   when write was not permitted during RUN    Stop CPU module and then write data  data when write is permitted  during RUN    4000H to 4FFFH   Errors detected by CPU module  Refer to LLLIMELSEC iQ F FX5 User s Manual  Application  and take    Errors that occurred in other than SLMP communication appropriate measures   function    C051H Maximum number of bit devices for which data can be read  Correct number of bit devices that can be read or written all at once    written all at once is outside the allowable range  and send to CPU module again    C052H Maximum number of word dev
9.    that is specified in  s1   and stores them in the device specified in  d  or higher  No processing is performed when the number  of read data  n  is O        The received data length can be read by setting the number of read data to one word  This allows change of  the device storing receive data  when executing the SP SOCROV instruction       Even if the S P  SOCRDATA instruction is executed  the next receive data will not be stored in the socket communication    receive data area because the area is not cleared and the Receive state signal does not change   e To update the received data  read the data using the SP  SOCROV instruction      Operationerror                     3405H The connection number specified by  s1  is other than 1 to 8   2820H The device number specified by  s2    d   or  n  is outside the range of the number of device points   2822H Device that cannot be specified is specified        minio ceo m    When M4000 is turned on  the received data length of connection No 1 is read        e Devices used    SD10680 Open completion signal  SD10682 Receive state signal  D400 S SOCRDATA instruction control data  D4000 Storage location where data is read  K1 Number of read data  one word     Program  M4000  D10680 0 SD10682 0 Execute reading of the length of  l T S SOCRDATA  U0  K1 D400 D4000 K1 received data of connection No 1    END       7 SOCKET COMMUNICATION FUNCTION 93  7 4 Socket Communication Function Instructions    94    S REMOTE PASSWORD       Remote p
10.   0 OFF  ON Er  Completion device  d  1 OFF Y        1 Even after completion device  turns ON  data transmission  may continue          Operation error               3405H The connection number specified by  s1  is other than 1 to 8    2820H The device number specified by  s2    s3  or  d  is outside the range of the number of device points   2822H Device that cannot be specified is specified    3582H When an instruction which cannot be used in interruption routine program is used     eB m    When M3000 is turned on  data  1234  5678  and 8901  are sent to the target device using the socket communication  function     Devices used    SD10680 Open completion signal  D3000 SP SOCSND instruction control data  D300 Send data length and send data storage location  M300 SP SOCSND instruction completion device    Program  M3000 SD10680 0  I MOV K6 D300 Set length of the data to be sent  MOV K1234 D301  MOV K5678 D302 Set the data to be sent  MOV K8901 D303  SP SOCSND  Uo  K1 D3000 D300 M300 Send data to connection No 1  M300 M301 PETER  eee M302 Normal completion indication  M301  p                                                                                     LSET M303 Abnormal completion indication    END       7 SOCKET COMMUNICATION FUNCTION 89  7 4 Socket Communication Function Instructions    90    Reading connection information       SPSOCCINF                 LLL    Reads connection information           ENO  SP SOCCINF EN U0 s1 s2 d              SP SOCCINF  enters LI    
11.   1  1  Personal computer subnet mask  255  255  0  0      In the CPU module IP address bits  if the bits corresponding to the host address of the class of the personal computer IP  address are all ON or all OFF     E    Personal computer IP address  192  168  0  1  lt  192 x x x   class C and the host address is the fourth octet   Personal computer subnet mask  255  0  0  0  CPU module IP address  64  64  255  255  lt  each bit turns on because of the fourth octet is 255    Point    The IP address for each class is as follows    e Class A  O x x x to 127 x x x     Class B  128 x x x to 191 x x x     Class C  192 x x x to 223 x x x   The host address for each class is the portion including  0  as shown below     Class A  255  0  0  0     Class B  255 255  0  0   e Class C  255 255 255  0    4 CONNECTION WITH MELSOFT PRODUCT AND GOT  4 1 Direct Connection with Engineering Tool    4 2 Connection via a hub    In case of connection to Ethernet via hub  you must do CPU module settings and MELSOFT Product  engineering tool  etc    settings or GOT settings     CPU module CPU module                                  I   I     I  Oooo 0000 0000   i H u b   0000 0000 EBEE  I   I   I                                                                                                                                                                       Engineering tool Engineering tool GOT  The flow up to start of Ethernet communication by the connection via a hub is as follows     1  Setting 
12.   192 168 3 39 4096 192 168 3 40 Beis Do not confirm existence UDP Connection Module   Active Connection Module      Unpassive Connection Modu    ta Fullpassive Connection Modu    El Ethernet Device  COGNEX   Host Station    E  Vision System    Connected Coun      Sensor  Devi   5 EMT    Er oP                   UDP Conne  ction Modul  e            Drag and drop the  UDP Connection Equipment  from  Module List  to the left side on the window  Execute the settings as  mentioned below     PLC Port No  4096  Setting range  1025 to 5548  5570 to 65534   Do not specify 5000 to 5009 because these ports are used by the system   Sensor Device IP Address 192 168 3 40  Setting range  0 0 0 1 to 223 255 255 254 255 255 255 255   4096  Setting range  1025 to 5548  5570 to 65534     7 SOCKET COMMUNICATION FUNCTION  7 2 Communication Using UDP    llDevices used in the sample program    The following table lists the device numbers used in the sample program and their applications     M3000   D3000 and D3001  M300 and M301  D300 to D303    M3002   M3003   D5000 and D5001  M500 and M501  SD10680  SD10682   M3001   D500 and higher  M5002   M5003   D450 to D451  D460 to D464    plication  Send instruction  SP SOCSND instruction control data  SP SOCSND instruction completion device    Receive data length and send data   6 bytes of 12H  34H  56H  78H  9AH  BCH     Normal send indication   Send error indication   SP SOCROwV instruction control data  SP SOCROV instruction completion device  Open com
13.   BIN  960 words  15360 points     ASCII     Word access points   double  word access points  x 2 x 192  BIN    Word access points   double  word access points  lt  192    5 SLMP FUNCTION  5 3 SLMP Commands    29       Device Read 0403H  Random  Device Write 1402H  Random    Device Write 1402H  Random    Device Read Block   0406H    30 5 SLMP FUNCTION  5 3 SLMP Commands       0080H    0082H    0001H    0000H    0081H    0080H    0083H    0082H    0000H    This command reads data from the buffer memory in intelligent  function modules and SLMP compatible devices in units of 1 word   16 bits      This command reads data from the buffer memory in intelligent  function modules and SLMP compatible devices in units of 1 word   16 bits      This command writes data to bit devices in units of 1 bit by randomly  specifying device numbers       This command writes data to bit devices in units of 16 bits by  randomly specifying device numbers      This command writes data to word devices in units of 1 word or 2  words by randomly specifying device numbers          This command writes data to the buffer memory in intelligent  function modules and SLMP compatible devices in units of 1 bit     Buffer memory is indirectly specified by index registers     This command writes data to the buffer memory in intelligent function  modules and SLMP compatible devices in units of 1 word  16 bits  or  2 words     This command writes data to the buffer memory in intelligent function  modules and SLMP 
14.   M201    po SET M4003 J Error completion indication  SET M4004 3  Reset the closing flag    END       Precautions for Active open communication  Configure an interlock circuit using the Open completion signal  SD10680 n  and Open request signal  SD10681 n  in the  program     The following chart shows on off timings of the Open completion signal and Open request signal      lt  lt When cut from the CPU module gt  gt     Open completion signal  SD10680 n  M     TCP disconnection completed upon the response from the target device  FF    Open request signal  SD10681 n  s     TCP disconnection request from the CPU module  OFF                   SOCOPEN instruction SOCCLOSE instruction     lt  lt When disconnected by the target device        n   TCP disconnection request from the target device  masc   TCP disconnection completed upon the response from the CPU module    t    SOCCLOSE instruction    7 SOCKET COMMUNICATION FUNCTION  66 7 1 Communication Using TCP        X    Iran le for Passive open    The following shows the communication flow of a Passive open           Waiting for a TCP connection in Passive open state    Send and Receive     Send by SP SOCSND    instruction or receive by  SP SOCRCV instruction    llParameter setting  The following parameters are set for the sample program     TZ  Navigation window    Parameter      FXSUCPU     Module Parameter    Ethernet Port  gt  Basic Settings     External  Device Configuration   Detailed Setting      Ethernet Configuration  B
15.   Module List  to the left side on the window  Execute the settings as  mentioned below     PLC Port No  4096  Setting range  1025 to 5548  5570 to 65534   Do not specify 5000 to 5009 because these ports are used by the system   Sensor Device IP Address 192 168 3 40  Setting range  0 0 0 1 to 223 255 255 254   4096  Setting range  1025 to 5548  5570 to 65534     7 SOCKET COMMUNICATION FUNCTION  7 1 Communication Using TCP    llDevices used in the sample program    The following table lists the device numbers used in the sample program and their applications     M1000   D100 to D109  M100 and M101  M1002   M1003   M3000   D3000 and D3001  M300 and M301  D300 to D303    M3002   M3003   M4000   M4001   SD10680  SD10681  SD10682   D200 and D201  M200 and M201  M4002   M4003   M4004   D5000 and D5001  M500 and M501  D500 and higher  M5002   M5003    Open instruction   SP SOCOPEN instruction control data  SP SOCOPEN instruction completion device  Normal open indication   Open error indication   Send instruction   SP SOCSND instruction control data  SP SOCSND instruction completion device    Send data length and send data   6 bytes of 12H  34H  56H  78H  9AH  BCH     Normal send indication   Send error indication   Close instruction   Disconnection by the other device   Open completion signal   Open request signal   Receive state signal   SP SOCCLOSE instruction control data  SP SOCCLOSE instruction completion device  Normal close indication   Close error indication   Closing flag  
16.   SP ECPRTCL instruction      Completion device  d  0            ON When failed  TI    Completion device  d  1    completed         When normally    1 scan    Protocol execution can be canceled by setting a protocol cancel request  The protocol cancel request is specified in the  predefined protocol support function execution status check area  SD10740 to SD10899      User    1  Cancellation requested        Protocol cancellation   for the connection number  specified by  s1      2  Cancellation completed    Cancelling the protocol  being executed in the  connection specified by   s1     CPU module operation    6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 6 Predefined Protocol Support Function Instruction      The following figure shows the protocol cancel operations timing     If a cancel request is issued before transmission  The following figure shows the operation when the protocol execution status is  1  Waiting for transmission      SP ECPRTCL instruction        Completion device  d  Sd OFF  Completion status OFF  OFF    indication device  d  1       Protocol cancellation   for the connection number    2  Cancellation completed  specified by  s1         Standby time      The CPU module will no  longer receive data nor  execute protocols     The processing stops     Send packet    External device  Send packet      If a cancel request is issued before completion of transmission  The following figure shows the operation when transmission has not been completed while the proto
17.   Selingdala            llDescriptions  ranges  and data types     Uy  Dummy  Input the character string   U0     COME Character string ANYSTRING SINGLE   s1  Connection No      No  16 bit unsigned binary ANY16     s2  a Ul number of the device where control data is Refer to Control data Word ANY16_ARRAY  specified    Page 88   Number of elements  2    s3  Start number of the device in which send data is POUR ANY16  stored     d  Start number of the device which turns on for one Bit ANYBIT ARRAY  scan upon completion of the instruction   d  1  Number of elements  2   also turns on when failed      1 In the case of the ST language and the FBD LD language  U displays as UO              BApplicable devices       Moje fe           o            o c  9            gt  f  fe fe     o gt  fe fe e            e jo fe      1 T  ST  C cannot be used     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions 87    88    Control data     s2  1 Completion status Completion status is stored   0000H  Completed    System    Other than 0000H  Failed  Error code   Refer to k  Page 111 Error Codes     s3  0 Send data length The length of send data is specified   in bytes  1 to 2046 User       User     s3  1 to Send data Send data is specified    s3  n     1 The  Set by  column indicates the following   User  The data must be set before executing the SP  SOCSND instruction   System  The CPU module stores the execution result of the SP  SOCSND instruction        For TCP  set
18.   Valid when setting type value is O    0  Send packet   1 to 16  Receive packet number   65535  Cannot identify      When an error is detected in the protocol setting data  stores the element number where  the error was detected    The elements are checked in order of smallest element number  The element number  where an error was detected first is stored   Valid when setting type value is 0    1 to 32  Element number   65535  Cannot identify      Stores the protocol number of the registered protocol setting data   0 is stored if the protocol setting data check result is abnormal    0  No registration   1 to 64  Number of registrations    Whether protocol setting data is registered or not is stored    All bits are set to 0 if the protocol setting data check result is abnormal    bO  to  b15   Protocol numbers 1 to 16   0  No registration   1  Registered    Whether protocol setting data is registered or not is stored    All bits are set to 0 if the protocol setting data check result is abnormal    bO  to  b15   Protocol numbers 17 to 32   0  No registration   1  Registered    Whether protocol setting data is registered or not is stored    All bits are set to 0 if the protocol setting data check result is abnormal    bO  to  b15   Protocol numbers 33 to 48   0  No registration   1  Registered    Whether protocol setting data is registered or not is stored    All bits are set to 0 if the protocol setting data check result is abnormal    bO  to  b15   Protocol numbers 49 to 64  
19.   away from the main circuit  high voltage line   load line or power line      STARTUP AND MAINTENANCE PRECAUTIONS    NWARNING      Do not touch any terminal while the PLC s power is on  Doing so may cause electric shock or  malfunctions      Before cleaning or retightening terminals  cut off all phases of the power supply externally  Failure to  do so in the power ON status may cause electric shock      Before modifying the program in operation  forcible output  running or stopping the PLC  read through  this manual carefully  and ensure complete safety  An operation error may damage the machinery or  cause accidents      STARTUP AND MAINTENANCE PRECAUTIONS    NCAUTION      Do not disassemble or modify the PLC  Doing so may cause fire  equipment failures  or malfunctions    For repair  contact your local Mitsubishi Electric representative      Turn off the power to the PLC before attaching or detaching the following devices  Failure to do so  may cause equipment failures or malfunctions     Peripheral devices  expansion board  and expansion adapter    Extension modules and bus conversion module    Battery     Read relevant manuals carefully and ensure safety before performing online operations  operation  status change  with peripheral devices connected to the running SLMP compatible device or CPU  modules of other stations  Improper operation may damage machines or cause accidents     INTRODUCTION    This manual contains text  diagrams and explanations which will guide the 
20.   nor execute protocols            External device           ON    Completion device  d  Sid OFF    ON Completed with an error  Completion status OFF    lorr    indication device  d  1        Protocol cancellation   for the connection number  specified by  s1      2  Cancellation completed       1  Cancellation in    t Receive wait time or destination    The CPU module will  existence confirmation time    no longer execute protocols     Send or receive data    The processing  stops     External device    60 6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 6 Predefined Protocol Support Function Instruction      If a cancel request is issued during receiving  The following figure shows the operation when the protocol execution status is  4  Receiving      SP ECPRTCL instruction      Completion device  d  S OFF     ON Completed with an error  Completion status OFF    lor    indication device  d  1 1          Protocol cancellation   for the connection number  specified by  s1         NC Cancellation requested 7 2  Cancellation completed    t Receive wait time or destination  existence confirmation time    The CPU module will  no longer execute protocols     Receiving data  The CPU module stops the processing    The processing   including the verification and general data  stops  processing  and forcibly terminates the    External device execution of the instruction   Receive data    e  f an error occurs in the mth protocol while multiple protocols are being executed  the instruction doe
21.   shipment from Mitsubishi   h  Any other failure found not to be the    responsibility of Mitsubishi or that admitted not  to be so by the user     of production    1  Mitsubishi shall accept onerous product repairs for  seven  7  years after production of the product is  discontinued    Discontinuation of production shall be notified with  Mitsubishi Technical Bulletins  etc     2  Product supply  including repair parts  is not  available after production is discontinued       Overseas service    Overseas  repairs shall be accepted by Mitsubishi s  local overseas FA Center  Note that the repair  conditions at each FA Center may differ       Exclusion of loss in opportunity and    secondary loss from warranty liability    Regardless of the gratis warranty term  Mitsubishi  shall not be liable for compensation of damages  caused by any cause found not to be the responsibility  of Mitsubishi  loss in opportunity  lost profits incurred  to the user or third person by failure of Mitsubishi  products  special damages and secondary damages  whether foreseeable or not  compensation for  accidents  and compensation for damages to products  other than Mitsubishi products  replacement by the  user  maintenance of on site equipment  start up test  run and other tasks       Changes in product specifications    The specifications given in the catalogs  manuals or  technical documents are subject to change without  prior notice       Product application    1  In using the Mitsubishi MELSE
22.  0  No registration   1  Registered    Stores the status of the protocol being executed at connection No 1   0  Unexecuted   1  Waiting for transmission   2  Sending   3  Waiting for data reception   4  Receiving   5  Execution completed    Stores the verification results of receive packet No 1   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 2   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 3   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 4   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 5   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 6   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 7   Element No  where the verification result did not match  bO to b7   
23.  2     Built in Ethernet    User Connection No  Valid Setting  Enable All    Connection No 1    System Connection Valid Setting  Enable All    MELSOFT Transmission Port  TCP IP   MELSOFT Direct Connection          Serial Serial CH1 to CH4 Select whether the remote password is to be enabled for Check Do not check   Communication   Communication serial communication channels  checkbox for the target  CH Valid Setting channel   Built in User Connection Connection 1 to 8 Select whether the remote password is to be enabled for the   Check Do not check   Ethernet No  Valid Setting   built in Ethernet port  checkbox for the target     d   2   3     4     Setting of an unused connection or MELSOFT connection is   connection  ignored      System MELSOFT Transmission   Select whether the remote password is to be enabled for the   Check Do not check    Connection Valid Port  TCP IP  9 built in Ethernet port  checkbox for the target  connection       D  Setting MELSOFT Direct  Connection 4       User connection is a connection for users for communication such as SLMP communication    System connection is used by the system for communication such as MELSOFT communications  TCP IP     Check this checkbox to enable the remote password for the ports for which the communication system is set to  MELSOFT Connection   in engineering tool    Check this checkbox to enable the remote password for CPU module direct connection to engineering tool using the built in Ethernet  port   L  Page 14 Direct
24.  ARRAY  scan upon completion of the instruction   d2  1  Number of elements  2   also turns on when failed      1 In the case of the ST language and the FBD LD language  U displays as UO              Applicable devices       q Zo ce ie   sn  o     ff         a z         o a jJ j        o ee  i  ep je fe ff    e JO ee               1 T  ST  C cannot be used     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    Control data    emo  swim     s2  1 Completion status Completion status is stored System  0000H  Completed    Other than 0000H  Failed  Error code   Refer to k  Page 111 Error Codes        d1  0 Received data length The length of the data which was read from the Socket 0 to 2046 System  communication receiving data area is stored   in bytes     d1  1 to Received data The data which was read from the Socket communication System    d1  n receiving data area is stored in order      1 The  Set by  column indicates the following   System  The CPU module stores the execution result of the SP  SOCROV instruction              e When the SP  SOCROWV instruction is executed  data is read from socket communication receiving data area  at END processing  Therefore  executing the SP  SOCROW instruction will increase the scan time    e When odd byte data is received  an invalid byte is stored to the higher byte of the device that stores the last  received data     This instruction reads received data of the connection specified in  s1  from the socket 
25.  Connection  Module     Outline    IMELSOFT Connection Module   Specification       Use when specify open method by          Poin tr    When all MELSOFT devices start communicating at the same time  devices may fail to communicate because  of the congestion in communication  In such a case  schedule the timing for when each device starts  communicating so that the communication congestion will not occur  When using GOTs  for example  set  different rise time and time out values in the GOTs     Sampling trace    When sampling trace is executed using the engineering tool from the built in Ethernet port  abort the connection before  turning OFF the power of the CPU module     Remote STOP    When remote STOP is executed using the engineering tool from the built in Ethernet port  execute remote RUN before turning  OFF the power of the CPU module     24 4 CONNECTION WITH MELSOFT PRODUCT AND GOT  4 2 Connection via a hub    D  SLMP FUNCTION       SLMP  Seamless Message Protocol  is a protocol for accessing SLMP compatible devices from an external device  such as  personal computer or GOT  using TCP or UDP through Ethernet    For the FX5 built in Ethernet port  communication is possible by SLMP 3E frames    CPU module device data can be read and written using SLMP  3E frames  from external devices    CPU module operation monitoring  data analysis  and production control is possible from external devices by reading and  writing device data     With the remote password function  unauth
26.  Connection via a hub    Precautions    IP address duplication   Check that the IP address is not duplicated when configuring a network or connecting a new device to a network   If the IP address is duplicated  a device may communicate with the wrong device    Check for IP address duplication in the following way      Check for IP address duplication with the Search connected CPU function     KeepAlive check   When the protocol is set to TCP  KeepAlive check is performed   Checking for a response to a KeepAlive ACK message    An alive check message is sent five seconds after reception of the last message from the connected device to check if the  device returns a response or not  If no response is received  the alive check message will be resent at intervals of five  seconds  When no response is received for 45 seconds  the connected device is regarded as non existent and the connection       is disconnected   If the connected device does not support the TCP KeepAlive function  the connection may be disconnected     Connections exceeding the setting   Do not exceed the number of connections set in the Ethernet configuration settings of the parameters  If the personal  computer makes a number of TCP connections that exceeds the set number  the following state results depending on the  application      Timeout error detection time gets extended      Unexpected timeout error occurs in any of the communicating devices     Retransmission in case of TCP connection   If no ACK respo
27.  Connection with Engineering Tool     8 REMOTE PASSWORD  8 2 Remote Password Setting    Writing to the CPU module    Write the set remote password to the CPU module from the  Write to PLC  screen     XZ   Online  gt  Write to PLC   After writing the parameters to the CPU module  power off     on or reset the CPU module to enable the parameters     Unlocking or locking the remote password  The remote password is unlocked or locked from an external device such as a personal computer  as described below   llIWhen using MELSOFT connection    Enter a remote password in the following screen that appears during communication   When the remote password is entered  the engineering tool performs unlock processing and then accesses the CPU module    Enter remote password     E    Please enter remote password  Execute  Cancel    Remote password       Win case of SLMP  Use commands dedicated to SLMP   Lock  unlock of L  Page 29 Command list     8 3 Precautions       When a remote password is set for UDP connections    e Determine a target device before data communication   At the time of SLMP setting  set  Host station port number     Communication target IP address    Communication target port number   and limit the communication target     e At the end of data communication  always lock the remote password   If the lock processing is not performed  the unlock  state is held until a timeout occurs  No communication for 10 minutes causes a timeout  and the CPU module automatically  perfor
28.  Current value   Word TN C2H O    TN     C200H    Long timer Contact Bit   51H Decimal         LTS    5100H     Coil Bit     50H   LTC    5000H   Current value   Double     52H  Word  LTN    5200H   Retentive timer   Contact Bit Ss C7H Decimal   O   STS    C700H   Coil Bit SC C6H O   STC    C600H   Current value   Word SN C8H O   STN    C800H      Decimal   O  O  5 SLMP FUNCTION 33  5 3 SLMP Commands    Long retentive   Contact Bit E 59H  timer  LSTS   5900H   Coil Bit     58H    LSTC  5800H    Current value   Double   5AH  Word  LSTN   5A00H     CS   CS     C400H   CC C3H    Coil Bit   CC     C300H           34                          Internal user Counter Current value   Word CN C5H Specify in the range of   Decimal   O  device  CN     C500H  device numbers of the  Long counter Contact Bit     55H module to access  Decimal   O   LCS    5500H   Coil Bit   54H O   LCC    5400H   Current value   Double     56H O  Word  LCN    5600H   Link special relay Bit SB A1H Hexade   O   SB     A100H  cimal  Link special register Word SW B5H Hexade   O   SW     B500H  cimal  System device Special relay Bit SM 91H Hexade   O   SM     9100H  cimal  Special register Word SD A9H Hexade   O   SD     A900H  cimal    Hexade  cimal    Function input Bit    Hexade  cimal    Function output    Function register  16 bits Z  CCH Specify in the range of   Z      CCOOH  device numbers of the  32 bits LZ 62H module to access    LZ      6200H     Word R  AFH   R      AFOOH   ZR   ZR     BOOOH     Link d
29.  D300 to D303    M3002   M3003   SD10680  SD10682   D5000 and D5001  M500 and M501  D500 and higher  M5002   M5003   D6000 and D6001  D6010 to D6014    Send instruction  SP SOCSND instruction control data  SP SOCSND instruction completion device    Send data length and send data   6 bytes of 12H  34H  56H  78H  9AH  BCH     Normal send indication   Send error indication   Open completion signal   Receive state signal   SP SOCROwV instruction control data  SP SOCROV instruction completion device  Received data length and received data  Normal receive indication   Receive error indication   SP SOCCINF instruction control data    SP SOCCINF instruction connection information    Sample program        S300 Oni sen target confirmation processing            PE isoon  U0  K1 D6000  D6010      Data send processing     M3000 SD10680 0  i   i K6 D300  H3412 D301  H7856 D302       SP SOCSND  UO  K1 D300    M300 M301    Se  M301  SS  Ser     lt  lt Data receive processing gt  gt   SD10680 0 SD10682 0 M500  m SP SOCRCV  UO  K1 D5000 D500    M500 M501    de 0 TES  M501  ba SET       HOBC9A D303    M300    M3002    M3003    M500    M5002    M5003    END            Acquires information of the connected target    Set length of the data to be sent    Set the data to be sent    Sending data to connection 1  Normal completion indication    Error completion indication    Receiving data    Normal completion indication    Error completion indication     1 For acquiring information of the device conn
30.  Data     e When  Lower Byte   Upper Byte  is selected  the same size as the data length is occupied   However  when the data length  of a send packet is an odd number  the upper byte  lower byte for  Byte Swap   of the end device is not sent  When the data  length of a receive packet is an odd number  the last data is stored with one byte of OOH       When  Lower Bytes Only  is selected  a size double the data length is occupied      Word  Specified device     0    Send Data storage area  packet      Data storage area    Receive  packet Data storage area    For send packet  Send data is stored by the program       For receive packet  Receive data is stored by the CPU module    When  Fixed Length Variable Length  is  Variable Length     The area after the device number specified on the  Element Setting  window   1 becomes the data storage area   The occupied data storage area differs according to the  Unit of Stored Data       When  Lower Byte   Upper Byte  is selected  the same size as the data length   one word  length for the data length  storage area  are occupied   However  when the data length of a send packet is an odd number  the upper byte  lower byte  for  Byte Swap   of the end device is not sent  When the data length of a receive packet is an odd number  the last data is  stored with one byte of OOH     e When  Lower Bytes Only  is selected  a size double the data length   one word  for data length storage area  is occupied      Word  Specified device   0 Data len
31.  Description   Element Name Set the element name    Data Length 0  Number of characters Set when the number of characters that are not verified differs between each communication session   variable   1 to 2046  number of Set the number of characters that are not verified     character specification     Poin tr    When  Data Length  is set to 0  an error will occur if the following layout is used      An element other than static data is placed behind a non verified reception element when non verified  reception is out of the length calculating range or when there is no length element  except for when non   verified reception is placed at the end of the packet elements       Multiple non verified reception elements are placed in the length calculating range  while a length element is  not placed      A non verified reception element is placed before a length element in the length calculating range     48 6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 3 Packet Elements    6 4 Execution Conditions of Predefined Protocol  Communications    The predefined protocol communications can be executed when    Predefined protocol ready  SD10692   is    1      This section describes the operation of  Predefined protocol ready   SD10692      When the system is powered on or reset    If protocol setting data is written  the CPU module checks the protocol setting data when the system is powered on or reset   If the protocol setting data is normal  the CPU module sets    Predefined protocol ready  
32.  MELSOFT Direct                            255 255255 255 4171                   jlInvaidOrCancel      0               Ethernet diagnostics item    Status of Each Connection Displays information concerning status of each connection   Status of Each Protocol The total of the send receive of the packet etc  for each protocol is displayed   Connection Status Monitors connection status     1 10 TROUBLESHOOTING  06 10 2 Checking Errors by GX Works3    Status of Each Connection    The status of each connection of the CPU module selected     Ethernet Diagnostics  Target Module Specification  KEN CPU M     Change IP Address Display      DEC     HEX    Change Port No  Display  E DEC     HEX    Status of Each Connection   status of Each Protocol   Connection Status      Connection No    Host Station  j Port No     Communication    Communication   Communication   Latest Open TCP  Destination inati Destination Error  Protocol System Status  Communication Method  IP Address Port No  Code    Continuous  Unlock  Lost Counts    Remote  Password  Status    ock          TR        Disconnected  Lok             SLMP                 TCP  Unpassve Diconnected      Lock           0          MELSOFT Connection      1 a ee  Socket Communication   255 255 255 255      OFA0                  UD               _  Invalid Or Cancel        4    06EB  Socket Communication                        TO   Active  Disconnected  Invalid OrCancel               5 O06EC  Socket Communication                      TCP   
33.  Mbps  specifications Full duplex or half duplex  Maximum segment length  Maximum 100 m  distance between hub and node   Number of cascade 2 levels maximum      Number of ports 1 port  Number of connections 8 connections maximum       1 This number applies when a repeater hub is used  When using a switching hub  check the number of cascaded stages with the    manufacturer of the hub to be used    2 Maximum of 8 connections including SLMP  MELSOFT connections  socket communication  and predefined protocol support        Point  Hubs with 100BASE TX or 10BASE T ports can be connected     A personal computer can also be directly connected without using a hub   The ports must comply with the IEEE802 3 100BASE TX or IEEE802 3 10BASE T standards     5 SLMP FUNCTION  5 1 Specifications    Link specifications    For applicable commands and devices  refer to L  Page 29 SLMP Commands     Link time    MSE frames  Calculate the minimum processing time for transmission by SLMP with the following formula   However  the processing time may further increase due to the network load  line congestion   window size of connected  devices  the number of simultaneously used connections  and the system configuration  Use the result of this formula as a  guideline value of the processing time  when only 1 connection is being used     Minimum processing time for communication by SLMP  for batch read  batch write   Tfs Ke  KdtxDf  Scrxnumber of scans required for processing  other device ACK processing 
34.  Protocol Library    Add New     1 The name can be set only when  Predefined Protocol Library  is selected for  Type        6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 1 Data Communication    lBIProtocol Detailed Setting    Set the protocol send receive parameters         Protocol Setting  window  gt  Select a protocol  gt   Edit   gt   Protocol Detailed Setting        Connected Device Information    Manufacturer  Generakpupose protocol         Model  sIMP Devce Read       sti     3O t  Version  nnn    0000 to FFFF     Explanation    Protocol Setting Information  Protocol No     Protocol Name 0401  Read  word     Communication Type   Send amp Receive    Receive Setting    Clear DS area  receive data area  before protocol execution          Enable C Disable       Receive Wait Time   0 x100ms  Setting Range  0 to 30000  0  Infinite Wait      Send Setting    Humber af Send Retries   Times  Setting Range  O to 10  Send Retry Interval   x 10ms  Setting Range  O ta 30000    Standby Time   o x10ms  Setting Range  0 to 30000    Monitoring Time  Setting Range  0 to 3000  0  Infinite wait      Communication Parameter Batch Setting            Connected Device Manufacturer Set the protocol maker name         1  Information Type Set the protocol device type     Set the protocol model     Version Set the protocol device version    Explanation Set a description of the protocol device   Protocol Setting Protocol No  The protocol number for the selected protocol is displayed   Information      
35.  SP SOCROwV instruction control data  SP SOCROV instruction completion device  Received data length and received data  Normal receive indication    Receive error indication    7 SOCKET COMMUNICATION FUNCTION  7 1 Communication Using TCP       65    Sample program     lt  lt Connection No 1 open processing  Active  gt  gt    M1000  SD10680 0 SD10681 0         MOVP HO D100 Set execution type completion type to 0  SP SOCOPEN  UO  K1 D100  M100 Execute connection 1 open  M100  M101 wore   D S M1002 Normal completion indication  M101      eee   p AAPA ee SET   M1003 Error completion indication        Data send processing          ge SD10680 0  MOVP K6 D300 Set length of the data to be sent  MOVP  H3412 D301  MOVP H7856 D302 Set the data to be sent  MOVP  HO0BC9A D303  SP SOCSND  UO  K1 D3000 D300 M300 Sending data to connection 1  M300 M301 Wer  SET M3002 j  Normal completion indication  M301  TEN  J_ FSET  M3003 Y Error completion indication     lt  lt Data receive processing gt  gt   SD10680 0 SD10682 0 M500          k SP SOCRCV      Uo  K1 D5000 D500  M500 Receiving data    M500 Tm  SET M5002   Normal completion indication    M501       SET M5003   Error completion indication        Connection No 1 close processing     ill rj Lu SD10681 0       PLS M4001   Processing for disconnection from target device  ui i SD10680 0 M4004    SP SOCCLOSE  U0  K1 D200  M200 Close Connection 1  M4001    SET M4004 3 Set the closing flag  M201              SET M4002   Normal completion indication
36.  appropriate to the operating environment     4 CONNECTION WITH MELSOFT PRODUCT AND GOT 1  4 1 Direct Connection with Engineering Tool 9    16    Precautions    Connection to LAN line    When connecting the CPU module to a LAN line  do not set direct connection  Doing so will apply a load on the LAN line and  adversely affect communications with other external devices     Indirect connection      Do not set up direct connection when a CPU module is connected to an external device in a one to one basis using a hub  as shown below           CPU module                                              Hub    ogogo ooog Bang                                                                                                                                             Ethernet cable    Engineering tool    e When two or more Ethernet ports are enabled in the network connections setting on the personal computer  communication  by direct connection is not possible  In the PC setting  leave only one Ethernet port enabled for direct connection and  disable other Ethernet ports     Conditions that disallow direct connection    When the following condition is met  it may not be possible to communicate directly  In such case  check the setting of the   CPU module and or personal computer    e In the CPU module IP address bits  if the bits corresponding to  0  in the personal computer subnet mask are all ON or all  OFF     CPU module IP address  64  64  255  255  Personal computer IP address  64  64
37.  blocks    number of bit device blocks  lt   120 and Total points of each  blocks of word device   total  points of each blocks of bit  device  lt  960       Device Read Block   0406H            0082H  Device Write Block   1406H 0000H    0080H    With n points of buffer memory in intelligent function modules and  SLMP compatible devices as 1 block  this command reads data by  randomly specifying multiple blocks     When bit devices are specified  1 point is 16 bits      With n points of buffer memory in intelligent function modules and    SLMP compatible devices as 1 block  this command reads data by  randomly specifying multiple blocks     With n points of bit devices and word devices as 1 block  this  command writes data by randomly specifying multiple blocks      When bit devices are specified  1 point is 16 bits         With n points of buffer memory in intelligent function modules and  SLMP compatible devices as 1 block  this command writes data by  randomly specifying multiple blocks     When bit devices are specified  1 point is 16 bits            ASCII     Number of word device blocks    number of bit device blocks   x 4     120 and  Total points of  each blocks of word device    total points of each blocks of bit  device  x 2 x 960   BIN     Number of word device blocks    number of bit device blocks   x 2     120 and Total points of  each blocks of word device    total points of each blocks of bit  device  lt  960    ASCII     Number of word device blocks    number 
38.  cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 3   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 4   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 5   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 6   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 7   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     APPENDIX  Appendix 1 List of Special Device Applications and Assignments       125    126    SD10869    SD10870    SD10871    SD10872    SD10873    SD10874    SD10875    SD10876    SD10877    SD10878    SD10879    SD10880    SD10882    SD10883    SD10884    SD10885    SD10886    SD10887    SD10888    APPENDIX  Appendix 1 List of Special Device Applications and Assignments    Connection No 7 received data  verification result  receive packet  No 8     Connection No 7 received data  verifica
39.  change function    This function is provided to change the IP address of the CPU module  built in Ethernet port  by setting the desired IP address  to special registers from a peripheral unit or another unit and turning ON a special relay    This function changes the IP address of the CPU module even if no settings are made in GX Works3 PLC parameters   When the IP address change function is used  the IP address stored in the IP address storage area  CPU module internal  FRAM   not the IP address setting of the module parameter Ethernet port in GX Works3  is set to the CPU module    This function can set three types of data   IP address  subnet mask pattern and default gateway IP address     1  IP address is stored in special  register by device write           2  When special relay  SM8492  is ON  IP  address of the special registers is stored in IP  address storage area  CPU module internal  FRAM      SD8492  IP address  SD8493          SD8494 Subnet  mask    SD8495 pattern        IP address storage area  Special register  CPU module internal FRAM     SD8492  IP address IP address  SD8493  SD8494 Subnet Subnet  mask mask  SD8495 pattern pattern  SD8496 Default Write execution Default    gateway SM8492 is ON gateway  SD8497   IP address IP address         SD8496 Default  gateway  Sp8497  IP address              Serial communication   RS 485 422 232C            CPU module        Peripheral unit       3  Turn CPU module s power OFF and ON or  perform system reset     4  CPU m
40.  clear method    You can read and clear error information by Ethernet diagnostics of GX Works3   For details concerning Ethernet diagnostics of GX Works3  refer to   Page 106 Checking Errors by GX Works3     10 TROUBLESHOOTING 1  10 1 Checking Errors by LEDs 05    10 2 Checking Errors by GX Works3    You can check built in Ethernet status  parameter settings  communication status  etc   with the Ethernet diagnostics function  of GX Works3     Ethernet diagnostics  For details concerning Ethernet diagnostics of GX Works3  refer to LEIGX Works3 Operating Manual     e Ethernet diagnostics screen    XX  Diagnostics   gt   Ethernet Diagnostics     Target Module Specification Change IP Address Display     Change Port No  Display      CPU M    DEC HEX DEC  HEX                      Status of Each Connection   status of Each Protocol  Connection Status      e gp eod Padres   Potto eee    2          MASOF Connection                     TCP        Disconnected  Lok       0          3   O6EA  Socket Communication   255 255 255 255        FA0         upp               invalid Orcancel            4    O06EB   Socket Communication                      TO   Acte  Disconnected  Invalid OrCancel            5    O06EC  Socket Communication                      TO  Unpassive  Disconnected  Invalid Or Cancel                 6   06D   Socket Communication                      TCP jFulpassve Disconnected Invaid Or Cancel           C                 J eee ee Ee ee ee eee eee  Pe ee er eee ee l e    
41.  communication normally   If the LED is not flashing  check the wiring and the communication settings     Checking communication status based on error code    For the error codes stored in the end code when there is an abnormal end of SLMP  3E frame  communication  refer to  KL  Page 113 SLMP function error code        Number of connectable units  Up to 8 external devices can access one CPU module at the same time  including socket communication  MELSOFT    connections  and SLMP      Connection of user application MELSOFT connection  and other device SLMP        Target  device  Client     FX5 CPU          Maintenance  GX Works3  etc   MELSOFT connection     For connections with external devices by SLMP  the number of possible simultaneous connections is the number of devices  configured in the Ethernet configuration settings only     Data communication frames    The frames that can be used on the CPU module are the same as MC protocol QnA compatible 3E frames     Access range  e Only the connected CPU module can be accessed  Transmissions to other modules will result in an error     e Communication with other stations such as CC Link via the connected CPU module cannot be done   For details of the access range  refer to the LL IMELSEC iQ F FX5 User s Manual  SLMP            5 SLMP FUNCTION  5 4 Precautions 35    Precautions when the protocol is set to UDP      For a single UDP port  if a new request message is sent while waiting for the response message after sending the firs
42.  considered as a cause of the error        Take the following actions as needed     1  Monitor the unlock failure count  SD10270 to SD10277  and identify the connection in which the mismatch count has  reached a fixed count  upper limit  in unlock processing  The continuous unlock lost counts also can be identified on the   Ethernet Diagnostics  screen of GX Works3     XX  Diagnostics   gt   Ethernet Diagnostics   gt     Status of Each Connection              Ethernet Diagnostics  Target Module Specification Change IP Address Display Change Port No  Display      CPU M      DEC     HEX  DEC    HEX    Status of Each Connection   Status of Each Protocol   Connection Status      Genscan ha    Hot SEEN graeme BG E A  pains en Open TCP   Function Port No  Destina Destination Destination leid iius  B ee T Status  Communication Method  IP Address Port No  Code    03E8 SLMP TCP   Unpassive Disconnected      mor omean              rf Disconnected    GEA   Socket Communication 255 255 255 255  rao         upp      _ _   _ir    GEB rR a cae   Se   c    GEC   Socket Communication                     TP   A  LT ju   06ED vaid Or Cance  HEN CENE NEN NN pcm  S  ge    MELSOFT Direct m    Clear Latest Error Code       2  Inform your system administrator that the number of unlock processing failures exceeded the limit  and take appropriate    actions     98 8 REMOTE PASSWORD  8 4 Detection of Unauthorized Access and Actions    9 IP ADDRESS CHANGE FUNCTION          9 1 Overview of the IP address
43.  gratis warranty term before  repairs      Gratis Warranty Range     1  The range shall be limited to normal use within the  usage state  usage methods and usage  environment  etc   which follow the conditions and  precautions  etc   given in the instruction manual   user s manual and caution labels on the product    2  Even within the gratis warranty term  repairs shall  be charged for in the following cases    a  Failure occurring from inappropriate storage or  handling  carelessness or negligence by the  user  Failure caused by the user s hardware or  software design    b  Failure caused by unapproved modifications   etc   to the product by the user    c  When the Mitsubishi product is assembled into  a user s device  Failure that could have been  avoided if functions or structures  judged as  necessary in the legal safety measures the  user s device is subject to or as necessary by  industry standards  had been provided    d  Failure that could have been avoided if  consumable parts  battery  backlight  fuse   etc   designated in the instruction manual had  been correctly serviced or replaced    e  Relay failure or output contact failure caused  by usage beyond the specified life of contact   cycles     f  Failure caused by external irresistible forces  such as fires or abnormal voltages  and failure  caused by force majeure such as earthquakes   lightning  wind and water damage    g  Failure caused by reasons unpredictable by  scientific technology standards at time of  
44.  manual number gt     MELSEC iQ F FX5 User s Manual  Startup    lt JY997D58201 gt     MELSEC iQ F FX5U User s Manual  Hardware      lt JY997D55301 gt     MELSEC iQ F FX5UC User s Manual  Hardware      lt JY997D61401 gt     MELSEC iQ F FX5 User s Manual  Application      lt JY997D55401 gt     MELSEC iQ F FX5 Programming Manual  Program Design       JY997D55701      MELSEC iQ F FX5 Programming Manual  Instructions  Standard    Functions Function Blocks    lt JY997D55801 gt     MELSEC iQ F FX5 User s Manual  Serial Communication      lt JY997D55901 gt     MELSEC iQ F FX5 User s Manual  MODBUS Communication      lt JY997D56101 gt     MELSEC iQ F FX5 User s Manual  Ethernet Communication      lt JY997D56201 gt   This manual     MELSEC iQ F FX5 User s Manual  SLMP    lt JY997D56001 gt     MELSEC iQ F FX5 User s Manual  Positioning Control      lt JY997D56301 gt     MELSEC iQ F FX5 User s Manual  Analog Control      lt JY997D60501 gt     GX Works3 Operating Manual   lt SH 081215ENG gt     TERMS    Description    Performance specifications  procedures before operation  and troubleshooting of the  CPU module     Describes the details of hardware of the FX5U CPU module  including input output  specifications  wiring  installation  and maintenance     Describes the details of hardware of the FX5UC CPU module  including input output  specifications  wiring  installation  and maintenance     Describes basic knowledge required for program design  functions of the CPU  module  devices label
45.  may be  combined  or data sent all at once may be segmented  on the receiving end  The receive data length must be confirmed on  the receiving end as necessary    When receiving data on the target device  confirm the receive data length as shown below        Receive processing on the target device               Received message receive processing        Is TCP connection  open                   Receive the rest of the message TCP connection is closed               Could data be received  within the monitor timer      Check the received data size      Is receive data size  sufficient                               Process for the received message        as the entire  received message  processed         End Error handling    7 SOCKET COMMUNICATION FUNCTION  7 3 Precautions 75    76    7 4    Socket Communication Function Instructions    The socket communication function instructions are provided for the CPU module to use the socket communication function     This section explains the socket communication function instructions     The following is a list of the instructions     Instruction  SP SOCOPEN    SP SOCCLOSE  SP SOCRCV    SP SOCSND  SP SOCCINF    S P  SOCRDATA    Poin tr    Description Reference    Establishes a connection  Page 77 Opening a  connection    Closes a connection  Page 81 Disconnecting a  connection    Reads the data received  Read at END processing   Page 84 Reading received  data in the END processing    communication receive data    Sends data  Page 87 S
46.  of protocol executions in connection No 7   0  Protocol not executed  1 to 65535  Number of executions    Cancels the protocol executed in connection No 7   0  No cancellation instruction   1  Cancellation request  set by user    2  Cancellation completed  set by system     Stores the status of the protocol being executed at connection No 8   0  Unexecuted   1  Waiting for transmission   2  Sending   3  Waiting for data reception   4  Receiving   5  Execution completed    Stores the verification results of receive packet No 1   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 2   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 3   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 4   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 5   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 6   Element No  where th
47.  only when the predefined  protocol support function starting  Unable to change   start the predefined protocol support function again if you       f  Newly create the protocol setting     TZ   File   gt   New   E  File Edit Online Tool Debugging Support Function Window    D BS EA JE LES    Protocol in Predefined Protocol Library               Protocol Line            send Packet Line          Receive Packet Line    Protocols 0 64 Packets 0 128 Packet Data Area Usage 0 0        0  Seta protocol in the following      4  Edit   gt   Add Protocol     Selection of Protocol Type to Add    Type    Predefined Protocol Library   Reference        Select from Predefined Protocol Library   Please select manufacturer  model and protocol name from Protocol to  Add     Protocol to Add    General purpose protocol   SLMP Device Read  om  Read  word        2 6 PREDEFINED PROTOCOL SUPPORT FUNCTION  5 6 5 Example of Predefined Protocol Communications    9  Set each packet in the following     XZ  Protocol Setting  window  gt  Packet to be set    Request    Protocol No    1 Protocol Name   0401  Read  word     Packet Type Send Packet Packet Name Request    E risu Element Type Element Mame Element Setting    5400 26 ute    L EE  1n a  zZ Variable Seral Mo DO DO  Fired Length  Byter Lower Upper Butero Swap     Fixed data       O  DUpBute        00000000000000000 o      LE us isset  Variable Network No 01 01  Fixed Length 1 Byte Lower Upper Bute Mao Swap    L I fon o     Variable Station Mo Dz D2 F
48.  personal computer  GX Works3  by clicking  Find  button from the  PLC side I F Detailed Setting of PLC  Module  screen     PLC Detailed Setting of PLC Module  PLC Mode  FX5CPU         Ethernet Port Direct Connection    Connection via HUB        1       n  Lu J  i  1 s  n F  it F  L      Please select    Connection via HUB  when you use HUB even   if there is only one target device to communicate    IP Address 192  168 a  250   If HUB is connected to other devices and also  Ethernet Port   Direct Connection  is selected during communication  the line IP Input Format  becomes overloaded  This might affect other devices i   communication   2 Host Name    Search for the FX5CPU on network     Response Wait Time 2 sec     Display Only CPU Type of Project V   Selection IP Address Input    Search for FXBCPU on the same network  Unable to search for the following causes     No response within a specific time period      Connected via a router or subnet mask is different       No response to search for CPU module on network is set in module parameter     IP address CPU Type Comment    1 j 132158 3 290      FSULPLI                  CPU modules connected to cascaded hubs are also searched and a list of them is displayed      CPU modules connected via router cannot be searched    e Some CPU modules connected via wireless LAN may not be found since Ethernet communication may not be stable due to  packet loss    e  f multiple CPU modules with the same IP address are found in the list  chec
49.  receive packet No 13   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 13  The cause of mismatch  verification result code   b8 to b15   SD10795 Connection No 3 received data Stores the verification results of receive packet No 14   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 14  The cause of mismatch  verification result code   b8 to b15   SD10796 Connection No 3 received data Stores the verification results of receive packet No 15   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 15  The cause of mismatch  verification result code   b8 to b15   SD10797 Connection No 3 received data Stores the verification results of receive packet No 16   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 16  The cause of mismatch  verification result code   b8 to b15   SD10798 Connection No 3 protocol Stores the number of protocol executions in connection No 3   execution count 0  Protocol not executed  1 to 65535  Number of executions  SD10799 Connection No 3 protocol Cancels the protocol executed in connection No 3   cancellation specification 0  No cancellation instruction  1  Cancellation request  set by user   2  Cancellation completed  set by system   SD10800 Connection No 4 protocol Stores the status of the protocol being executed at connect
50.  the send data length within the maximum window size of the target device  receive buffer of  TCP   Data whose size exceeds the maximum window size cannot be sent     This instruction sends data set in  s3  to the target device of the connection specified by  s1      CPU module     s3  0   Send data length     s3  1  Send data     s3  2   Send data  D   External device  SP SOCSND     Sending data     Send data       The result of the SP SOCSND instruction can be checked with the completion device   d  O and  d  1      Completion device  d  0  Turns on in the END processing of the scan after completion of the SP SOCSND instruction  and  turns off in the next END processing    e Completion device  d   1  Turns ON or OFF according to the status at the time of completion of the SP  SOCSND instruction        When completed Remains off   When failed Turns on in the END processing of the scan after completion of the SP  SOCSND instruction  and turns off in the next END  processing     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    The following figure shows the timing of send processing with the SP SOCSND instruction      lt Sending control method gt    Open Send   processing data   Open completion signal   ON  AEREE AOIGEEEEEEEEEEE    SD10680 n  OFF      END processing END processing END processing    Sequence program          c A LT     C Execute SP SOCSND instruction  SP SOCSND instruction N         1 scan  ON e        gt   Completion device  d
51.  x             jo 1   Serial Ethernet  USB Board  PLC GOT  Module  PLC Mode FX5CPU 2   IP Address HostName 192 168 3 250  3              Li    No Specification      CPU Module Direct Coupled Setting  Connection Test  Time Out  Sec   30 Retry Times 9                   1  Select  Ethernet Board  for  PC side I F      2  Select  PLC Module  for  PLC side I F     Input the CPU IP address or host name in the  PLC side I F Detailed Setting of PLC Module  screen as shown in the following  figure    In case of host name  set the name specified in the Microsoft  Windows  hosts file     Wu C 4 oe a   DuERDLMAM EDU E d   J  7 side I F Detailed Setting of PLC Module x       PLC Mode  FX5CPU        Ethernet Port Direct Connection      Connection via HUB        BDunmpgggau ur         Please select  Connection via HUB  when you use HUB even    if there is only one target device to communicate  i   IP Address 192  168 3  250  If HUB is connected to other devices and also  Ethernet Port    Direct Connection  is selected during communication  the line IP Input Format    becomes overloaded  This might affect other devices B  communication   2 Host Name    3  Set  Other Station Setting    Select an item appropriate to the operating environment     4 CONNECTION WITH MELSOFT PRODUCT AND GOT 1  4 2 Connection via a hub 9    Searching CPU Modules on Network    In the case of GX Works3  with connections using the hub  you can search for and display of list of CPU modules connected  to the same hub as
52. 1 s2 s3 d              SP_ECPRTCL  enters O       Selingdala            llDescriptions  ranges  and data types    Dummy  Input the character string   U0         Character string ANYSTRING  SINGLE   s2  Number of protocols to be executed continuously 16 bit unsigned binary ANY16     s3  Head device number for storing the control data Refer to Control data Word ANY16 ARRAY       Page 57   Number of elements  18      d  Head device number which turns ON when the execution of Bit ANYBIT ARRAY  the instruction is completed and remains on for 1 scan   Number of elements  2   If the instruction is completed with an error   d  1 is also  turned on      1 In the case of the ST language and the FBD LD language  U displays as UO             U        WApplicable devices        U      s2   e  o    F  o  o    19          1 T  ST  C cannot be used     Eque   Ep ee m   Oo  NENNEN    6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 6 Predefined Protocol Support Function Instruction    Control data    EN MEENEN D MENU     Resulting number of  executed protocols     s3  0     s3  1     3  2     s3  3     S344     s3  5     s3  6     S347     s3  8     s3  9     s3  10     s3  11     s3  12     s3  13     s3  14     s3  15     s3  16     s3  17       Completion status    number 6    Execution protocol    number 7    Execution protocol    number 8    Collation match  Receive packet  number 1    Collation match  Receive packet  number 2    Collation match  Receive packet  number 3    Collation match  Rec
53. 10807 Connection No 4 received data Stores the verification results of receive packet No 6   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 6  The cause of mismatch  verification result code   b8 to b15   SD10808 Connection No 4 received data Stores the verification results of receive packet No 7   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 7  The cause of mismatch  verification result code   b8 to b15   APPENDIX    122    Appendix 1 List of Special Device Applications and Assignments    SD10809    SD10810    SD10811    SD10812    SD10813    SD10814    SD10815    SD10816    SD10817    SD10818    SD10819    SD10820    SD10822    SD10823    SD10824    SD10825    SD10826    SD10827    SD10828    Connection No 4 received data  verification result  receive packet  No 8     Connection No 4 received data  verification result  receive packet  No 9     Connection No 4 received data  verification result  receive packet  No 10     Connection No 4 received data  verification result  receive packet  No 11     Connection No 4 received data  verification result  receive packet  No 12     Connection No 4 received data  verification result  receive packet  No 13     Connection No 4 received data  verification result  receive packet  No 14     Connection No 4 received data  verification result  receive packet  No 15     Connection No 4 received data  verification resu
54. 5UC CPU module    Generic term for FX5U 32MR ES  FX5U 32MT ES  FX5U 32MT ESS  FX5U 64MR ES  FX5U 64MT ES   FX5U 64MT ESS  FX5U 80MR ES  FX5U 80MT ES  and FX5U 80MT ESS    Generic term for FX5UC 32MT D and FX5UC 32MT DSS   Generic term for FX5 extension modules and FX3 function modules   Generic term for I O modules  FX5 extension power supply module  and FX5 intelligent function module  Generic term for FX3 extension power supply module and FX3 intelligent function module    Input modules  extension cable type   Output modules  extension cable type   Bus conversion module   extension cable type   and Intelligent function modules    Input modules  extension connector type   Output modules  extension connector type   Input output  modules  Bus conversion module  extension connector type   and Connector conversion module  extension  connector type     Generic term for input modules  output modules  Input output modules  and powered input output modules    Generic term for Input modules  extension cable type  and Input modules  extension connector type     Terms     Input module  extension cable type      Input module  extension connector type   Output module      Output module  extension cable type       Output module  extension connector type   Input output modules  Powered input output module  Extension power supply module     FX5 extension power supply module  e FX3 extension power supply module  Intelligent module   Intelligent function module   e FX5 intelligent function mo
55. 7    5 2 Setting Method       The following shows the configuration for communication by SLMP     X Navigation window gt  Parameter  gt  FXSUCPU  gt  Module Parameter  gt  Ethernet Port  gt  Basic Settings  gt  Own Node  Settings     setting Item    G Own Hode Settings   E IP Address       a w Basic  Settings Subnet Mask    i Own Mode Settings    Default GRENA ae  External Device Configura      External Device Configuration    Ei Application Settings     External Device Configuration    Detailed Setting    Security  Explanation       Set the IP address of the own node    Ensure that the own node and the external device to be communicated with have the same  class and subnet address  IP address has been set in the range of class A B C    If IP address is nat set  the module operates with following IP address    132 158 3251    Setting range      Empty  na setting      0 0 0 1 to 223 255 255 254 tin decimal     Restore the Default Settings             1  Under  Own Node Settings   configure  IP Address  setting   2  Configure the connection for the SLMP connection      4 Navigation window gt  Parameter  gt  FXSUCPU  gt  Module Parameter  gt  Ethernet Port  gt  Basic Settings  gt   External  Device Configuration   Detailed Setting  gt  Ethernet Configuration  Built in Ethernet Port   screen       i Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting                                  Communication     h   EE     Existence   No  Mode
56. 8497  value Correct the IP address setting or other  SD8492 to SD8497  value   exceeds the setting range     9 IP ADDRESS CHANGE FUNCTION 1 1  9 3 Write operation to IP address storage area 0    9 4 Clear operation to IP address storage area    When the special relay  SM8495  turns from OFF to ON  IP address storage area  CPU module internal FRAM  can be  cleared   IP address change function can be disabled       IP address storage area clear procedure    IP address storage area clear procedure is described     Clearing operation          Operations  1  Turn off and on SM8495  IP address storage area clear request      2  Check the clear results with the following special relays and special registers     Off Off  On On  Off On    SM8495 IP address storage area clear request  SM8496 IP address storage area clear completed    SM8497 IP address storage area clear error    SD8499 IP address storage area clear error code Stores the error code    3  When it completed normally  power off and on or reset the CPU module     4  The IP address or other setting of the CPU module can be checked with the following special register     SD10050  SD10051 IP address The IP address currently set in the CPU module is stored   SD10060  SD10061 Subnet mask The subnet mask currently set in the CPU module is stored     SD10064  SD10065 Default gateway IP address The default gateway IP address currently set in the CPU module is stored     lIError code at error occurrence  If the data is not clear cor
57. 9   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 10   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 11   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 12   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 13   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 14   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 15   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 16   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the number of protocol exec
58. C programmable  controller  the usage conditions shall be that the  application will not lead to a major accident even if  any problem or fault should occur in the  programmable controller device  and that backup  and fail safe functions are systematically provided  outside of the device for any problem or fault    2  The Mitsubishi programmable controller has been  designed and manufactured for applications in  general industries  etc  Thus  applications in which  the public could be affected such as in nuclear  power plants and other power plants operated by  respective power companies  and applications in  which a special quality assurance system is  required  such as for railway companies or public  service purposes shall be excluded from the  programmable controller applications    In addition  applications in which human life or  property that could be greatly affected  such as in  aircraft  medical applications  incineration and fuel  devices  manned transportation  equipment for  recreation and amusement  and safety devices   shall also be excluded from the programmable  controller range of applications    However  in certain cases  some applications may  be possible  providing the user consults their local  Mitsubishi representative outlining the special  requirements of the project  and providing that all  parties concerned agree to the special  circumstances  solely at the user s discretion     131    TRADEMARKS    Microsoft   and Windows   are either registered tr
59. CINF instruction  refer to L gt  Page 90 Reading connection information        Simultaneous broadcast connection  Data cannot be sent when FFFFH is specified for the port number of the transmission target  To send data  specify a value    other than FFFFH     llDestination IP address of the message transferred by simultaneous broadcast  Use an IP address for which all the bits corresponding to the host address of the CPU module are on  When the subnet mask  pattern is specified  apply the pattern before using the above mentioned IP address     CPU module IP address  64 168 3 39  Subnet mask pattern  None  IP address of simultaneous broadcast  64 255 255 255    CPU module IP address  64 168 3 39  Subnet mask pattern  255 255 255 0  IP address of simultaneous broadcast  64 168 3 255    7 SOCKET COMMUNICATION FUNCTION  7 2 Communication Using UDP 73    14    7 3 Precautions    This section provides other precautions for the socket communication function     Port number   Host station port number  1 to 1023  0001H to 03FFH   are assigned for reserved port numbers  WELL KNOWN PORT  NUMBERS  and 61440 to 65534  FOOOH to FFFEH  are for other communication functions  Therefore  using 1024 to 5548   5570 to 61439  0400H to 15ACH  15C2H to EFFFH  is recommended    Do not specify 5549 to 5569  15ADH to 15C1H  because these ports are used by the system    Do not specify 45237  BOB5H  and 61440 to 65534  FOOOH to FFFEH  for the socket communication function when using the  iQ Sensor Solut
60. Connection Status    Communication Rate    Number of Disconnections    Broadcast  Maximum Size of Detection  Amount of Data per Unit Time  Latest     Amount of Data per Unit Time  Maximum     PING Test    The following table lists the displayed items in  Connection Status  tab     Change IP Address Display     Change Port No  Display        DEC    HEX    DEC       8 HEX    Communication Full Duplex Half Duplex   Displays whether the line is full duplex or half duplex     Status Connection Status Displays the cable connection status       Communication Rate Displays the communication speed         Number of Not supported       Disconnections   Broadcast Maximum Size of Not supported     Detection  Amount of Data per Unit   Not supported     Time  Latest   Amount of Data per Unit   Not supported     Time  Maximum     10 TROUBLESHOOTING  10 2 Checking Errors by GX Works3       109       PING Test    The PING test checks existence of an Ethernet device on the same Ethernet network   This test is performed on the network of stations connected to the GX Works3 by sending packets for check  If a response  returns  the communication can be performed     X  Ethernet Diagnostics  window  gt   PING Test  button    PING Test    Input Item  Address Specification    l IP Address Input Form      IP Address    i DEC  f HEX   9  IP Address Host Name   setting Options     Display the Host Name   Specify the Data Size 32 Byte   Specify the Communication Time Check l Seconds    Specify the Numbe
61. Data  reading  rocessin  ACK i i   Only TCP        _ Operation error               3405H The connection number specified by  s1  is other than 1 to 8     2820H The size of the receive data exceeds the size of the receive data storage device   The device number specified by  s2    d1  or  d2  is outside the range of the number of device points   2822H Device that cannot be specified is specified     3582H When an instruction which cannot be used in interruption routine program is used     Ue EHE HUUT  es    When M5000 is turned on  data received from the connected device is read   e Devices used    SD10680 Open completion signal  SD10682 Receive state signal  D5000 SP SOCROwV instruction control data  D500 Received data length and received data storage location  M500 SP SOCROV instruction completion device    Program   M5000  SD10680 0 SD10682 0 M500 Execute reading received data of   e k     _4  SP  SOCRCV  UO  K1 D5000 D500 M500 connection No  1  M500 M501  SET M502 Normal completion indication  M501    JM            SET M503 Abnormal completion indication          Consecutively sent data can be consecutively read by connecting the completion device of the SP  SOCRCV  instruction to the execution command as a normally closed contact     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    Sending data    SPSOCSND            Sends data              ENO  SP_SOCSND EN U0 s1 s2 s3 d       EZI w  eon   02    089  o            SP SOCSND  enters O     
62. EC iQ F FX5 Programming Manual  Program Design    Abbreviation of MELSEC iQ F FX5 Programming Manual  Instructions  Standard Functions Function Blocks     Generic term for MELSEC iQ F FX5 User s Manual  Serial Communication   MELSEC iQ F FX5 User s  Manual  MODBUS Communication   MELSEC iQ F FX5 User s Manual  Ethernet Communication   and  MELSEC iQ F FX5 User s Manual  SLMP     Abbreviation of MELSEC iQ F FX5 User s Manual  Serial Communication   Abbreviation of MELSEC iQ F FX5 User s Manual  MODBUS Communication   Abbreviation of MELSEC iQ F FX5 User s Manual  Ethernet Communication   Abbreviation of MELSEC iQ F FX5 User s Manual  SLMP    Abbreviation of MELSEC iQ F FX5 User s Manual  Positioning Control   Abbreviation of MELSEC iQ F FX5 User s Manual  Analog Control     BCommunication related  Built in RS 485 port Built in RS 485 port of the CPU module     Serial port Generic term for the four ports consisting of the FX5 built in RS 485 port  CH1   communication board   CH2   communication adapter 1  CH3   and communication adapter 2  CH4      SLMP The abbreviation for Seamless Message Protocol   A protocol for accessing SLMP compatible devices and PLCs that are connected to SLMP compatible  devices from external devices     SLMP compatible device Generic term for devices that can receive SLMP messages     MC protocol The abbreviation of the MELSEC communication protocol   A protocol for accessing MC protocol compatible devices and PLCs that are connected to MC protocol   
63. EFINED PROTOCOL SUPPORT FUNCTION  6 6 Predefined Protocol Support Function Instruction 57    58     1 System  The CPU module stores the execution result of the instruction     Processing details    This instruction executes the protocol registered using the engineering tool  Using the connection specified by  s1   the   instruction executes the protocol in accordance with the control data stored in the device specified by  s3  and later  The   instruction continuously executes as many protocols as specified by  s2   a maximum of 8 protocols  at one time    The number of executed protocols is stored in the device specified by  s3  0    The completion of the SP ECPRTCL instruction can be checked using the completion devices  d  0 and  d  1      Completion device  d  0  Turns ON during the END processing for the scan in which the SP ECPRTCL instruction is  completed  and turns OFF during the next END processing      Completion device  d   1  Turns ON or OFF depending on the status when the SP ECPRTCL instruction is completed     Status Description  When completed normally The device does not change  remains OFF    When completed with an error The device turns ON during the END processing for the scan in which the SP ECPRTCL instruction is completed  and    turns OFF during the next END processing     e The following figure shows the SP ECPRTCL instruction execution timing     END processing END processing END processing    Program                      71 SP ECPRTCL instruction  
64. F to ON simultaneously     Error codes of the Ethernet communication    This section contains an explanation of the contents and method of handling of error codes for errors that occur during various       processing for data communication between CPU module  built in Ethernet  and other devices  and processing requests from  own station  built in Ethernet    Error codes are stored in built in Ethernet error code SD10130  connection 1  to SD10137  connection 8   However  in case of    multiple errors  the error code of the last error that occurred is stored in SD10130  connection 1  to SD10137  connection 8          2250H The protocol setting data stored in the CPU module is not for Write the protocol setting data for available modules to the CPU   Stores in SDO  available modules module     C012H Open processing with the external device failed   For TCP IP  Correct the port numbers of the CPU module and the external device   C013H Open processing with the external device failed   For UDP IP  Correct the port numbers of the CPU module and the external device   C018H The IP address specified value of the external device is incorrect    Correct the IP address specified value of the external device     C020H The send receive data length exceeds the allowable range    Correct the data length to be sent     When the amount of data to be sent exceeds the limit  divide the  data into smaller chunks to send it     C027H Socket communication send message has failed    Check the operat
65. Function Instruction    l SOCKET COMMUNICATION FUNCTION       The socket communication function allows data communication with the devices on Ethernet by TCP or UDP using various  dedicated instructions          Sending data                          SP SOCSND instruction                   Socket communication  receive area  1    Connection No  1  Program Connection No  2  SP SOCRCV instruction Connection No  3    Reading receive data    Connection No  8                                                                                                                        External device    Receiving data       The area is used for storing data received from the connected open devices     Poin tr    e For dedicated instructions used for the socket communication function  refer to L gt  Page 76 Socket  Communication Function Instructions      Access through routers is also available  except for simultaneous broadcast   When configuring the settings  set the subnet mask pattern and default gateway IP address       Page 22 Communication via Router     Port numbers   In socket communication  port numbers are used to identify respective communication and thereby multiple communications   are available both on TCP and UDP      For sending  Specify the port number of the CPU module from which data is sent  and the port number of the destination  device      For receiving  Specify the port number of the CPU module  and read the data sent to the port     CPU module   IP address  xx Xx x
66. M8495 IP address storage area clear Contents of IP address storage area are cleared when this device turns from OFF toON    R W  request    SM8496 IP address storage area clear   Turns ON when clearing of IP address storage area completes or fails   completed   Turns OFF when IP address storage area clear request  SM8495  turns from ON to  OFF        SM8497 IP address storage area clear   Turns ON when clearing of IP address storage area fails   error   Turns OFF when IP address storage area clear request  SM8495  turns from ON to  OFF     SM8498 IP address change function Turns ON when IP address is changed by IP address change function  R  enable flag    R  Read only  R W  Read Write       Special registers    SD8492 IP address setting  Low order    Stores IP address  low order  to be set when using IP address change function  R W    Becomes 0 when writing to IP address storage area is completed normally    SD8493 IP address setting  High order    Stores IP address  high order  to be set when using IP address change function  R W    Becomes 0 when writing to IP address storage area is completed normally    SD8494 Subnet mask setting  Low order      Stores subnet mask  low order  to be set when using IP address change function  R W    Becomes 0 when writing to IP address storage area is completed normally    SD8495 Subnet mask setting  High order      Stores subnet mask  high order  to be set when using IP address change function  RAN    Becomes 0 when writing to IP address 
67. No 1   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 1  The cause of mismatch  verification result code   b8 to b15   SD10843 Connection No 6 received data Stores the verification results of receive packet No 2   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 2  The cause of mismatch  verification result code   b8 to b15   SD10844 Connection No 6 received data Stores the verification results of receive packet No 3   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 3  The cause of mismatch  verification result code   b8 to b15   SD10845 Connection No 6 received data Stores the verification results of receive packet No 4   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 4  The cause of mismatch  verification result code   b8 to b15   SD10846 Connection No 6 received data Stores the verification results of receive packet No 5   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 5  The cause of mismatch  verification result code   b8 to b15   SD10847 Connection No 6 received data Stores the verification results of receive packet No 6   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 6  The cause of mismatch  verification 
68. ON 4  6 4 Execution Conditions of Predefined Protocol Communications 9    6 5 Example of Predefined Protocol Communications    This section describes an example of predefined protocol communications using UDP IP     System configuration    Sending side Receiving side  GX Works3  192 168 3 250   192 168 3 251                       Ethernet    Parameter settings  Connect GX Works3 to the CPU module and set the parameters     llSending side  1  Set the CPU module in the following     TZ   Project   gt   New        Do you want to add the module label of the following installed  modules     Module Name  FXSUCPU    Mounting Position No        Able to add module labels from  Module  window of  element selection         Do Not Show this Dialog Again  This setting can be changed in the Options dialog           6 PREDEFINED PROTOCOL SUPPORT FUNCTION  50 6 5 Example of Predefined Protocol Communications    3  Set the  Basic Settings  in the following      4 Navigation windowe  Parameter    FXSUCPU    Module Parameter  gt  Ethernet Port  gt  Basic Settings     Setting Item List    a w Basic Settings         0 Own Node Settings     External Device Configuration   iy Application Settings    Item List   Find Result       setting Item    G Own Hode Settings   o IP Address    subnet Mask  Default Gateway  Communication Data Cade Binary     External Device Configuration    External Device Configuration   Detailed Setting     Explanation    Set the IP address of the own node    Ensure that the 
69. ON 62  7 1 Communication Using IGP    i a 3i dra dog 40S Goes saws ben FECE n B ca sachsen dened aes M OECD icd ts 63  7 2 Communication Using UDP aua on    camara c Cae eee e RD GRADE a aon ca aw ae 70  7 3 xig a  TCI ne eae eee eee eee eae a a ae ce oes 74  7 4 Socket Communication Function Instructions          0   0 0 00  cc eee 76    Disconnecting a CONNECUON    24242000 48005404006460 5445 08 6250460 EXER A208 On 4544465550888 5 81  Reading received data in the END processing           0 0    0c ene eee eee 84  SCM Cale cu cis E oe 6 ee ote os Ge ee es 2 ee re ee E E S Sud 5 279 eee 87  Reading connection information          0 0    hh ss 90  Reading socket communication receive data     1 0 0    cc ee en eee eee 92  CHAPTER 8 REMOTE PASSWORD 94  8 1 Communication Using Remote Password            0 00 e eee 94  8 2 Remote Password Setting         2    ce hh hh n mh 95  8 3 PICCAUUIONS csc oceans hah a eee ee eee eee a eh eee 97  8 4 Detection of Unauthorized Access and Actions            0000 es 98  CHAPTER9 IP ADDRESS CHANGE FUNCTION 99  9 1 Overview of the IP address change function           0 0 0  eee en 99  9 2 IP address to be set for the CPU module     2552 yg din oeiw kr Ene ER XC CR RR age e Xo ana 100  9 3 Write operation to IP address storage area         2 00 nann nannu 101  IP address storage area write procedure     1 0    ee ee eee eee ees 101  9 4 Clear operation to IP address storage area          0  ce es 102  IP address storage area clear procedure   
70. ONS    MEMO       3 LIST OF FUNCTIONS  13    4 CONNECTION WITH MELSOFT PRODUCT AND    GOT       This chapter describes the method of communication between the CPU module and MELSOFT Product  engineering tool  MX    Component  etc   or GOT     4 1    Direct Connection with Engineering Tool    The CPU module can be directly connected to the engineering tool  GX Works3  with an Ethernet cable  without using a hub        14    For direct connection  the IP address and host name need not be specified   Communication using simultaneous broadcast           CPU module                                                                                        Ethernet cable    Engineering tool    Poin tr    An Ethernet cable used for direct connection will be longer compared with the USB cable  This can cause an    unauthorized connection from a remote location   With GX Works3  you can prevent hacking by opting to    Disable Direct Connection with MELSOFT    by  Navigation window gt  Parameter  gt  FX5UCPU  gt  Module Parameter  gt  Ethernet Port  gt  Application    Settings  gt   Security      iy Basic Settings  Bam Application Settings    Item List   Find Result          E Security  Z5 Disable Direct Connection with MELSOFT       Do Not Respond to GPU Module Search  Do Mot Respond ta GFU Module Search Respond    Explanation  Select whether to disable the direct connection  easy connection  with the engineering tool     Restore the Detault settings    Apply    4 CONNECTION WITH MELSOFT P
71. OPEN instruction   and turns off in the next END processing    e Completion device  d  1  Turns on or off according to the status at the time of completion of the SP SOCOPEN instruction     When completed Remains off     When failed Turns on in the END processing of the scan after completion of the SP  SOCOPEN instruction  and turns off in the next  END processing     END processing END processing END processing    Program           3             rem SP SOCOPEN instruction    SP SOCOPEN instruction       Completion device  d  0      ON When failed    000 77 7              Completion device  d  1 1 scan when    normally completed  E       a Connection 7  open       e A connection with no parameters  no protocol is specified  can be opened  In this case  specify 8000H for  s2  0 and    configure open settings in  s2  2 to  s2  9       Operation error       3405H The connection number specified by  s1  is other than 1 to 8    2820H The device number specified by  s2  or  d  is outside the range of the number of device points   2822H Device that cannot be specified is specified    3582H When an instruction which cannot be used in interruption routine program is used     7 SOCKET COMMUNICATION FUNCTION 79  7 4 Socket Communication Function Instructions    80    mB E    Opening a connection using parameter settings    When M1000 is turned on  connection No 1 is opened using the parameters set in  External Device Configuration  of module    parameter     Devices used       SD10680  
72. Protocol Name Set the protocol name     Communication Type Type Set the protocol communication type     Receive Setting Receive Wait Time Set the time for wait after the module enters the receive data wait state    If communication with the external device is disabled because of a disconnection and matching packet  data is not received within the specified time  the module judges that an error has occurred and cancels  the receive data wait state        Send Setting Standby Time Set the time to wait from when the protocol set for the module enters the execution state to when the  data is actually sent  The time for the external device to enter the receive enable state can be adjusted  with this in respect to the module s send timing      1 The setting cannot be changed if the protocol was selected from the predefined protocol library        Send receive parameters can be set for multiple protocols by clicking the  Communication Parameter Batch  Setting  button and setting the range of the set protocol numbers  receive settings  and send settings     6 PREDEFINED PROTOCOL SUPPORT FUNCTION 41  6 1 Data Communication    42          Packet setting    Set the configuration of the send receive packets on the  Packet Setting  window     XZ   Protocol Setting  window  gt  Packet to be set      1 Protocol Name   0401  Read  word   Packet Name   Request    E ren Element Type Element Mame Element Setting      LL    7     sta  e Data  Fined data    B400f2Byte    L    DE i          Variab
73. RODUCT AND GOT    4 1 Direct Connection with Engineering Tool    Setting method    In case of GX Works3  this is done using the  Specify Connection Destination Connection  screen     TZ  Online gt  Specify Connection Destination                       Specify Connection Destination Connection1 P   E fi  i   g 1   Serial  USB Board  PLC GOT  Module  PLC Mode FXSCPU 2   IP Address Host Name Ethernet Port Direct Connection         Connection Channel List   Li  CPU Module Direct Coupled Setting 4        Time Out  Sec   30 Retry Times 9             1  Select  Ethernet Board  for  PC side I F      2  Select  PLC Module  for  PLC side I F    In the  PLC side I F Detailed Setting of PLC Module  screen  select the  Ethernet Port Direct Connection  as shown below     D   o6 mide TIC meen   a a ee ne Ha qm f 3 1    PLC side I F Detailed Setting of PLC Module x    PLC Mode  FX5CPU        Ethernet Port Direct Connection   O Connection via HUB             Please select  Connection via HUB  when you use HUB even    if there is only one target device to communicate    IP Address    0 O0 8  If HUB is connected to other devices and also    Ethernet Port AER PELA  Direct Connection  is selected during communication  the line IP Input Format       DEC  becomes overloaded  This might affect other devices      communication  Host Marne    3  Set  Other Station Setting    Select an item appropriate to the operating environment     4  Set the Ethernet adapter of the personal computer   Select an item
74. Reset    Read Type Name    Global    Self Test    Clear Error    Password Lock    Password Unlock    5 SLMP FUNCTION  5 3 SLMP Commands    1001H  1002H  1003H    1006H  0101H    1618H    0619H  1617H    1631H  1630H    0082H    0000H  0000H  0000H  0000H    0000H    0000H    0000H  0001H    0000H    0000H    With n points of buffer memory in intelligent function modules and  SLMP compatible devices as 1 block  this command writes data by    randomly specifying multiple blocks        This command performs a remote RUN request for a device   This command performs a remote STOP request for a device     This command performs a remote PAUSE request for a device  m    This command performs a remote latch clear request when the E  device is in the STOP state    This command performs a remote reset request to reset the device  error stop state     This command reads the processor module name code  processor  type  of a device        Turns off the global signal        Turns on the global signal     0000H This command checks if normal communication is possible   0001H This command batch clears all errors and turns off the LED    This command sets to the locked status from the unlocked status by  specifying the remote password   Sets the device to the state where  communication is not possible      This command sets to the unlocked status from the locked status by  specifying the remote password   Sets the device to the state where  communication is possible            ASCII     Number 
75. SD10681  D100  M100      Program    M 1800 SD10680 0 SD10681 0    M100 M101    SET  M101                                                                                                                      N       Open completion signal   Open request signal   SP SOCOPEN instruction control data  SP SOCOPEN instruction completion device    MOVP HO    SP SOCOPEN  U0  K1 D100    llOpening a connection using control data settings  When M1000 is turned on  connection No 1 is opened using control data     e Devices used    SD10680  SD10681  D100  M100      Program    M 1800 SD10680 0 SD10681 0    M100 M101    SET  M101  ee N       Open completion signal   Open request signal   SP SOCOPEN instruction control data  SP SOCOPEN instruction completion device    MOVP H8000  MOVP H200  MOVP H1000  DMOVP H0A614F0E  MOVP H1000    SP SOCOPEN  UO  K1 D100    7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    D100    M100    M150    M151    END    D100    D102    D103    D104    D106    M100    M150    M151    END    Set execution type completion  type to OH    Open connection No 1  Normal completion indication    Error completion indication    Set execution type completion type  to 8000H    Set application setting area to 200H   TCP IP Active open     Set Own station port number to 4096    Set IP address of the target device to  10 97 79 14    Set target device port number to  4096    Open connection No 1  Normal completion indication    Error completion indic
76. SD10692     to    1    and enables  execution of the protocol       Predefined protocol ready   SD10692  is used as the interlock signal for executing the protocol    If the protocol setting data is abnormal     Predefined protocol ready  SD10692     remains    0     and the details of the error are  stored in SD10710 to SD10713 in the    Predefined protocol setting data check area    If protocol setting data is not written  the protocol setting data is not checked  and    Predefined protocol ready  SD10692      remains    0       Whether the protocol setting data is registered or not can be checked with  Number of registered predefined protocols    SD10714  and  Predefined protocol registration   SD10722 to SD10725         When protocol setting data is normal    Power on reset    Checking the protocol  setting data    CPU module    Becomes  1  when the    check result is    normal              Predefined protocol ready      SD10692        Predefined protocol setting  data check area      SD10710 to SD10725     NW The number of registered protocols and information  about whether protocols have been registered are stored     lBWhen protocol setting data is abnormal    Power on reset    l      CPU module Checking the protocol      setting data    Abnormal result       Remains    0              Predefined protocol ready    SD10692        Predefined protocol setting Y    data check area    The error details are stored    SD10710 to SD10725     6 PREDEFINED PROTOCOL SUPPORT FUNCTI
77. SU 5V   The abbreviation for intelligent function modules   Generic term for FX5 intelligent function modules and FX3 intelligent function modules  Generic term for FX5 intelligent function modules   Different name for FX3 special function blocks   Different name for FX5 40SSC S   Generic term for board for FX5U CPU module   Generic term for FX5 232 BD  FX5 485 BD  and FX5 422 BD GOT   Generic term for adapter for FX5 CPU module   Generic term for FX5 232ADP and FX5 485ADP   Generic term for FX5 AAD ADP and FX5 4DA ADP    Generic term for Bus conversion module  extension cable type  and Bus conversion module  extension  connector type     Different name for FX5 CNV BUS    Different name for FX5 CNV BUSC    Different name for FX3U 32BL  Generic term for engineering tools and GOTs    Generic term for Mitsubishi Graphic Operation Terminal GOT1000 and GOT2000 series    The product name of the software package for the MELSEC programmable controllers    The product name of the software package  SWnDND GXW3  for the MELSEC programmable controllers   The  n  represents a version      Generic term for separate manuals  Abbreviation of MELSEC iQ F FX5 User s Manual  Startup     Generic term for MELSEC iQ F FX5U User s Manual  Hardware  and MELSEC iQ F FX5UC User s Manual   Hardware     Abbreviation of MELSEC iQ F FX5U User s Manual  Hardware    Abbreviation of MELSEC iQ F FX5UC User s Manual  Hardware    Abbreviation of MELSEC iQ F FX5 User s Manual  Application    Abbreviation of MELS
78. T connection Communication with MELSOFT products  GX Works3  etc   is done within LAN such as   Page 17 Connection via a hub  company internal LAN        Connected CPU search Searches for built in Ethernet  CPU module  connected with personal computer using Page 20 Searching CPU Modules  function GX Works3 within the same hub  Acquires IP address by selecting from search results   on Network   list   MELSOFT diagnosis function Diagnoses built in Ethernet of CPU module from GX Works3   Ethernet diagnostics  Page 106 Ethernet diagnostics  SLMP communication function Reads and writes PLC data from other device  Page 25 SLMP FUNCTION  Predefined protocol support When the predefined protocol support function is used  data can be exchanged with the   Page 37 PREDEFINED    function external device  PROTOCOL SUPPORT  FUNCTION    Socket communication function   By using socket communication instructions  any data can be transferred from and to Page 62 SOCKET  the external devices connected through Ethernet using TCP or UDP  COMMUNICATION FUNCTION  Remote password Remote password setting can prevent unauthorized access from the outside and Page 94 REMOTE PASSWORD  enhance the security of the system     IP address change function This function is provided to change the IP address of the CPU module by setting the Page 99 IP ADDRESS CHANGE  desired IP address to special registers from a peripheral unit or another unit and turning   FUNCTION       ON a special relay        3 LIST OF FUNCTI
79. The cause of mismatch  verification result code   b8 to b15        APPENDIX  Appendix 1 List of Special Device Applications and Assignments       119    120    SD10749    SD10750    SD10751    SD10752    SD10753    SD10754    SD10755    SD10756    SD10757    SD10758    SD10759    SD10760    SD10762    SD10763    SD10764    SD10765    SD10766    SD10767    SD10768    APPENDIX  Appendix 1 List of Special Device Applications and Assignments    Connection No 1 received data  verification result  receive packet  No 8     Connection No 1 received data  verification result  receive packet  No 9     Connection No 1 received data  verification result  receive packet  No 10     Connection No 1 received data  verification result  receive packet  No 11     Connection No 1 received data  verification result  receive packet  No 12     Connection No 1 received data  verification result  receive packet  No 13     Connection No 1 received data  verification result  receive packet  No 14     Connection No 1 received data  verification result  receive packet  No 15     Connection No 1 received data  verification result  receive packet  No 16     Connection No 1 protocol  execution count    Connection No 1 protocol    cancellation specification    Connection No 2 protocol  execution status    Connection No 2 received data  verification result  receive packet  No 1     Connection No 2 received data  verification result  receive packet  No 2     Connection No 2 received data  verification result  
80. Unpassive Disconnected Invalid OrCancel               6   GED   Socket Communication                               TCP  Fulpassve Disconnected Invalid Or Cancel              ae     0L     LL 1  DLL    ES ee NEC eee    MELSOFT Direct       Po 255 255 255 255  CBBl       4171                   invalid OrCancel  0    The following table lists the displayed items in  Status of Each Connection  tab        Connection No  Function  Host Station Port No     Communication Destination  Communication Method    Communication Destination IP  Address    Communication Destination Port No     Latest Error Code  Protocol   Open System  TCP Status    Remote Password Status    Continuous Unlock Lost Counts    Displays the connection number and functions  MELSOFT direct connection    Displays the own station port number used     Displays the communication method     Displays the IP address of the sensor device to be connected  which is set in the parameter settings     Displays the port number of the sensor device to be connected  which is set in the parameter settings   Displays the error code that indicates the definition of latest error occurred    Displays the protocol  TCP IP or UDP IP    Displays the open method  Active  Unpassive  or Fullpassive  when the protocol of the connection is TCP IP     Displays the status  open status  of connection with the sensor device when the protocol of the connection status is  TCP IP     Displays the remote password setting status     Displays the total 
81. acket configuration     For TCP IP    Header Maximum data FEE Lii 2040 bes     y 2046 bytes       Destination Sender s MAC Tvpe  IP  TCP   MAC address    address  n ia 20 bytes 30 ies Data  6 bytes 6 bytes y y y    Ethernet header TCP IP header          6 PREDEFINED PROTOCOL SUPPORT FUNCTION 43  6 2 Protocol Communication Type       Header Maximum data length  2046 bytes    Destination Sender s Tvpe  IP  UDP   MAC address    MAC address  E m 20 T 8b Te Data  6 bytes 6 bytes y y y    Ethernet header UDP IP header             With the predefined protocol support function  data is exchanged with the external device with the procedures  communication  type  shown below        Send Only The send packet is sent once    Receive Only If there is a packet that matches within the maximum of 16 registered receive packets  the packet is received    Send  amp  Receive After sending the send packets  if there are packets that match the up to 16 registered receive packets  the packets are  received     6 3 Packet Elements    The packet is created with a combination of packet elements   Up to 32 elements can be set in one packet  One packet can have a maximum data length of 2046 bytes   This section describes the details of the packet elements           Element Name    Code Type    Setting Value     Setting Range  1 to 50    OK          Use when there are specific codes and character strings  such as commands  in the packet     When sending  The specified code and character string are sent  
82. acter length variable  after  the length  and that section is not included in the length calculating range  arrange the static data  immediately after the non conversion variable non verified reception    e When the code type setting is  ASCII Hexadecimal   a mismatch will occur if a character string other than   Q  to  9    A  to  F   and  a  to  f  is received      Use  0  to  9  or  A  to  F  when converting to ASCII characters during send      When arranging multiple length elements  none of the length calculating range may overlap    e When arranging multiple length elements  the previous length calculating range may not exceed the  arranged length      A length element cannot be arranged at the final position of the packet elements     6 PREDEFINED PROTOCOL SUPPORT FUNCTION 4  6 3 Packet Elements 5    46    Non conversion variable       Element Setting   Non conversion Variable Send     Element Name    Fixed Length  Variable Length   Fixed Length        Data Length Maximum Data Length   1  5etting Range  1 to 2046  Unit of Stored Data  Lower Byte   Upper Byte z    Byte Swap  Disable  Lower   gt  Upper  v      Data Storage Area Specification    Send Data Storage Area    1 Word     l            Specifiable Device Symbol   X  Y  M  L B  D  W  R       Ge      Use this to send the CPU module device data as part of the send packet  or to store part of the received packet in the CPU    module device     Multiple non conversion variable can be arranged in one packet     The fol
83. ademarks or trademarks of Microsoft Corporation in the United States and or       other countries    Ethernet is a trademark of Xerox Corporation    MODBUS  is a registered trademark of Schneider Electric SA    The company name and the product name to be described in this manual are the registered trademarks or trademarks of  each company     132    Manual number  JY997D56201B  Model  FX5 U EN E  Model code  09R543    When exported from Japan  this manual does not require application to the    Ministry of Economy  Trade and Industry for service transaction permission        MITSUBISHI ELECTRIC CORPORATION    HEAD OFFICE  TOKYO BUILDING  2 7 3 MARUNOUCHI  CHIYODA KU  TOKYO 100 8310  JAPAN  HIMEJI WORKS  840  CHIYODA MACHI  HIMEJI  JAPAN    Specifications are subject to change without notice     
84. assword is checked when a connection is requested for the following     e Communication using an engineering tool    e Communication using SLMP    Poin tr    8 1    The remote password function is one of the methods for protection against unauthorized access  e g    destruction of data and programs  from external devices    However  this function cannot completely prevent unauthorized access    Other measures should be taken at users  discretion if security of the programmable controller system against   unauthorized access from external devices needs to be maintained  Mitsubishi Electric cannot be held   responsible for any problems caused by unauthorized access     Examples of measures against unauthorized access      Install a firewall    e Set up a personal computer as a relay station  and control the relay of communication data using an  application program    e Set an external device that can control access rights as a relay station  For external devices that can control  access rights  please consult your network service provider or networking equipment vendors      Communication Using Remote Password    Communication is performed in the order described below when a remote password is set for the CPU module     1  Allowing access  Unlock processing   On a communication device such as a personal computer  unlock the remote password set for the CPU module   If it is not unlocked  an error will occur on the connected device because the CPU module will prohibit any access 
85. ast     NA    Precautions  WUse of UDP    Data may be lost  or may arrive out of order  Consider using TCP if any problem is expected     llSending and receiving data   Data sending process may complete normally even if the communication line between the CPU module and target device is  not connected due to a reason such as cable disconnection  To avoid this  it is recommended to provide communication  procedure at the user s discretion     MOpen completion signal and Open request signal  Once UDP is selected for a connection  the Open completion signal and Open request signal of the connection are always on     BSP SOCCLOSE instruction  Do not execute the SP  SOCCLOSE instruction in the program     Doing so will disable data transfer since the Open completion signal and Open request signal of the corresponding connection  turn off for close processing    To reopen the closed connection  execute the SP  SOCOPEN instruction    For the SP  SOCOPEN instruction  refer to   Page 77 Opening a connection     llSimultaneous broadcast targets  With simultaneous broadcast  data can be sent to devices that are connected to the same hub as the CPU module  and to    those connected to the cascaded hub s   Data cannot be received from devices connected via routers     llReceiving data using simultaneous broadcast  When data is received through a simultaneous broadcast connection  the IP address and port number of the sender can be    acquired by the SP  SOCCINF instruction   For the SP SOC
86. ation    Disconnecting a connection       Closes a connection        ENO  SP_SOCCLOSE EN U0 s1 s2 d              SP SOCCLOSE   enters LI       Setingdala            llDescriptions  ranges  and data types     Uy  Dummy  Input the character string   UO     MERERI Character string ANYSTRING  SINGLE     s1    Connection No      No  1 to Atos     16 bit unsigned binary       bit   16 bit unsigned binary       binary ANY 16     s2  C            number of the device in which control data is C    r to Control data Word ANY16 ARRAY  stored  I Page 81   Number of elements  2    d  Start number of the device which turns on for one ANYBIT ARRAY  scan upon completion of the instruction   d  1  Number of elements  2   also turns on when failed      1 In the case of the ST language and the FBD LD language  U displays as UO           BApplicable devices       m e m Jede ge eger      T  ST  C cannot be used   llControl data       Sema       LL    Completion status Completion status is stored  0000H  Completed        Other than 0000H  Failed  Error code   Refer to k  Page 111 Error Codes     1 The  Set by  column indicates the following   System  The CPU module stores the execution result of the SP  SOCCLOSE instruction     7 SOCKET COMMUNICATION FUNCTION 1  7 4 Socket Communication Function Instructions 8    82    Processing details       This instruction closes a connection specified in  s1    Disconnecting a connection    The result of the SP  SOCCLOSE instruction can be checked with the co
87. cedure    Set  External Device Configuration  under  Basic Settings    L  Page 50 Parameter settings       1  Select the external device to be connected in  Module List  and drag it to  List of devices  or  Device map area      External device name Description   UDP Connection Module Select to communicate with the external device using UDP IP   Active Connection Module Select to perform the open processing to the external device from the CPU module  Active open  and communicate using  TCP IP     Unpassive Connection Module   Select to receive the open processing from a unspecified external device  Unpassive open  and communicate using TCP IP     Fullpassive Connection Module   Select to receive the open processing from the specified external device  Fullpassive open  and communicate using TCP IP   2  Set  Communication Procedure  for the external device to  Predefined Protocol      3  Set the other parameters required for communication in the connection     Applicable dedicated instructions    The dedicated instruction  SP ECPRTCL   is used in the communication protocol support function  built in Ethernet      6 2 Protocol Communication Type    The packets sent to the external device when a processing is executed and the external device s receive packets are  registered in the protocol     The packet elements set with the predefined protocol support function are the data section of the packets that are actually  sent and received     This section describes an example of the p
88. cket  No 1     Connection No 7 received data  verification result  receive packet  No 2     Connection No 7 received data  verification result  receive packet  No 3     Connection No 7 received data  verification result  receive packet  No 4     Connection No 7 received data  verification result  receive packet  No 5     Connection No 7 received data  verification result  receive packet  No 6     Connection No 7 received data  verification result  receive packet  No 7        Stores the verification results of receive packet No 8   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 9   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 10   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 11   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 12   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 13   Element No  wh
89. col execution status is  2  Sending      SP ECPRTCL instruction        Completion device  d  Did OFF  Completion status OFF  OFF    indication device  d  1    Send or receive data                   Protocol cancellation   for the connection number    2  Cancellation completed  specified by  s1      Standby time    Send or receive data        Send packet  Send packet    The CPU module will no  longer receive data nor  execute protocols    The processing   stops     The CPU module finishes  sending the packet currently    External device being sent         6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 6 Predefined Protocol Support Function Instruction 59      If a cancel request is issued upon completion of transmission  The following figure shows the operation when transmission has been completed while the protocol execution status is  2  Sending      SP ECPRTCL instruction       Send packet    Send packet      If a cancel request is issued while waiting for reception  The following figure shows the operation when the protocol execution status is  3  Waiting for data reception      SP ECPRTCL instruction        Send or receive data        i ON  Completion device  d  OFF OFF    ON Completed with  i an error  Completion status OFF  OFF  indication device  d  1    Protocol cancellation 1  2    for the connection number Cancellation   Cancellation  specified by  s1      requested completed    Standby time             The CPU module will    The processing     longer receive data  stops
90. communication receive data area in  the END processing after execution of the SP  SOCROV instruction        CPU module    Receive data Socket  d1  0 li wu j j   d1  length communication     d1  1 receive data area    Connection   d1  2 Humba External device  l Receiving    specified in  s1   SP SOCRCV   Reading  receive data      d1  n       The result of the SP SOCRCV instruction can be checked with the completion device  d2  0 and  d2  1    e Completion device  d2  0  Turns on in the END processing of the scan after completion of the SP  SOCRCV instruction  and  turns off in the next END processing    e Completion device  d2   1  Turns on or off according to the status at the time of completion of the SP  SOCROV instruction     When completed Remains off   When failed Turns on in the END processing of the scan after completion of the SP SOCROWV instruction  and turns off in the next END  processing     7 SOCKET COMMUNICATION FUNCTION 8  7 4 Socket Communication Function Instructions D    The following figure shows the timing of reception processing with the SP SOCRCYV instruction     Open Send Data reading  processing data processing        ON  Open completion signal  F   SD10680 n        END processing END processing END processing  Sequence program    ON  Receive state signal off     SD10682 n  Ze SP SOCROV instruction    IN    SP SOCROwV instruction        1 scan      ON  Completion device  d2  0 OFF y  se   dil i PRIEST i    l h 0     Completion device  d2  1 OFF       
91. compatible devices from external devices     MC protocol compatible device Generic term for devices that can receive MC protocol messages     External device A generic term for personal computers connected by Ethernet for data communication and other Ethernet   equipped modules     Relay station A station that includes two or more network modules  Transient transmission is performed through this  station to stations on other networks     Buffer memory Memory areas of Intelligent function modules and SLMP compatible devices for storing setting values and  monitor values     1 OUTLINE          The following describes the built in Ethernet function of the FX5 CPU module     Connection with engineering tool and GOT    e The CPU module can be connected to multiple engineering tools and GOT by using hub  Up to 8 external devices can be  connected one CPU module at the same time      CPU modules connected to the same hub as the engineering tool can be searched and the IP address of the displayed  target device can be specified    e In MELSOFT connection  access through routers in an environment such as a corporate LAN     Direct connection with engineering tool    The CPU module can be directly connected to the engineering tool with an Ethernet cable  without using a hub   For direct connection  the IP address and host name need not be specified in the transfer setup     Communication using SLMP    CPU module device data can be read or written from external devices such as a persona
92. compatible devices in units of 1 bit     This command writes data to the buffer memory in intelligent function  modules and SLMP compatible devices in units of 1 word  16 bits  or  2 words     With n points of bit devices and word devices as 1 block  this  command reads data by randomly specifying multiple blocks    When bit devices are specified  1 point is 16 bits                ASCII     Word access points   double  word access points  x 4 x 192  BIN    Word access points   double   word access points  lt  192    ASCII     Word access points   double  word access points  x 4 x 192  BIN    Word access points   double   word access points  lt  192    ASCII  94 points  BIN  188 points    ASCII      Word access points  x 12    double word access points  x  14  x 2 x 1920   BIN     Word access points  x 12    double word access points  x  14  lt  1920    ASCII  47 points  BIN  94 points    ASCII      Word access points  x 12    double word access points  x  14  x 4 x 1920   BIN      Word access points  x 12    double word access points  x  14  x 2 x 1920    ASCII  47 points  BIN  94 points    ASCII      Word access points  x 12    double word access points  x  14  x 4 x 1920   BIN      Word access points  x 12    double word access points  x  14  x 2 x 1920    ASCII     Number of word device blocks    number of bit device blocks   x 2  lt  120 and  Total points of  each blocks of word device    total points of each blocks of bit  device  x 2 x 960   BIN    Number of word device
93. ding from the port number A of CPU    Port number Aj     module to the port number N of all     Communication target devices          Other than  255 255 255 255    Other than 65535          Other than  255 255 255 255    255 255 255 255 Other than 65535    255 255 255 255    7 SOCKET COMMUNICATION FUNCTION  7 2 Communication Using UDP                                                                                                                                                                                                                                                              Port number N    Receives only the data sent from the specified IP  address and port No  among the entire data sent to  the host station port No     Receives the data sent from all ports of the specified  IP address among the entire data sent to the host  station port No     Receives the data sent from the specified port No  of  all the IP addresses among the entire data sent to    the host station port No     Receives the data sent from the specified port No  of  all the IP addresses among the entire data sent to  the host station port No           Communication target device 1   IP address  xx xx xx yy     Communication target device 2   IP address  xx xx xx zz     Communication target device 3   IP address  xx xx xx ww        Sends data from the host station port No  to the  specified IP address and port No     NA    Sends data to the port No  specified in the  settings for simultaneous broadc
94. dule   e FX3 intelligent function module  Simple motion module   Expansion board     Communication board   Expansion adapter     Communication adapter     Analog adapter    Bus conversion module      Bus conversion module  extension cable  type      Bus conversion module  extension connector  type    Battery   Peripheral device   GOT   MSoftware packages   Engineering tool    GX Works3    ilManuals  User s manual    User s manual  Startup       FX5 User s manual  Hardware     e FX5U User s manual  Hardware    e FX5UC User s manual  Hardware      User s manual  Application   Programming manual  Program Design     Programming manual  Instructions  Standard  Functions Function Blocks     Communication manual      Serial communication manual     MODBUS communication manual    Ethernet communication manual    SLMP manual   Positioning manual    Analog manual    Description   Generic term for FX5 8EX ES and FX5 16EX ES   Generic term for FX5 C32EX D and FX5 C32EX DS   Generic term for output modules  extension cable type  and output modules  extension connector type     Generic term for FX5 8EYR ES  FX5 8EYT ES  FX5 8EYT ESS  FX5 16EYR ES  FX5 16EYT ES  and  FX5 16EYT ESS    Generic term for FX5 C32EYT D and FX5 C32EYT DSS   Generic term for FX5 C32ET D and FX5 C32ET DSS   Generic term for FX5 32ER ES  FX5 32ET ES  and FX5 32bET ESS   Generic term for FX5 extension power supply module and FX3 extension power supply module  Different name for FX5 1PSU 5V   Different name for FX3U 1P
95. dule  module I O No   or request destination module station No          Correct contents of write request and or read request     CO60H Error in request contents   Error in specification of data for bit Correct request content  and send to CPU module again   Data  device  etc   correction  etc     C061H Request data length does not match the number of data in the After reconsidering and correcting content of text or length of request  character section  part of text   data in the header  send to CPU module again    C200H Error in remote password  Correct remote password  and re execute remote password lock and    unlock     C204H Different device requested remote password to be unlocked  Request remote password lock from device that requested unlock of  remote password     10 TROUBLESHOOTING 11  10 3 Error Codes 3    10 4 Troubleshooting Flowchart    Simple troubleshooting when communication cannot be carried out between built in Ethernet and other device is provided in  the form of a flowchart     Cannot execute data communication    Check if an error has occurred in CPU  module     Has an error stopping CPU  module process occurred         YES Refer to the troubleshooting in the  users  manual of FX5 and fix the  cause of error        NO    Check the status of built in Ethernet             YES Check if there is an error in the parameters     and if there is an error  download the  corrected parameters        Has a built in Ethernet error  occurred        NO    Is the connec
96. e    Receive only  If there is a matching packet within up to 16 registered and received packets  it is received    Send  amp  receive  After sending one send packet  if there is a matching packet within up to 16 registered and received packets  it  is received       gt Send  lt  Receive Displays the packet send direction     gt   For send   lt   1  to  16   For receive  the received packet number is displayed in parentheses     Packet Name Displays the packet name     Packet Setting Displays the validity of variables in the packet elements and the variable setting state   If Variable Unset  Elements Unset  or Element Error  the protocol is not written to the CPU module   No Variable  When there is no variable in the elements  Variable Set  Only when all variables have been set  Variable Unset  When there is an unset variable  Elements Unset  When there are no elements in an editable protocol  Element Error  When elements do not satisfy requirements    6 PREDEFINED PROTOCOL SUPPORT FUNCTION 39  6 1 Data Communication    40    MAdding protocol  Add protocol     TZ   Edit   gt   Add Protocol     Adds new protocol     Selection of Protocol Type to Add    Type    Predefined Protocol Library   Reference        Select from Predefined Protocol Library   Please select manufacturer  model and protocol name from Protocol to    Add     Protocol to Add    General purpose protocol   SLMP Device Head        Type Select the type of protocol to be added    Predefined Protocol Library    User
97. e programmable controller due to   communication failure      Do not write any data into the  system area  or  write protect area  of the buffer memory in the SLMP  compatible device or intelligent function module  Also  do not output  ON  any  use prohibited  signals  among the signals which are output to the SLMP compatible device and intelligent function device   Executing data writing to the  system area  or  write protect area   or outputting  use prohibited   signals may cause malfunction of the programmable controller alarm      WIRING PRECAUTIONS    NWARNING      Make sure to cut off all phases of the power supply externally before attempting installation or wiring  work  Failure to do so may cause electric shock or damage to the product      Make sure to attach the terminal cover  provided as an accessory  before turning on the power or  initiating operation after installation or wiring work  Failure to do so may cause electric shock      WIRING PRECAUTIONS      CAUTION      Install module so that excessive force will not be applied to terminal blocks  power connectors  I O  connectors  communication connectors  or communication cables  Failure to do so may result in wire  damage breakage or PLC failure    e Do not bundle the power line  control line and communication cables together with or lay them close to  the main circuit  high voltage line  load line or power line  As a guideline  lay the power line  control  line and communication cables at least 100 mm  3 94 
98. e verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 7   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     SD10889    SD10890    SD10891    SD10892    SD10893    SD10894    SD10895    SD10896    SD10897    SD10898    SD10899    Connection No 8 received data  verification result  receive packet  No 8     Connection No 8 received data  verification result  receive packet  No 9     Connection No 8 received data  verification result  receive packet  No 10     Connection No 8 received data  verification result  receive packet  No 11     Connection No 8 received data  verification result  receive packet  No 12     Connection No 8 received data  verification result  receive packet    No 13     Connection No 8 received data  verification result  receive packet  No 14     Connection No 8 received data  verification result  receive packet  No 15     Connection No 8 received data  verification result  receive packet  No 16     Connection No 8 protocol  execution count    Connection No 8 protocol  cancellation specification    R  Read only  R W  Read Write    Stores the verification results of receive packet No 8   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 
99. ead   Batch       This command reads data from bit devices in units of 16 bits     This command reads data from word devices in units of 1 word       This command reads data from link direct devices in units of 1 bit      This command reads data from the buffer memory in intelligent  function modules in units of 1 bit      This command reads data from devices indirectly specified by  index registers in units of 1 bit       This command reads data from link direct devices in units of 1  word      This command reads data from the buffer memory in intelligent  function modules in units of 1 word      This command reads data from devices indirectly specified by    index registers in units of 1 word       This command reads data from link direct devices in units of 1 bit      This command reads data from the buffer memory in intelligent  function modules in units of 1 bit      This command reads data from devices indirectly specified by  index registers in units of 1 bit       This command reads data from link direct devices in units of 1  word      This command reads data from the buffer memory in intelligent  function modules in units of 1 word      This command reads data from devices indirectly specified by  index registers in units of 1 word     Device Write   Batch     0000H   This command writes data to bit devices in units of 16 bits       This command writes data to word devices in units of 1 word     0081H   This command writes data to the buffer memory in intelligent  f
100. eceive packet No 9   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 10   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 11   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 12   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 13   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 14   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 15   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 16   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the number
101. ected with TCP  run the program enclosed by the dotted line      It can be omitted when the information acquisition is not needed      7 SOCKET COMMUNICATION FUNCTION  7 1 Communication Using TCP    Precautions for Passive open communication    Configure an interlock circuit using the Open completion signal  SD10680 n  and Open request signal  SD10681 n  in the  program  The following chart shows on off timings of the Open completion signal and Open request signal     TCP disconnection completed    by the communication target       ON  Open completion signal  SD10680 n   OFF    Open request signal  SD10681 n   OFF        This device is       TCP connection completed  by the communication target    always ON        When a device establishes a connection by Passive open  the IP address and port number of the connected device can be  acquired using the SP SOCCINF instruction    On TCP  one connection is established with one target device  To communicate with multiple devices from one port number   prepare the same number of connections as the number of target devices  A connection that exceeds the preset number of  connections will be disconnected immediately    Do not accept a connection from a device until the CPU module is placed in the wait for open state  If a TCP connection  request is received before entering the wait for open state after completion of CPU startup  the request will be recognized  as an error  and a forced close message for the connection will be returned 
102. eed setting is stored   0000H  Automatic Negotiation  0002H  100Mbps Half Duplex    0003H  100Mbps Full Duplex  0004H  10Mbps Half Duplex  0005H  10Mbps Full Duplex    SD10084 MELSOFT connection TCP port   MELSOFT connection TCP port number is stored  R  number   SD10086 MELSOFT direct connection port   MELSOFT direct connection port number is stored  R  number   SD10130 to Error code Error codes detected by PLC are stored  R   SD10137    SD10270 Remote password information Locked status of the remote password for each connection  remote password locked status  bO  to  b7   Connection No  1 to No  8   Connection No  1 to 8  0  Unlocked status No remote password setting  1  Locked status       SD10271 Remote password information The locked status of the remote password of the system port   remote password locked status  b2   MELSOFT application communication port  TCP    System port   b3   Direct connection with MELSOFT  0  Unlocked status No remote password setting  1  Locked status    SD10280 Connection forced disabling Specify this to disable a connection forcibly by user program   Connection 1 to 8  R W  MELSOFT connection Direct connection    SD10320 to Unlock failure count Unlock failure counts are stored  R   SD10327  SD10320  to  SD10327   Connection No  1 to No  8     D10338 MELSOFT connection TCP port   Unlock failure counts of the MELSOFT connection  via hub  are stored  R  continuous unlock failure count    SD10340 Direct connection with MELSOFT   Unlock failure co
103. egistered is as follow      Protocols  64 maximum     Packets  128 maximum     Packet data area size  6144 bytes maximum   When the number of packets reaches the upper limit  protocols cannot be added even if the number of  protocols has not reached the upper limit    If the packet data area size reaches the upper limit  protocols and packets cannot be added even if the  number of protocols and packets has not reached the upper limit     Applicable connections    The connections Nos  1 to 8 can be used for communications using the communication protocol support function     6 PREDEFINED PROTOCOL SUPPORT FUNCTION    37    38    6 1 Data Communication    When the predefined protocol support function is used  data can be exchanged with the external device using the following    procedure     1     Dak WD    Select  create or edit the protocol with the predefined protocol support function  and write the protocol setting data    L  Page 38 Creating the protocol setting data     Set the module parameter       Page 43 Module parameter setting procedure    Write the parameters to the CPU module    Perform the open processing to establish a connection between the CPU module and external device   Execute the protocol with the dedicated instruction  SP ECPRTCL instruction      Close the connection when communication is finished     Point    The communication data code is binary code communication regardless of the selected settings     Creating the protocol setting data    Use the prede
104. eive packet  number 4    Collation match  Receive packet  number 5    Collation match  Receive packet  number 6    Collation match  Receive packet  number 7    Collation match  Receive packet  number 8       The number of protocols executed by the SP ECPRTCL instruction is stored  0 1to8  Any protocol where an error occurred is also included in the execution number  If    the setting of setting data or control data contains an error   0  is stored     System    The completion status is stored upon completion of the instruction    When two or more protocols are executed  the execution result of the protocol  executed last is stored      0  Normal completion     Other than 0  Error completion  error code        Execution protocol Specify the number of the protocol to be executed first  1 to 64 User  number 1   Execution protocol Specify the number of the protocol to be executed second  0  1 to 64   number 2   Execution protocol Specify the number of the protocol to be executed third  0  1 to 64   number 3   Execution protocol Specify the number of the protocol to be executed fourth  0  1 to 64   number 4   Execution protocol Specify the number of the protocol to be executed fifth  0  1 to 64   number 5    Execution protocol    Specify the number of the protocol to be executed sixth  0  1 to 64  Specify the number of the protocol to be executed seventh  0  1 to 64  Specify the number of the protocol to be executed eighth  0  1 to 64    If receiving is included in the communicati
105. ending data   Reads connection information  Page 90 Reading connection  information   Reads data from the socket communication receive data area  Page 92 Reading socket    e For configuration of data communication using the socket communication function  refer to L  Page 63  Communication Using TCP and      Page 70 Communication Using UDP    e If the instruction has a completion device  do not change any data  such as control data and request data   that are specified for the instruction until the execution of the instruction is completed      Do not execute any socket communication function instruction in an interrupt program      For error codes  refer to  lt   Page 111 Error Codes or LLIMELSEC iQ F FX5 User s Manual  Application            7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    Opening a connection       SPSOCOPEN                Establishes a connection           ENO  SP SOCOPEN EN UO0 s1 s2 d              SP SOCOPEN   enters O       Setingdala            llDescriptions  ranges  and data types        Uy  Dummy  Input the character string   UO     MERERI Character string ANYSTRING  SINGLE     s1    Connection number     number 1 to  108   16 bit unsigned binary       bit 16 bit unsigned binary       binary ANY16     s2  i o NM ME number of the device in which control data is       to Control data Word ANY16 ARRAY  stored    Page 78   Number of elements  10    d  Start number of the device which turns on for one ANYBIT ARRAY  scan 
106. ere the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 14   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 15   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 16   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the number of protocol executions in connection No 6   0  Protocol not executed  1 to 65535  Number of executions    Cancels the protocol executed in connection No 6   0  No cancellation instruction   1  Cancellation request  set by user    2  Cancellation completed  set by system     Stores the status of the protocol being executed at connection No 7   0  Unexecuted   1  Waiting for transmission   2  Sending   3  Waiting for data reception   4  Receiving   5  Execution completed    Stores the verification results of receive packet No 1   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 2   Element No  where the verification result did not match  bO to b7   The
107. es the verification results of receive packet No 14   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 14  The cause of mismatch  verification result code   b8 to b15   SD10836 Connection No 5 received data Stores the verification results of receive packet No 15   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 15  The cause of mismatch  verification result code   b8 to b15   SD10837 Connection No 5 received data Stores the verification results of receive packet No 16   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 16  The cause of mismatch  verification result code   b8 to b15   SD10838 Connection No 5 protocol Stores the number of protocol executions in connection No 5   execution count 0  Protocol not executed  1 to 65535  Number of executions  SD10839 Connection No 5 protocol Cancels the protocol executed in connection No 5   cancellation specification 0  No cancellation instruction  1  Cancellation request  set by user   2  Cancellation completed  set by system   SD10840 Connection No 6 protocol Stores the status of the protocol being executed at connection No 6   execution status 0  Unexecuted  1  Waiting for transmission  2  Sending  3  Waiting for data reception  4  Receiving  5  Execution completed  SD10842 Connection No 6 received data Stores the verification results of receive packet 
108. ess     Item List   Find Result   Restore the Default Settings       1  Set IP address of the CPU module     2  Set MELSOFT connections     TZ  Navigation window   Parameter      FXSUCPU     Module Parameter    Ethernet Port  gt  Basic Settings      External  Device Configuration     Detailed Setting      Ethernet Configuration  Built in Ethernet Port   screen    3  i Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting  Module List  Ethernet Selection   Find Module   M 4  gt              Bg SLMP Connection Module  tag UDP Connection Module   a Active Connection Module  Eg Unpassive Connection Module    Eg Fullpassive Connection Module     E Ethernet Device  COGNEX   Host Station         Connected Coun E  Ethernet Device  Panasonic  ti   Laser Displacement Sensor          MELSOFT    Connection  Outline     Module MELSOFT Connection Module a   Specification      Use when specify open method by                      Write the parameters set in the CPU module     X  Online   Write to PLC   After writing the parameters to the CPU module  power off and on or reset the CPU module to enable the parameters     4 CONNECTION WITH MELSOFT PRODUCT AND GOT  4 2 Connection via a hub          Engineering Tool Settings    In case of GX Works3  this is done using the  Specify Connection Destination Connection  screen     TZ  Online gt  Specify Connection Destination         v  xr            ee i dmn i e T o ml f 1  iis ection Destination Co actio
109. ete         10  Write the protocol setting data to the CPU module         Online   gt   Write to Module     Module Selection SEEN    Target Memory  ceu Built in Memory      Please save in the protocol setting file because the data to be  written to target memory does not include the following information      Non written Data in Target Memory    Packet Name   Protocol Detailed Setting Type  Version  Explanation  Packet Setting Configuration Element Name    oe      11  write the set parameters to the CPU module  Then reset the CPU module or power off and on the system     X  Online   gt   Write to PLC        6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 5 Example of Predefined Protocol Communications    llReceiving side  1  Setthe CPU module and add the module labels of the CPU module  The setting method of the CPU module and addition  method of the module label are the same as those of when setting the sending side     Page 50 Sending side     2  Setthe  Basic Settings  in the following   TZ  Navigation windowe  Parameter    FXSUCPU    Module Parameter    Ethernet Port      Basic Settings     etting Item List Setting Item    i Own Node Settings   E IF Address    Ei Basic Settings subnet Mask     n Own Node Settings    Default Gateway    External Device Configuration Communication Data Code Binary    H Application settings E External Device Configuration  External Device Configuration    Detailed Setting     Explanation    Set the IP address of the own node    Ensure that the own 
110. fication result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 4   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 5   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 6   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 7   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     SD10769    SD10770    SD10771    SD10772    SD10773    SD10774    SD10775    SD10776    SD10777    SD10778    SD10779    SD10780    SD10782    SD10783    SD10784    SD10785    SD10786    SD10787    SD10788    Connection No 2 received data  verification result  receive packet  No 8     Connection No 2 received data  verification result  receive packet  No 9     Connection No 2 received data  verification result  receive packet  No 10     Connection No 2 received data  verification result  receive packet  No 11     Connection No 2 received data  verification result  receive packet  No 12     Connection No 2 received data  verificati
111. fined protocol support function to create the protocol setting data     XX  Mool   gt   Predefined Protocol Support Function   Select the module for which to create the protocol setting data             Caution     The connection destination setting of predefined protocol  support function is synchronous only when the predefined  protocol support function starting  Unable to change  connection destination of predefined protocol support function  when change the connection destination setting in GX Works3  after starting the predefined protocol support function  Please  start the predefined protocol support function again if you  want to synchronize the connection destination        6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 1 Data Communication    MNewly creating the protocol setting data  Newly create the protocol setting data     XZ   File   gt   New   gt   Protocol Setting  screen    Edit Online Tool Debugging Support Function Window  ES Mest me        Protocol Manufacturer Model Protocol N ame Communication Type Packet Name Packet Setting  M     Receive            Protocol No  Displays the protocol number used with the dedicated instruction    Manufacturer Displays the name of the manufacturer of the device for which the protocol is being set   Model Displays the model of the protocol to be set    Protocol Name Displays the name of the protocol to be set    Communication Type Displays the communication type of the protocol to be set     Send only  Sends one send packet onc
112. gth storage area          1           Send  packet             B Data storage area E    Data storage area          Receive  packet         ia Data storage area N    For send packet  Send data is stored by the program  For receive packet  Receive data is stored by the CPU module   1 The data length unit is byte fixed    6 PREDEFINED PROTOCOL SUPPORT FUNCTION 4  6 3 Packet Elements T    Poin tr    When  Fixed Length Variable Length  is  Variable Length  and the configuration is set as follows  an error  occurs      An element other than static data is placed behind a non conversion variable element when non conversion  variable is out of the length calculating range or when there is no length element  except for when  nonconversion variable is placed at the end of the packet elements       Multiple non conversion variable elements are placed in the length calculating range  while a length element  is not placed      A non conversion variable element is placed before a length element in the length calculating range     Non verified reception                   Element Setting   Non verified Reception Receive     Element Name    Data Length       Setting Range  0 to 2046     0  Variable     omes      Use this when receive data include unnecessary data   If the receive packet contains non verified reception  CPU module skims over the specified number of characters        Multiple non verified reception elements can be set in one packet   The following table lists the items     Item
113. has been carefully checked and is believed to be accurate  however  if you notice a doubtful  point  an error  etc   please contact the nearest Mitsubishi Electric representative  When doing so  please provide the  manual number given at the end of this manual        CONTENTS       SAFETY PRECAUTHON G x a 45 4025 eas ond a Eod 3 3608 a ee ees oe ee ee ee ee a eee a 1  INTRODUCTION aca Ganson devncacee sate ee ep Sah ow ye re Gee ne AO we EIA oe ers Bw Ocha ae ae a 3  RELEVANT MANUALS   2 4c sees bce 4 de eed eae Ow dor EORR be ew Pact LACE OR ACCES EORNOE on Bed ew eg d 6  TERM    T                                        PTMMmT 6  CHAPTER1 OUTLINE 9  CHAPTER2 SPECIFICATIONS 10  2 1 Communication Specifications  amp  isi  saaana anana eee baud bawhee eee heen y   DRCACRECSROROE E E S CR 10  2 2 Connection specifications     2 cece kaka seed ous d bao RP RLUN REOR AR hw ho Eee b ee bee 11  CHAPTER 3 LIST OF FUNCTIONS 12  CHAPTER 4 CONNECTION WITH MELSOFT PRODUCT AND GOT 14  4 1 Direct Connection with Engineering Tool          0 00  cee nn 14   srudmissm   P                                                    15   iecit  MERERREEREETRERTOROQUOLTTRTOOEOTIO OTT TTD 16  4 2 Connection vid a NUD 222322224044 iE ROS Rom Eos ara EROR x icis ire ERU ACE o ERR E dep Rx PR 17   Setting the CPU Module      0        ehh hrs 18   Engineering Tool Settings         0 0    eee hh rns 19   Searching CPU Modules on Network            0    0c cc ehh ns 20   Communication via Router        saison s
114. he contents of the errors  take proper measures to eliminate the error     Check by display LEDs on the front of the CPU module    You can check whether or not errors currently exist on the CPU module  built in Ethernet  by the status of the display LEDs     Check using GX Works3  You can check error code corresponding to errors currently occurring  status of the built in Ethernet side  and conduct tests    using GX Works3     llEthernet diagnostics   gt  Page 106 Ethernet diagnostics   e Checking error contents by error code      Page 111 Error codes of the Ethernet communication     Poin tr    If a line error  etc   occurs when connecting with devices of multiple manufacturers  determine the location of  the error by using a line analyzer  etc     10 TROUBLESHOOTING  104    10 1 Checking Errors by LEDs    This section contains an explanation of errors that can be checked by LEDs on the front of the CPU module        Error display check    The following can be checked by LEDs on the front of the CPU module    lt CPU module LED gt     LED name Check condition Cause action    PWR Does not turn on when power   Power source may not be correctly connected to the CPU module  Check the connection status   of CPU module is turned on If there is nothing wrong with connection  the hardware may be faulty  For repair  contact your local  Mitsubishi Electric representative           ERR Turns on when power of CPU   In case of built in Ethernet parameter setting error    module is turned 
115. he verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 2   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 3   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 4   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 5   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 6   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 7   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     APPENDIX  Appendix 1 List of Special Device Applications and Assignments       123       SD10829 Connection No 5 received data Stores the verification results of receive packet No 8   verification result  receive packet   Element No  where the verificat
116. ication  of the command  format such as command type   device specification  address  specification correct                  Modify the command format        Is there an open error  YES _   Check the error code  cause of error  initial error in each of each channel and rectify   channel     It may be a hardware error of CPU  module  built in Ethernet   Please    compile detailed contents of the  problem  and  consult the nearest  branch office or the agency        10 TROUBLESHOOTING  116    10 4 Troubleshooting Flowchart    APPENDIX    Appendix 1 List of Special Device Applications and  Assignments    For special relays and special registers other than described below  refer to LEIMELSEC iQ F FX5 User s Manual   Application                     Special relays    Device No     SM8492 IP address storage area write  request    SM8493 IP address storage area write   Turns ON when writing to IP address storage area completes or fails   completed   Turns OFF when IP address storage area write request  SM8492  turns from ON to    ats  Writes IP address setting stored in SD8492 to SD8497 to IP address storage area when R W  this device turns from OFF to ON   R       OFF     SM8494 IP address storage area write   Turns ON when writing to IP address storage area fails   error   Turns ON if there is a problem in contents of IP address storage area  when PLC power  supply is turned from OFF to ON   e Turns OFF when IP address storage area write request  SM8492  turns from ON to  OFF     S
117. ices for which data can be read  Correct number of word devices that can read or write all at once  and   written all at once is outside the allowable range  send to CPU module again    C053H Maximum number of bit devices for which data can be random Correct number of bit devices that can be random read or written all at   read written all at once is outside the allowable range  once  and send to CPU module again    C054H Maximum number of word devices for which data can be random   Correct number of word devices that can be random read or written all   read written all at once is outside the allowable range  at once  and send to CPU module again    C056H Read or write request exceeds maximum address  Correct starting address or number of read and write points  and send  to CPU module again   Be careful not to exceed the maximum  address     C059H   Error in command or subcommand specification    Reconsider request contents      There is a command or subcommand that cannot be used by e Send command or subcommand that can be used by the CPU  the CPU module  module    CO5BH CPU module cannot read or write from to specified device  Reconsider device to read or write    C05CH Error in request contents   Reading or writing by bit unit for word   Correct request content  and send to CPU module again    device  etc    Subcommand correction  etc     CO5FH There is a request that cannot be executed for the target CPU   Correct network No   request station No   request destination   mo
118. ined protocol  support  Number of connections Total of 8 for socket communication  MELSOFT connection  SLMP  and Predefined  protocol support    Up to 8 external devices can access one CPU module at the same time    Hub Hubs with 100BASE TX or 10BASE T ports   can be used   Connection cable   100BASE TX Ethernet cable of category 5 or higher  STP cable     10BASE T Ethernet cable of category 3 or higher  STP cable      1 Astraight cable can be used  If a personal computer or GOT and CPU module are directly connected a cross cable can be used    2 This number applies when a repeater hub is used  When using a switching hub  check the number of cascaded stages with the    manufacturer of the hub to be used    3 The ports must comply with the IEEE802 3 100BASE TX or IEEE802 3 10BASE T standards     Point      When connected to a hub  the CPU module determines the cable used  100BASE TX or 10BASE T  and    the communication mode  full duplex or half duplex  according to the hub  Set the hub into the half duplex  mode if the hub that does not have the auto negotiation function      If broadcast storm occurs in the network  scan time may be increased    e If the destination device of the CPU module does not respond due to power off or other reasons  Ethernet  communication of the CPU module may get delayed by up to 500 ms     Precautions    The operation of the following connections is not guaranteed  Check the operation before using the module      Connection using internet  genera
119. ion No 4   execution status 0  Unexecuted  1  Waiting for transmission  2  Sending  3  Waiting for data reception  4  Receiving  5  Execution completed  SD10802 Connection No 4 received data Stores the verification results of receive packet No 1   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 1  The cause of mismatch  verification result code   b8 to b15   SD10803 Connection No 4 received data Stores the verification results of receive packet No 2   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 2  The cause of mismatch  verification result code   b8 to b15   SD10804 Connection No 4 received data Stores the verification results of receive packet No 3   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 3  The cause of mismatch  verification result code   b8 to b15   SD10805 Connection No 4 received data Stores the verification results of receive packet No 4   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 4  The cause of mismatch  verification result code   b8 to b15   SD10806 Connection No 4 received data Stores the verification results of receive packet No 5   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 5  The cause of mismatch  verification result code   b8 to b15   SD
120. ion compatible function     Reading received data  Read received data when the Receive state signal  SD10682 n  has turned on   Communication via the built in Ethernet port may be affected if a considerable amount of received data has not been read for    a long time     Conditions for closing  In TCP communication  even if no close request is sent from the connected device  the Open completion signal will turn off to  close the connection in the following cases      Alive check is timed out      Forced close is received from the connected device     Elements of TCP connection  The following four elements control TCP connections  and only one connection can be established with a unique setting for  these elements  To use multiple TCP connections at the same time  at least one of the four elements must be different      P address of the CPU module     Port number of the CPU module      P address of the target device     Port number of the target device    Reestablishment of the same connection  Allow 500 ms or more before reestablishing a connection of the same target IP address  the same host station port number     and the same target port number after closing it   If the reestablishment is time critical  it is recommended to change the host station port number on the Active open side     7 SOCKET COMMUNICATION FUNCTION  7 3 Precautions    Checking receive data length   Since no delimiter is provided for TCP communication data  separate data blocks that are sent continuously
121. ion of the external device or switching hub      Since there may be congestion of packets on the line  send data  after a certain period of time      Check if the connection cable is disconnected      Check that there is no connection failure with the switching hub      Execute the communication status test  and if the test was  completed with an error  take the corrective action      Execute the module communication test  and check that there is no  failure in the module     C029H   Description of control data is not correct    Correct the descriptions of the control data     Open instruction was executed through open settings parameter     Set the open settings parameters  Or  execute the OPEN  even though parameters are not set  instruction through control data     CODEH Socket communication receive message has failed    Check the operation of the external device or switching hub      Since there may be congestion of packets on the line  send data  after a certain period of time      Check if the connection cable is disconnected      Check that there is no connection failure with the switching hub      Execute the communication status test  and if the test was  completed with an error  take the corrective action      Execute the module communication test  and check that there is no  failure in the module        C1AFH The specified port number is incorrect  Correct the specified port number     C1BOH The open processing of the specified connection has been already     Do no
122. ion result did not match  bO to b7   No 8  The cause of mismatch  verification result code   b8 to b15   SD10830 Connection No 5 received data Stores the verification results of receive packet No 9   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 9  The cause of mismatch  verification result code   b8 to b15   SD10831 Connection No 5 received data Stores the verification results of receive packet No 10   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 10  The cause of mismatch  verification result code   b8 to b15   SD10832 Connection No 5 received data Stores the verification results of receive packet No 11   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 11  The cause of mismatch  verification result code   b8 to b15   SD10833 Connection No 5 received data Stores the verification results of receive packet No 12   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 12  The cause of mismatch  verification result code   b8 to b15   SD10834 Connection No 5 received data Stores the verification results of receive packet No 13   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 13  The cause of mismatch  verification result code   b8 to b15   SD10835 Connection No 5 received data Stor
123. irect Link input Bit X  9CH  device    Xt   9C00H   Link output Y 9DH   Y      9DOOH   Link relay B  AOH   B      A000H   Link special relay SB A1H   SB     A100H   Link register Word W  B4H   W      B400H   Link special register S    S      B500H     Module access Link register Word W  B4H  device    W      B400H   Link special register S  B5H   S      B500H   Module access device G  ABH   G      ABOOH      1  ASCII code   If the device code is less than the specified character number  add      ASCII code  2AH  or a space  ASCII code  20H  after the device  code    Binary code   When  Device code  is less than the size specified add  OOH  to the end of the device code    2 O  An FX5 CPU device exists       No FX5 CPU device   3  Device memory extension specification  for sub commands must be turned ON  1      Decimal          Index register Decimal   O  Decimal   O    File register Decimal   O    UJ  e  I    Decimal          Hexade  cimal    Hexade  cimal    Hexade  cimal    Hexade  cimal    Hexade  cimal    UJ  C1  I    Hexade  cimal    Hexade  cimal    Hexade  cimal    Decimal   O       5 SLMP FUNCTION  5 3 SLMP Commands    5 4 Precautions    Checking communication status based on LED display  Check the status of the  SD RD  LED display on the CPU module s built in Ethernet port      SD RD  LED indicator Operation status   status   Flashing Data is being sent or received    Off Data is not being sent nor received     The LED flashes brightly when performing SLMP  3E frame 
124. ixed Length 1B ute Lower Upper Bute Ma Swap   L    NEU Sena A  Variable Requested module 1 0 No 03 03   Fixed Length Byte Lower Upper Butero Swap     7 Data Earle expansion __ future expansion die ERR                           1Bute    T    paeba     IReguestdatalengh     data lenath Object elementS A4 HEX Reverse 2Byte                 ect element3 1 4H EX  Heverse 2Bute    Maon conversian  Variable DC   lt     timer Du  UU D4  Figed Length AB yter Lower Upper Buteo Swap    10_1 tae Date_ Command DOB  o O  NOOO 2Byte    B RE hn ne  Variable Head device No D5 D6 Fired Length SB yter Lower Upper Butero Swap  L  eae    13 Variable Device code OF DF Fined Length 1B yte Lower Upper Bute MHa Swap    Non conversian    Change Type   Add New   Copy   Paste   Delete           Normal response    Protocol Name    0401  Read  word   Packet Name   Normal response    E cient Element Type Element Marne Element Setting    D400 2Bute    D EI  ascensu   Variable Seral Mo 09 09   Fixed Length  Byte Lower Upper Butero Swap     Fixed data    iC Byte        000000    L    BE s Nap     Variable Network Ma 010 0101 Fised Length    1B yte Lower Upper BytesNo Swap    Mon eonversian  Variable Station Ma  011 011  Fisted Length  1B yte Lower Upper BytesNo Swap    I    ag OT Sear  Variable Requested module 1 0 Mo 012 012   Fired Lenath zBute Lawer Llpper Byte Mo Swap       o  StaicData  For future expansion   DO 1 Byte  a  Leth X   Response data length Object element3 10 HEx Heverse 7B pte  39 Static Data
125. k the IP address parameters for the CPU  modules  Starting communication with the IP address duplicated will cause a communication error      Appropriate CPU modules may not be found if the service processing load is heavy  In such case  increase the response  waiting time value in the  Search for the FX5CPU on network  screen  or change the service processing counts in the  service processing settings of the CPU parameters     20 4 CONNECTION WITH MELSOFT PRODUCT AND GOT  4 2 Connection via a hub      By selecting  Do Not Respond  in  Do Not Respond to CPU Module Search  in  Application Settings  on  Module  Parameter Ethernet Port  screen  the CPU module search function can be disabled  making the system not respond to  search request on the network     Setting Item List Setting Item     Input the Setting Item to Search EJ   Saas   E Disable Direct Connection with MELSOFT    Disable Direct Connection with MELSOFT Enable  an Do Mat Respond to GPU Module Search    E ha Basic Settings    Ha Not fespond te CPU Module Sear  Ec    EE Bpplicatian Settings  Explanation    Select whether ta respond to the search from the other nodes performed by  Searching GPL  Modules on the Network    in engineering tool     Item List   Find Result Restore the Default Settings          4 CONNECTION WITH MELSOFT PRODUCT AND GOT  4 2 Connection via a hub 21    Communication via Router    Access via routers from built in Ethernet port is available in an environment such as a corporate LAN  a    Route
126. l Name Method Protocol Ea IP Address   Port   MAC E IP Ta Default   Confirmation  A No  Address Name  Address  No    Mask   Gateway I iil MELSOFT Connection Module      Host Station 192  168 3 39 tay SLMP Connection Module    Y       1 sume Connection Module  SLMP TCP 192 168 3 39 IE KeepAlive WE UDP Connection Module z           a Active Connection Module          m Unpassive Connection Module     Eg Fulpassive Connection Module    E  Ethernet Device  COGNEX           Host Station    Connected Coun Vision System  t1 SLMP E Ethernet Device  Panasonic  Laser Displacement Sensor       SLMP Conn  ection Mod  ule    4          Output x          3  Drag and drop  SLMP Connection Module  under  Module List  to the left side of the screen  Select protocol  TCP or  UDP  that matches the other device in  Protocol   Set the own station port number  setting range  1025 to 4999  5010 to  65534  for the  Port No    Do not specify 5000 to 5009 because these ports are used by the system        When writing during RUN is not allowed  if the CPU module receives a request to write data from the external  device  it returns a NAK message without writing the data     28 5 SLMP FUNCTION  5 2 Setting Method    5 3 SLMP Commands       For details on the SLMP commands  refer to the LLIMELSEC iQ F FX5 User s Manual  SLMP      Command list       The following commands can be executed with the SLMP function        3E frames    0401H 0001H  0000H  0081H  0080H  0083H  0082H    1401H 0001H       Device R
127. l computer or GOT  enabling the  CPU module operation monitoring  data analysis  and production control     Predefined protocol support    Data can be exchanged between the external device  Such as measuring instrument and bar code reader  and the CPU  module following the protocol of the device     Socket communication    The socket communication function allows data communication with the external devices on Ethernet by TCP or UDP using  the socket communication instructions     Remote password    Unauthorized access from the outside can be prevented and the security can be enhanced by setting the remote password     IP Address Change Function    This function is provided to change the IP address of the CPU module by setting the desired IP address to special registers  from a peripheral unit or another unit and turning ON a special relay   This function changes the IP address of the CPU module even if no settings are made in GX Works3 PLC parameters     1 OUTLINE  9    10    2 SPECIFICATIONS       2 1   Communication Specifications    The following describes the communication specifications of the built in Ethernet port of the CPU module     Item Specification  Transmission Data transfer speed 100 10 Mbps  Transmission method Base band  Maximum segment length  Maximum 100 m  distance between hub and node   Number of cascade   100BASE TX 2 levels maximum    FOUNSSHONS 1OBASE T 4 levels maximum    Protocol type MELSOFT connection  SLMP  3E frame   Socket communication  Predef
128. l public line   Internet access service offered by an Internet service provider or a  telecommunications carrier      Connection using firewall device s      Connection using broadband router s      Connection using wireless LAN    Remark    TCP and UDP are defined as follows    e TCP  Transmission Control Protocol   In communications among programmable controllers and networked devices  this  protocol establishes a connection between port numbers of the two devices to perform reliable data communications      UDP  User Datagram Protocol   This is a connectionless protocol and thereby its speed is faster than that of TCP  but less  reliable   Data may be lost or not be received in correct order   Note that simultaneous broadcast is available    Select an appropriate protocol  considering the specifications of the external device and the characteristics of the above   protocols     2 SPECIFICATIONS  2 1 Communication Specifications    2 2 Connection specifications    Ethernet cable    Use one of the cables listed below for the Ethernet cable  100BASE TX 10BASE T cable  to connect to the built in Ethernet  port        ee       When using 100BASE TX Ethernet cable  Category 5 or higher  STP cable     When using 10BASE T Ethernet cable  Category 3 or higher  STP cable        1 Shielded twisted pair cable   A straight cable can be used  A cross cable can also be used when using direct connection between the personal computer    and the built in Ethernet     Ethernet cable connecti
129. le     Which side will open a connection  the target device or CPU module   Active open or Passive open     TCP connection    There are two types of open operation for TCP connection  Active open and Passive open    Firstly  the device waiting for a TCP connection performs a Passive open at the specified port    The other device performs an Active open by specifying the port number of the device which is waiting in Passive open state   Through the above process  a TCP connection is established and communication is available     MActive open  Active open is a TCP connection method  which actively opens a connection to the device that is passively waiting for a TCP    connection     llPassive open  The following two types of Passive open methods are available for TCP connection     TCP connection   Description       method  Unpassive Allows a connection regardless of the IP address and port number of the connected device   The IP address and port number of the  device connected can be acquired using the SP SOCCINF instruction    Fullpassive Allows a connection to the device only when the specified IP address and port number are met  A connection made by another device  that does not have the specified IP address and port number is automatically disconnected before communication   Poi  oint    The expressions of Active and Passive opens may vary according to the device     Active open  TCP connection initiating device  client  connecting side  etc     Passive open  TCP connectio
130. le Seral Mo Variable unset errar Fised Length 26 vte Lower Upper Byte Ma Swap    3   StwicDaa  Fined data     D00002Bwte                  0      Lh REM ua a          4 Variable Network Ma  Variable unset errar Fixed Length 1 Bute Lower Upper ButeNo Swap    Man canversian  Variable Station Ma  Variable unset errr Fi  ed Length 1Bute Lower   Upper Egte Mo Swap    LS a Lom Om eR Eee  Variable Requested module 1 0 No Variable unset errar Fixed Length  6 vuke Lower Upper Byte Ma Swap      StswicDaa Forfuture expansion  000Byt  O O20202 OSO  fpem data lenath Object element3 14  HEX  Heverse   Byte    Mon conversian  Variable Monitoring timer Variable unset errar Fised Length 2Bute   Lower Upper ButesNo Swap    0104 26 ute  OO00 2Byte    n cE uus PP ere  12 Variable Head device Ma  Variable unset errar Fised Length 3B vte Lower Upper Byte Ma Swap   Mon eonversian   Variable Device code Variable unset ermr Fised Length 1 Bute Lower Upper Bute lMo Swap    Non conversian    Change Type   Add New   Copy   Paste   Delete         The above window opens when  Predefined Protocol Library  is selected on the  Add Protocol  window    When  Add New  or  User Protocol Library  has been selected  configure the packets with the  Change Type  button and  Add  New  button    For details on the packet elements  refer to the following    L  Page 44 Packet Elements    MWriting the protocol setting data  Write the protocol setting data to the CPU module   XX  Online   gt   Write to Module     Module Se
131. lection BEEN    Target Memory CPU Built in Memory    Please save in the protocol setting file because the data to be  written to target memory does not include the following information      Non written Data in Target Memory    Manufacturer   Packet Name   Protocol Detailed Setting Type  Version  Explanation  Packet Setting Configuration Element Name    ea      Select the module and memory into which the protocol data is to be written  and execute write     The protocol setting data is written into the module extension parameters     6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 1 Data Communication    Poin tr    The following data is not written as the protocol setting data so it will not be displayed even when read     However  when the protocol is selected from the predefined protocol library  the following can be displayed   e Manufacturer      Packet name    Type  version  and explanation in the protocol detailed setting    Element name in packet settings    When the predefined protocol settings are written into multiple target memories  the following operation will take place   When written into both the CPU built in memory and SD memory card    Operation follows settings in  Memory Card Parameter     The predefined protocol settings written in the SD memory card can be transferred to the CPU built in memory by using boot  operation    For details on boot operation  refer to the following    LAMELSEC iQ F FX5 User s Manual  Application           Module parameter setting pro
132. lowing table lists the items     Item Description  Element Name Set the element name   Fixed Length  Fixed Length    Variable Length Variable Length    The data whose length is fixed is sent and received     When sending  The data length is specified at the time of the protocol execution and the data is sent   When receiving  The data whose length is variable is received     Data Length  Set the data length of the send receive data   Maximum Data  For a variable length  set the maximum data length that can be specified for the data length storage area    Length The range is 1 to 2046     Unit of Stored Data   Lower byte   Upper byte    Lower Bytes Only    Byte Swap Disable  Lower   gt  Upper      Enable  Upper   gt  Lower        When sending  Each one word  2 bytes  data in the data storage area is sent in the order of the lower  byte to the upper byte    When receiving  The receive data is stored to the data storage area in the order of the lower byte to the  upper byte     When sending  Each lower byte data in the data storage area is sent  The CPU module ignores the  upper byte data    When receiving  The receive data is stored to each lower byte in the data storage area  The CPU  module stores OOH in the upper byte     When sending  When  Enable  Upper   gt  Lower   is selected  data in the upper byte and lower byte are  swapped by one word  2 bytes  and sent  When  Unit of Stored Data  is  Lower Byte   Upper Byte  and   Data Length  is an odd number of bytes  the upper b
133. lt  receive packet  No 16     Connection No 4 protocol  execution count    Connection No 4 protocol    cancellation specification    Connection No 5 protocol  execution status    Connection No 5 received data  verification result  receive packet  No 1     Connection No 5 received data  verification result  receive packet  No 2     Connection No 5 received data  verification result  receive packet  No 3     Connection No 5 received data  verification result  receive packet  No 4     Connection No 5 received data  verification result  receive packet  No 5     Connection No 5 received data  verification result  receive packet  No 6     Connection No 5 received data  verification result  receive packet  No 7        Stores the verification results of receive packet No 8   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 9   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 10   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 11   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verificati
134. module  it is necessary to turn OFF and ON the power or  perform system reset of the CPU module     IP address storage area write procedure    The figure below shows the procedure to write data to the IP address storage area and change the IP address of the CPU  module     Write operation   Operations   1  Store the value to be changed in SD8492 to SD8497  IP address setting or other    2  Turn off and on SM8492  IP address storage area write request      3  Check the write results with the following special relays and special registers     4  When the write is completed normally  power off and on or reset the CPU module     5  Ifthe IP address stored in the IP address storage area  CPU module internal FRAM  is a valid value  the stored IP  address is set as the CPU module s IP address     6  The IP address or other setting of the CPU module can be checked with the following special register     Device No  Name Description   SD10050  SD10051 The IP address currently set in the CPU module is stored    SD10060  SD10061 The subnet mask currently set in the CPU module is stored    SD10064  SD10065 The default gateway IP address currently set in the CPU module is stored     WError code at error occurrence  If the data is not written correctly into the IP address storage area  CPU module internal FRAM   the error code is stored in IP  address storage area write error code  SD8498      Value of SD8498 Error details and causes Action    1920H IP address setting or other  SD8492 to SD
135. mpletion device   d  0 and  d  1    e Completion device  d  0  Turns on in the END processing of a scan after completion of the SP  SOCCLOSE instruction  and  turns off in the next END processing    e Completion device  d   1  Turns on or off according to the status at the time of completion of the SP  SOCCLOSE instruction     When completed Remains off   When failed Turns on in the END processing of a scan after completion of the SP  SOCCLOSE instruction  and turns off in the next END  processing     END processing END processing END processing    Program              3            SP SOCCLOSE instruction    SP SOCCLOSE instruction              Completion device  d  0  ON When failed       Completion device  d  1    z Connection J  closed        Operationerror               3405H The connection number specified by  s1  is other than 1 to 8    2820H The device number specified by  s2  or  d  is outside the range of the number of device points   2822H Device that cannot be specified is specified    3582H When an instruction which cannot be used in interruption routine program is used        Do not use execute the SP SOCCLOSE instruction for Passive open connection  Doing so will turn off the  Open completion signal and Open request signal of the connection and cause close processing  which  disables data transfer     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    OB m    When M2000 is turned on  or when connection No 1 is disconnected from ta
136. ms lock processing     To prevent unauthorized access using the remote password setting  it is recommended to set all connection protocols to TCP    IP and set the parameter to disable direct connection     When a TCP IP connection is closed before lock processing    The CPU module automatically performs lock processing    Further  when protocol is set to TCP  connection is verified by KeepAlive   Response to KeepAlive ACK message    An alive check message is sent 5 seconds after reception of the last message from the device with which communication is  being done to check if the device returns a response or not  If no response is received  the alive check message will be resent  at intervals of 5 seconds  When no response is received for 45 seconds  the connected device is regarded as non existent  and the connection is disconnected    Therefore  the lock process is automatically executed when the connection is cut     Valid range of remote password    The remote password is valid only for accessing the module  communication port  for which the parameter is set   In case of a system configuration that uses multiple modules  set a remote password for each module  communication ports      8 REMOTE PASSWORD  8 3 Precautions 97    8 4 Detection of Unauthorized Access and Actions    When the password mismatch count reaches a fixed count  upper limit  in the unlock process of remote password  access is  locked out  If this occurs  unauthorized access from outside the system can be
137. n result code   b8 to b15     Stores the verification results of receive packet No 11   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 12   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 13   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 14   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 15   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 16   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the number of protocol executions in connection No 2   0  Protocol not executed  1 to 65535  Number of executions    Cancels the protocol executed in connection No 2   0  No cancellation instruction   1  Cancellation request  set by user    2  Cancellation completed  set by system     Stores the status of the protocol bei
138. n waiting device  server  listening side  etc     Program example for Active open    The following shows the communication flow of an Active open              Specifies the port number of the communication target device that is  waiting for TCP connection and opens a connection by Active open    Open processing   SP SOCOPEN instruction    Was data transfer YES  Completed or disconnected by the communication target     completed     Close processing     Send by SP SOCSND SP SOCCLOSE instruction    instruction or receive by    SP SOCROV instruction      SOCKET COMMUNICATION FUNCTION  7 1 Communication Using TCP 63    64    Parameter setting  The following parameters are set for the sample program     TZ  Navigation window gt  Parameter  gt  FXSUCPU  gt  Module Parameter  gt  Ethernet Port  gt  Basic Settings  gt   External  Device Configuration  gt  Detailed Setting  gt  Ethernet Configuration  Built in Ethernet Port   screen    vt    t Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting    Ethernet Selection   Find Module   M31    n EH qn    EJ Ethernet Device  General    ust  MELSOFT Connection Module    Bg SLMP Connection Module  tag UDP Connection Module   4 Active Connection Module  Eg Unpassive Connection Module    EQ Fullpassive Connection Module            Host Station  Connected Coun    Active Con    ion   iia ll Mo Use when specify open method by TCP    Active          e Drag and drop the  Active Connection Module  from
139. ng executed at connection No 3   0  Unexecuted   1  Waiting for transmission   2  Sending   3  Waiting for data reception   4  Receiving   5  Execution completed    Stores the verification results of receive packet No 1   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 2   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 3   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 4   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 5   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 6   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 7   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     APPENDIX  Ap
140. ng socket communication receive data          Reads data from the socket communication receive data area     ENO  S SOCRDATA EN UO0 s1 s2 n d    ENO  SP SOCRDATA EN UO0 s1 s2 n d           S SOCRDATA    SP SOCRDATA  enters LI         Setting data            WDescriptions  ranges  and data types     Uy  Dummy  Input the character string   U0     COMER Character string ANYSTRING SINGLE   s1  Connection No      No  16 bit unsigned binary ANY16     s2  EU E number of the device in which control data is   Refer to Control data Word ANY16_ARRAY   stored    Page 92   Number of elements  2    d  Start number of the device where read data is a  can ANY 16   stored     n  Number of read data  1 to 1024 words  1 to 1024 16 bit signed binary ANY 16     1 In the case of the ST language and the FBD LD language  U displays as UO           Applicable devices       C a a a a ae a  ee ec  BR e ee e pee e eee uec eem  p ce e ee um lI xes e g  Bg gj m ge rg ri  Bom ime eee es    Control data       Sema       mL    Completion status Completion status is stored  0000H  Completed        Other than 0000H  Failed  Error code   Refer to k  Page 111 Error Codes     1 The  Set by  column indicates the following   System  The CPU module stores the execution result of the S P  SOCRDATA instruction     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    This instruction reads the data of the amount specified for n from the socket communication receive data area of connection 
141. node and the external device ta be communicated with have the same class and  subnet address  IP address has been set in the range of class A B C   It IP address ts not set  the module operates with following IP address    192 168 3260    Setting range      Empty  no setting      0 0 0 1 to 223 255 255 254 Cin decimal       Hem List   Find Result Restore the Default Settings       3  Set the external device configuration in the following     TZ  Navigation window gt  Parameter  gt  FXSUCPU  gt  Module Parameter  gt  Ethernet Port  gt  Basic Settings  gt   External  Device Configuration        5    t Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting          He  MELSOFT Connection Module    tag SLMP Connection Module  192 168 3 250 tag UDP Connection Module   a Active Connection Module   45 Unpassive Connection Module   ES Fullpassive Connection Module  Host Station E Ethernet Device  COGNEX    raini Coun COGNEX Vision System       SLMP Conn  ection Mod  ule                4  write the set parameters to the CPU module  Then reset the CPU module or power off and on the system     YZ   Online   gt   Write to PLC     6 PREDEFINED PROTOCOL SUPPORT FUNCTION  6 5 Example of Predefined Protocol Communications 99    96    6 6 Predefined Protocol Support Function Instruction    Executing the registered protocols        This instruction executes the communication protocol registered using the engineering tool     ENO  SP_ECPRTCL EN U0 s
142. nse is returned from the other end of a TCP connection  the ACK will be resent six times  starting in 0 3  seconds after the first transmission  and then 0 6  1 2  2 4  4 8  and 9 6 seconds  When no TCP ACK response is returned  within 19 2 seconds after the last retransmission  the device is regarded as faulty and the connection is disconnected   As a  result  the connection is disconnected in total of 38 1 seconds      4 CONNECTION WITH MELSOFT PRODUCT AND GOT 2  4 2 Connection via a hub 3    TCP MELSOFT connection    In case of TCP communication with multiple MELSOFT devices  GX Works3  etc    set the same number of MELSOFT  devices in the unit parameters     CPU module            es   eer    L  OO000 0000 0000  0000 0000 0000                                                                                                                                                                                                             MELSOFT device              d Buffer PLC Sensor  Device    Fixe       Existence   Protocol   Send Receive Port  MAC   Host IP   Port  Subnet  Default    Method Adi Confirmation  Setting IP Address No    Address   Name   Address No    Mask  Gateway    Set the same number  of devices as  MELSOFT devices       EE  MELSOFT Connection Module    E   SLMP Connection Module  fag UDP Connection Module    Aa Active Connection Module        Eg Unpassive Connection Module    ES Fullpassive Connection Module            a  e    sissa             77        MELSOFT 
143. number of continuous failure of remote password unlock     Click the  Clear Latest Error Code  button to clear all the errors displayed in  Latest Error Code  of each connection     10 TROUBLESHOOTING  10 2 Checking Errors by GX Works3    107          us of Ea h Protocol    The total number of packets sent received by each protocol of the selected CPU module can be checked     Target Module Specification Change IP Address Display Change Port No  Display      CPU M   8  DEC HEX DEC     HEX    Status of Each Connection Status of Each Protocol   Connection Status     IP Packet  Total Number of Receives 1470    Total Number of Sends   1463  Total Number of Sum Check Error Cancels        Total Number of Echo Request Receives  Total Number of Echo Reply Sends  Total Number of Echo Request Sends    Total Number of Echo Reply Receives          The following table lists the displayed items in  Status of Each Protocol  tab        Total Number of Receives 0 to 4294967295  Cancels   Total Number of Echo Request 0 to 4294967295  Receives   Total Number of Echo Reply Sends 0 to 4294967295  Total Number of Echo Request Sends 0 to 4294967295  Total Number of Echo Reply Receives 0 to 4294967295    1 10 TROUBLESHOOTING  08 10 2 Checking Errors by GX Works3             The communication status of the CPU module     Target Module Specification      CPU M     Status of Each Connection   Status of Each Protocol Connection Status         Communication Status  Full Duplex Half Duplex   Full Duplex  
144. ock  output control may be disabled  External circuits  and mechanisms should be designed to ensure safe machine operation in such a case      Construct an interlock circuit in the program so that the whole system always operates on the safe  side before executing the control  for data change  of the PLC in operation  Read the manual  thoroughly and ensure complete safety before executing other controls  for program change   parameter change  forcible output and operation status change  of the PLC in operation  Otherwise   the machine may be damaged and accidents may occur due to erroneous operations      For the operating status of each station after a communication failure of the network  refer to relevant  manuals for the network  Incorrect output or malfunction may result in an accident      When executing control  data change  to another programmable controller station in operation by  connecting the external device to the SLMP compatible device  configure interlock circuits in the  program of the other programmable controller station to ensure that the entire system operates safely  at all times    For other controls to another programmable controller station in operation  such as program   modification or operating status change   read relevant manuals carefully and ensure safety before   the operation    Especially  in the case of a control from an external device to a remote other programmable controller   station  immediate action cannot be taken for a problem on th
145. odule operates using the IP address stored in the IP address storage area  CPU module internal FRAM    The actual operating IP address in the CPU module can be checked in SD10050  SD10051  SD10060   SD10061  SD10064  and SD10065     SD10050  SD10051  SD10060 Subnet    mask  SD10061 pattern    IP address    SD10064 Default  gateway    SD10065  IP address        1 The IP address change function can be used not only by peripheral units but also by link function  MX Component and MX Sheet by  manipulating values of the special devices  For details on link function  refer to the LAMELSEC iQ F FX5 User s Manual  Serial  Communication   For details on MX Component and MX Sheet  refer to the LL lrespective product manual     Point                   e For details on special relays and special register to use IP address change function  refer to L  Page 117  List of Special Device Applications and Assignments      The IP address storage area is different from the storage of the module parameter Ethernet port setting      The IP address storage area is provided in the CPU module  CPU module internal FRAM   The IP address  is not stored in the SD memory card even if a SD memory card is attached  The setting stored in the IP  address storage area is not changed even if the SD memory card is replaced     9 IP ADDRESS CHANGE FUNCTION 99  9 1 Overview of the IP address change function    9 2 IP address to be set for the CPU module    When the IP address change function is used  the IP addres
146. of bit device blocks   x 4  lt  120 and  Total points of  each blocks of word device    total points of each blocks of bit  device  x 2 x 960   BIN     Number of word device blocks    number of bit device blocks   x 2     120 and Total points of  each blocks of word device    total points of each blocks of bit  device  lt  960    ASCII     Number of word device blocks    number of bit device blocks   x 2  lt  120 and   Number of  word device blocks   number  of bit device blocks  x 4   Total  points of each blocks of word  device   total points of each  blocks of bit device  x 2  lt  770  BIN    Number of word device blocks    number of bit device blocks  lt   120 and  Number of word  device blocks   number of bit  device blocks  x 4   Total  points of each blocks of word  device   total points of each  blocks of bit device  lt  770    ASCII     Number of word device blocks    number of bit device blocks   x 4     120 and   Number of  word device blocks   number  of bit device blocks  x 4   Total  points of each blocks of word  device   total points of each  blocks of bit device  x 2 x 770  BIN     Number of word device blocks    number of bit device blocks   x 2     120 and  Number of word  device blocks   number of bit  device blocks  x 4   Total  points of each blocks of word  device   total points of each  blocks of bit device  lt  770    5 SLMP FUNCTION  5 3 SLMP Commands          Device Write Block    Remote Run  Remote Stop  Remote Pause    Remote Latch  Clear  Remote 
147. of word device blocks    number of bit device blocks   x 4     120 and   Number of  word device blocks   number  of bit device blocks  x 4   Total  points of each blocks of word  device   total points of each  blocks of bit device  x 2 x 770  BIN     Number of word device blocks    number of bit device blocks   x 2     120 and  Number of word  device blocks   number of bit  device blocks  x 4   Total  points of each blocks of word  device   total points of each  blocks of bit device  lt  770    Applicable devices    The following shows the available devices and device number ranges in commands used for the SLMP communication    function              With 3E frames  specify the device to access with the  Device code  listed below                X  9CH Specify in the range of  device numbers of the    module to access     Internal user Input Bit Octal O  device  X      9C00H   Output Y  9DH Octal O   Y      9D00H   Internal relay M  90H Decimal   O   M      9000H   Latching relay L  92H   L      9200H     Peet 1         Annunciator F  93H Decimal   O   F      9300H    Edge relay V  94H Decimal         V      9400H    Link relay B  AOH Hexade   O   B      A000H  cimal   Step relay i 98H Decimal   O   S      9800H    Data register Word D  A8H Specify in the range of   Decimal   O   D      A800H  device numbers of the   Link register W  B4H module to access  Hexade   O   W      B400H  cimal   Timer Contact Bit TS C1H Decimal   O   TS     C100H    Coil Bit TC COH O   TC     COOOH  
148. on   Check correct built in Ethernet parameter setting values using GX Works3   In case of CPU module error  hardware error      Forrepair  contact your local Mitsubishi Electric representative     Flashes when power of CPU   Check the contents of the error by error code stored when error is detected by the following processing   module is turned on and eliminate the cause of the error    Or flashes temporarily   Initial process     Open process     SLMP communication process     Other processing  processing wherein error code is stored    For error codes  refer to    Page 111 Error codes of the Ethernet communication     100M Does not turn on If using 10 Mbps hub      Leave as is      Replace with 100 Mbps hub    If using 100 Mbps hub      Check whether the connectors at the CPU module and the hub are connected properly     Replace cables     SD RD Does not turn on when data If  ERR  is lit   is sent received   Eliminate the cause of  ERR  being lit    If cable connection is faulty      Check cable connection      Perform initial processing completion check and check if there is anything wrong with the Ethernet  line    In case of own station IP address setting error    e If there is nothing wrong with cable connection  check the setting values of own station IP address   router setting and subnet mask setting by GX Works3    If there is something wrong with transmission program of other device      Check the transmission program of other device        Error information read
149. on  This section describes how to connect the built in Ethernet to a 1000BASE TX 10BASE T network    lt Connection procedure gt     1  Connect the Ethernet cable to a hub     2  Connect the Ethernet cable to the built in Ethernet   The following shows the Ethernet cable connection diagram        RJ45 type modular jack RJ45 type modular  Ethernet cable  category 3 5 or higher     e  Point                                                                 When connected to a hub  the CPU module determines the cable used  100BASE TX or 10BASE T  and    the communication mode  full duplex or half duplex  according to the hub  Auto negotiation function   Set  the hub to the half duplex mode if the hub that does not support the auto negotiation function      When the ground terminal of the CPU module cannot be grounded  the communication line may be closed  due to the effects of noise  making it impossible to communicate with other devices     2 SPECIFICATIONS 11  2 2 Connection specifications    12    LIST OF FUNCTIONS       The following table shows the list of functions of the built in Ethernet of the CPU module     Function Outline of system Reference    Direct connection with Built in Ethernet of CPU module and MELSOFT product  GX Works3  etc   are Page 14 Direct Connection with  MELSOFT connected by single Ethernet cable without using a hub  Communication is done by Engineering Tool  simply specifying the connection destination  you don t have to set the IP address        MELSOF
150. on result  receive packet  No 13     Connection No 2 received data  verification result  receive packet  No 14     Connection No 2 received data  verification result  receive packet  No 15     Connection No 2 received data  verification result  receive packet  No 16     Connection No 2 protocol  execution count    Connection No 2 protocol    cancellation specification    Connection No 3 protocol  execution status    Connection No 3 received data  verification result  receive packet  No 1     Connection No 3 received data  verification result  receive packet  No 2     Connection No 3 received data  verification result  receive packet  No 3     Connection No 3 received data  verification result  receive packet  No 4     Connection No 3 received data  verification result  receive packet  No 5     Connection No 3 received data  verification result  receive packet  No 6     Connection No 3 received data  verification result  receive packet  No 7        Stores the verification results of receive packet No 8   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 9   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 10   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verificatio
151. on results of receive packet No 12   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 13   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 14   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 15   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 16   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the number of protocol executions in connection No 4   0  Protocol not executed  1 to 65535  Number of executions    Cancels the protocol executed in connection No 4   0  No cancellation instruction   1  Cancellation request  set by user    2  Cancellation completed  set by system     Stores the status of the protocol being executed at connection No 5   0  Unexecuted   1  Waiting for transmission   2  Sending   3  Waiting for data reception   4  Receiving   5  Execution completed    Stores the verification results of receive packet No 1   Element No  where t
152. on type of the protocol that has been 0  1 to 16  executed first  the receive packet number successful in collation match is stored   If the communication type is  receive only    0  is stored  If an error occurs  during execution of the first protocol   0  is stored        System    If receiving is included in the communication type of the protocol that has been 0  1 to 16  executed second  the receive packet number successful in collation match is  stored  If the communication type is  receive only    0  is stored  If an error   occurs during execution of the second protocol   0  is stored  If the number of    protocols executed is less than 2   0  is stored     If receiving is included in the communication type of the protocol that has been 0  1 to 16  executed third  the receive packet number successful in collation match is  stored  If the communication type is  receive only    0  is stored  If an error  occurs during execution of the third protocol   0  is stored  If the number of    protocols executed is less than 3   O  is stored     If receiving is included in the communication type of the protocol that has been 0  1 to 16  executed fourth  the receive packet number successful in collation match is  stored  If the communication type is  receive only    0  is stored  If an error   occurs during execution of the fourth protocol   0  is stored  If the number of    protocols executed is less than 4   O  is stored     If receiving is included in the communication type of 
153. on was executed while the protocol SD10725   and then check whether the specified protocol number  setting data was not written  is registered     Write the protocol setting data  and then execute the SP ECPRTCL  instruction     The cancel request was received while the protocol was executed    Check the canceled protocol in the control data of the SP ECPRTCL  and the SP ECPRTCL instruction was finished abnormally  instruction  execution count result  and eliminate the cause of the  cancellation     The protocol number set value is out of range in the control data of   Correct the protocol number set value   the SP ECPRTCL instruction     The receive waiting time timed out    Check if the cable is disconnected      Correct the specified connection number of the external device  connection configuration setting  and execute the protocol again      Check that there is no error in the external device      Check that the sending from the external device is not interrupted      Check that there is no data lost due to a receive error      Check that there is no error in the data  packet  sent by the  external device     The received data is larger than 2046 bytes    Check the data sent from the external device      When sending data larger than 2046 bytes from the external  device  divide the data into several portions and execute data  sending several times     The data length or data quantity of the received data is out of   Check the maximum allowable data length and specify the
154. orized access from the outside can be prevented       Page 94 REMOTE  PASSWORD   For details on the SLMP function  refer to the LLIMELSEC iQ F FX5 User s Manual  SLMP      CPU module                                                                                                    Hub   S nex  SLMP communication  GOT  p C3  Point      SLMP 3E frames have the same message format as that of the MC protocol QnA compatible 3E frames   External devices that have been used with the MC protocol can be connected to SLMP compatible devices as  they are     The following shows the flow until starting communication by SLMP  3E frames      1  Connecting cables and external devices  Make the connections for SLMP communication    lt   Page 11 Connection specifications     2  Setting parameters  Configure the module parameters with the engineering tool   L    Page 28 Setting Method     3  Writing to the CPU module  Write the parameters set in the CPU module  Turn power OFF     ON or perform system reset to enable the parameters     Poin tr    Access through routers is also available  In order to configure this  set the subnet mask pattern and default  gateway IP address    lt   Page 22 Communication via Router     5 SLMP FUNCTION    25    26    5 1 Specifications    Communication specifications    Communication by the SLMP function is implemented with the following specifications  and they can be configured in module    parameters in the GX Works3     Item Specification  Transmission 100 10
155. ort function  serial communication   refer to LLLIMELSEC iQ F FX5 User s Manual   Serial Communication         Outline    Data can be exchanged between the external device  such as measuring instrument and bar code reader  and the CPU  module following the protocol of the device    Data that varies according to communication session can be handled by incorporating a device or buffer memory into the  communication packet    Sets the protocol required for communication with the external device using the engineering tool    The protocol can be set by selecting from the predefined protocol library  SL MP  MODBUS TCP   etc    or it can be created  and edited     1 The SLMP and MODBUS TCP are available only in the client                 Setting protocols       Writing protocols    Protocols can be set easily using the predefined  protocol support function of GX Works3     Write the set protocols in the CPU module        GX Works3                         Sending                                                                                                                                           meneame Odo                External device CPU module    LLLA    Receiving External device           Data can be communicated        With protocols appropriate  to each external device        Executing protocols    Execute protocols by dedicated instructions   Multiple protocols can be executed by one dedicated instruction        Poin tr    The number of protocols and packets that can be r
156. ossible to execute the write or clear processing to the IP address storage area  CPU module internal FRAM   if an operation that turns off and on  or on and off SM8492  IP address storage area write request  or SM8495  IP address  storage area clear request  in a short time is executed    e  f SM8492  IP address storage area write request  is turned off and on again while writing to the IP address storage area   CPU module internal FRAM   the write processing that was executed first will complete normally  and the following write  operation will be ignored   This also applies to the clear operation     e  f SM8495  IP address storage area clear request  is turned off and on again while writing to the IP address storage area   CPU module internal FRAM   the clear operation will not be completed   This also applies if writing is executed during the  clear processing     e  f both SM8492  IP address storage area write request  and SM8495  IP address storage area clear request  are turned off  and on  the write operation will take priority  and the clear operation will not be completed     9 IP ADDRESS CHANGE FUNCTION 1  9 5 Precautions 03    10 TROUBLESHOOTING       This section contains an explanation of errors that may occur during communication between built in Ethernet and other  devices  and troubleshooting for such errors    The methods for checking the built in Ethernet for errors and the contents of errors are as follows    In either case  after checking for errors and t
157. own node and the external device ta be communicated with have the same class and  subnet address  IP address has been set in the range of class A B C    It IP address iz not set  the module operates with following IP address    192 166 3250    Setting range      Empty  na setting      0 0 0 1 to 223 255 255 254 tin decimal    Restore the Default Settings       4  Setthe external device configuration in the following     TZ  Navigation window    Parameter    FXSUCPU     Module Parameter    Ethernet Port  gt  Basic Settings  gt   External    Device Configuration     5    i Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting      Module List  Ethernet Selection   Find Module   M 4  gt        Host Station  Nala Coun  t    UDP Gonne  ction Modul  e       4          Er ap    El Ethernet Device  General    ist  MELSOFT Connection Module  Bg SLMP Connection Module  192 168 3 251 4096 s05 UDP Connection Module   a Active Connection Module  45 Unpassive Connection Module  ES Fullpassive Connection Module  Ethernet Device  COGNEX   El Vision System           Specification   Use when specify open method by UDP    5  Start the predefined protocol support function   X 5  Tool   gt   Predefined Protocol Support Function     6 PREDEFINED PROTOCOL SUPPORT FUNCTION 1  6 5 Example of Predefined Protocol Communications 9    6  Select  CPU Ethernet   for  Module Type  and click the  OK  button     bcd ee ee MEM MUS   support function is synchronous
158. parameters  Create unit parameters with the engineering tool   L    Page 18 Setting module parameters     2  Writing to the CPU module  Turn power OFF     ON or reset the system to enable the parameters       Page 18 Writing to the CPU module     3  Connecting cables and external devices  Connect for Ethernet communication   1 gt  Page 11 Connection specifications     4  Setting the connection destination   Set connection destination with the engineering tool   L    Page 19 Engineering Tool Settings   For GOT settings  refer to the following manuals      LIGOT2000 Series Connection Manual  MELSEC iQ F Series Connection      LIGOT1000 Series Connection Manual  MELSEC iQ F Series Connection           4 CONNECTION WITH MELSOFT PRODUCT AND GOT 1  4 2 Connection via a hub T    18    Setting the CPU Module          parameters    In case of GX Works3  this is done using the  Module parameter  settings screen        TZ  Navigation window   Parameter      FXSUCPU     Module Parameter    Ethernet Port  gt  Basic Settings     Dwn Node  Settings     setting Item List setting Item         dem                      Sete   Input the Setting Item to Search EA E Owo Node z  WF ENES   E IP Address  IP Address    El Basic Settings Subnet Mask     9 Own Node Settings    Default DAEM EN  External Device Gontigural       External Device Configuration    a  Application Settings     External Device Configuration    Detailed Setting    Explanation    Set the information of the own node such as IP addr
159. pendix 1 List of Special Device Applications and Assignments       121       SD10789 Connection No 3 received data Stores the verification results of receive packet No 8   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 8  The cause of mismatch  verification result code   b8 to b15   SD10790 Connection No 3 received data Stores the verification results of receive packet No 9   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 9  The cause of mismatch  verification result code   b8 to b15   SD10791 Connection No 3 received data Stores the verification results of receive packet No 10   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 10  The cause of mismatch  verification result code   b8 to b15   SD10792 Connection No 3 received data Stores the verification results of receive packet No 11   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 11  The cause of mismatch  verification result code   b8 to b15   SD10793 Connection No 3 received data Stores the verification results of receive packet No 12   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 12  The cause of mismatch  verification result code   b8 to b15   SD10794 Connection No 3 received data Stores the verification results of
160. pletion signal   Receive state signal   Target change direction   Receive data length and receive data  Normal receive indication   Receive error indication  SP SOCCINF instruction control data    SP SOCCINF instruction connection information    Sample program     lt  lt Data send processing gt  gt   M3000 SD10680 0  1                     Set length of the data to be sent    Set the data to be sent    Sending data to connection 1    Normal completion indication    Error completion indication         Acquire information of the target device       Normal completion indication    MOVP K6 D300  MOVP H3412  D301  MOVP H7856  D302  MOVP HOBC9A D303  SP SOCSND  U0  K1 D3000 D300 M300  M300 M301  i NE M3002  M301  el M3003   lt  lt Data receive en     4  SD10680 0 SD10682 0 M500      c  ESP SOCCINF  Uo  K1 D450 D460  SP SOCRCV  U0  K1 D5000 D500 M500 Receiving data  M500 M501  SET M5002  M501  SET M5003       END    Error completion indication     1 For acquiring information of the target device connected on UDP  run the program enclosed by the dotted line      It can be omitted when the information acquisition is not needed      7 SOCKET COMMUNICATION FUNCTION 1  7 2 Communication Using UDP T    72       iltaneous broadcast    For simultaneous broadcast using UDP  set the parameters as follows       Destination IP Address  255 255 255 255  FF FF FF FFH       Destination Port No   65535  FFFFH     CPU module   IP address  Xx Xx Xx xx  subnet mask  255 255 255 0     Ethernet       Sen
161. pplications and Assignments    SD10712    SD10713    SD10714    SD10722    SD10723    SD10724    SD10725    SD10740    SD10742    SD10743    SD10744    SD10745    SD10746    SD10747    SD10748    Predefined protocol setting data  check area packet number    Predefined protocol setting data  check area protocol number    Number of registered predefined  protocols    Predefined protocol registration   Protocol numbers 1 to 16     Predefined protocol registration   Protocol numbers 17 to 32     Predefined protocol registration   Protocol numbers 33 to 48     Predefined protocol registration   Protocol numbers 49 to 64     Connection No 1 protocol  execution status    Connection No 1 received data  verification result  receive packet  No 1     Connection No 1 received data  verification result  receive packet  No 2     Connection No 1 received data  verification result  receive packet  No 3     Connection No 1 received data  verification result  receive packet  No 4     Connection No 1 received data  verification result  receive packet  No 5     Connection No 1 received data  verification result  receive packet  No 6     Connection No 1 received data  verification result  receive packet  No 7     When an error is detected in the protocol setting data  stores the packet number that  detected the error    The packets are checked in order of send packets and then receive packets  expected  packets  from smallest number  The packet number where an error was detected first is  stored 
162. r    SSN       l  um         rum  m                                                             Control room                         pu          Personal  computer       CPU module       Communication through routers is impossible for some functions  The following functions do not support communication via routers       Searching for CPU Modules on the network  e Simultaneous broadcast of socket communication function  For access via router  set the subnet mask pattern and default gateway IP address in addition to IP address as per K  Page         18 Setting module parameters   In the case of GX Works3   TZ  Navigation window gt  Parameter  gt  FXSUCPU  gt  Module Parameter  gt  Ethernet Port  gt  Basic Settings     LOwn Node    Settings     setting Item List    Input the Setting Item to Search EJ Ei Own Node Settings   E IP Address  IP Address    a Basic Settings Subnet Mask  D 0009 Own Node Settings  External Device Configur   5  Application Settings    Security    m External Device Configuration  External Device Configuration   Detailed Setting    Explanatian   Set the IP address of the default gateway  the device which the own node passes through to a  access a device af another network   Please set subnet address of default gateway so that it   is the same with the one af host station     Setting range     mpty     0 0 1 to 223 255 255 254 tin decimal     Item List   Find Result Restore the Default Settings    Apply       22 4 CONNECTION WITH MELSOFT PRODUCT AND GOT  4 2
163. r of Sends 4 Times    Number of Successes Transmissions           llProcedure    Set the required items in  Input Item  and click the  Execute  button to execute the PING test  The test results are displayed in  the  Result  box     lBlAction for abnormal end   If the test fails  check the following and perform the test again      Connection to the Ethernet network     Parameter settings written in the CPU module     Operating status of the CPU module  whether or not an error has occurred       P addresses set in GX Works3 and the PING test target station     Whether the external device has been reset after the CPU module was replaced    110 10 TROUBLESHOOTING  10 2 Checking Errors by GX Works3    10 3 Error Codes    For the error codes  stored in SD0 SD8067  common among CPU modules  refer to the LLLIMELSEC iQ F FX5 User s  Manual  Application         Error codes of the IP address change function    The description and corrective action for error codes generated by the IP address change function are explained           Error codes are stored in SD8498  IP address storage area write error code  or SD8499  IP address storage area clear error  code         1920H IP address setting or other  SD8492 to SD8497  value exceeds Correct the IP address setting or other  SD8492 to SD8497  value   the setting range    1921H Write request and clear request  SM8492 and SM8495  turned Check if write request and clear request  SM8492 and SM8495   from OFF to ON simultaneously  turned from OF
164. reader in the correct installation  safe use and  operation of the FX5 Built in Ethernet function        It should be read and understood before attempting to install or use the unit  Store this manual in a safe place so that you can  read it whenever necessary     Always forward it to the end user     Regarding use of this product      This product has been manufactured as a general purpose part for general industries  and has not been designed or  manufactured to be incorporated in a device or system used in purposes related to human life      Before using the product for special purposes such as nuclear power  electric power  aerospace  medicine or passenger  movement vehicles  consult Mitsubishi Electric      This product has been manufactured under strict quality control  However when installing the product where major  accidents or losses could occur if the product fails  install appropriate backup or failsafe functions in the system     Note    If in doubt at any stage during the installation of the product  always consult a professional electrical engineer who is  qualified and trained in the local and national standards  If in doubt about the operation or use  please consult the nearest  Mitsubishi Electric representative     Mitsubishi Electric will not accept responsibility for actual use of the product based on these illustrative examples    This manual content  specification etc  may be changed  without a notice  for improvement    The information in this manual 
165. receive packet  No 3     Connection No 2 received data  verification result  receive packet  No 4     Connection No 2 received data  verification result  receive packet  No 5     Connection No 2 received data  verification result  receive packet  No 6     Connection No 2 received data  verification result  receive packet  No 7        Stores the verification results of receive packet No 8   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 9   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 10   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 11   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 12   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 13   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification re
166. rectly into the IP address storage area  CPU module internal FRAM   the error code is stored in IP    address storage area clear error code  SD8499               Write request and clear request  SM8492 and SM8495   turned from OFF to ON simultaneously     Check if write request and clear request  SM8492 and SM8495  turned  from OFF to ON simultaneously        1 02 9 IP ADDRESS CHANGE FUNCTION  9 4 Clear operation to IP address storage area    9 5 Precautions    The following section lists the precautions for using the IP address        Power off and reset operation   Do not turn the CPU module power off or execute reset when writing to or clearing the IP address storage area  CPU module  internal FRAM   The values may not be applied to the IP address storage area  CPU module internal FRAM   Power off or  reset the CPU module after checking the falling edge of SM8492  IP address storage area write request  or SM8495  IP  address storage area clear request      Parameter IP address    For the CPU module IP address  the value in the IP address storage area  CPU module internal FRAM  has precedence over  the module parameter Ethernet port value  Whether the IP address change function is enabled can be checked by the IP  address change function enable flag  SM8498   When using the IP address specified with the module parameter Ethernet  port  clear the IP address storage area  CPU module internal FRAM      Write processing and clear processing execution timing      It may not be p
167. ress of the target device     Specify the port number of the target device        Setting range Set by      0000H User  8000H    System    Shown on left side User    1 to 5548  5570 to 65534   0001H to 15ACH  15C2H to  FFFEH      1 to 3758096382   00000001H to DFFFFFFEH    FFFFFFFFH  Simultaneous  broadcast     1 to 65535  0001H to FFFFH    FFFFH  Simultaneous  broadcast      s2  7 to Use prohibited System   s2  9       The  Set by  column indicates the following   User  The data must be set before executing the SP  SOCOPEN instruction   System  The CPU module stores the execution result of the SP  SOCOPEN instruction      2 Forthe Unpassive open  the IP address and port number of the target device are ignored      3 Because host station port numbers  1 to 1023  0001H to O3FFH   are assigned for reserved port numbers and 61440 to 65534  FOOOH  to FFFEH  are used for other communication functions  using 1024 to 5548  5570 to 61439  0400H to 15ACH  15C2H to EFFFH  is  recommended  Do not specify 5549 to 5569  15ADH to 15C1H  because these ports are used by the system     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions    This instruction opens a connection specified in  s1     The set values used for the open processing is selected in  s2  0    The result of the SP  SOCOPEN instruction can be checked with the completion device   d  O and  d  1    e Completion device  d  0  Turns on in the END processing of the scan after completion of the SP  SOC
168. result code   b8 to b15   SD10848 Connection No 6 received data Stores the verification results of receive packet No 7   verification result  receive packet   Element No  where the verification result did not match  bO to b7   No 7  The cause of mismatch  verification result code   b8 to b15   APPENDIX    124    Appendix 1 List of Special Device Applications and Assignments    SD10849    SD10850    SD10851    SD10852    SD10853    SD10854    SD10855    SD10856    SD10857    SD10858    SD10859    SD10860    SD10862    SD10863    SD10864    SD10865    SD10866    SD10867    SD10868    Connection No 6 received data  verification result  receive packet  No 8     Connection No 6 received data  verification result  receive packet  No 9     Connection No 6 received data  verification result  receive packet  No 10     Connection No 6 received data  verification result  receive packet  No 11     Connection No 6 received data  verification result  receive packet  No 12     Connection No 6 received data  verification result  receive packet  No 13     Connection No 6 received data  verification result  receive packet  No 14     Connection No 6 received data  verification result  receive packet  No 15     Connection No 6 received data  verification result  receive packet  No 16     Connection No 6 protocol  execution count    Connection No 6 protocol    cancellation specification    Connection No 7 protocol  execution status    Connection No 7 received data  verification result  receive pa
169. rget device  this program disconnects connection  No 1     Devices used       SD10680 Open completion signal  SD10681 Open request signal  D200 SP SOCCLOSE instruction control data  M200 SP SOCCLOSE instruction completion device    Program  E E puis PLS ver Processing when connection    No 1 is cut from the target device    M2000  D10680 0 M210  I    SP SOCCLOSE  Jo        D200 M200 Close connection No  1       M161 EET NND Set the SP  SOCCLOSE  instruction execution flag    M200 M201    M202 Normal completion indication    M202 Error completion indication    Reset the SP  SOCCLOSE    M210        instruction execution flag    END       7 SOCKET COMMUNICATION FUNCTION 83  7 4 Socket Communication Function Instructions    84    Reading received data in the END processing    Reads the data received   Read at END processing              ENO  SP_SOCRCV EN U0 s1 s2 d1 d2      E    w  ev  62  e  e            SP SOCROV  enters O       Selingdala          llDescriptions  ranges  and data types     Uy  Dummy  Input the character string   UO      Ed Character string ANYSTRING  SINGLE     s1  Connection No      No  1 to  1008     16 bit unsigned binary     bit   16 bit unsigned binary     binary ANY 16     s2  LL     number of the device where control data is I NN to Control data Word ANY16 ARRAY  specified  CL Page 85   Number of elements  2    d1  Start number of the device in which received data Word ANY16  is stored     d2  Start number of the device which turns on for one Bit ANYBIT
170. s  and parameters   Describes specifications of ladders  ST  FBD LD  and other programs and labels     Describes specifications of instructions and functions that can be used in programs     Describes N N network  MELSEC Communication protocol  inverter communication   non protocol communication  and predefined protocol support    Describes MODBUS serial communication    Describes the functions of the built in Ethernet port communication function   Explains methods for the device that is communicating with the CPU module by  SLMP to read and write the data of the CPU module    Describes the built in positioning function     Describes the analog function     System configuration  parameter settings  and online operations of GX Works3        Unless otherwise specified  this manual uses the following terms     e O indicates a variable portion used to collectively call multiple models or versions    Example  FX5U 32MR ES  FX5U 32MT ES  gt  FX5U 32MLI ES    For details on the FX3 devices that can be connected with the FX5  refer to FX5 User s Manual  Hardware      Terms   llDevices   FX5   FX3   FX5 CPU module  FX5U CPU module    FX5UC CPU module  Extension module   e FX5 extension module  e FX3 extension module    Extension module  extension cable type     Extension module  extension connector type     I O module    Input module    Description    Generic term for FX5U and FX5UC PLCs  Generic term for FX3S  FX3G  FX3GC  FX3U  and FX3UC PLCs  Generic term for FX5U CPU module and FX
171. s not execute the    Send or receive data        m 1 th protocol and after and is completed with an error       he connections for which the SP ECPRTCL instruction can be executed are only those for which  Communication  protocol  is specified for the communication means    e  f a cancel request is received during execution of the mth protocol while multiple protocols are executed continuously   following is stored in  s3       s3  0 Resulting number of executed The protocol number m being executed  protocols     s3  1 Completion status The protocol cancel request error  C404H       s3   10 Collation match The receive packet number successful in collation match for the already executed protocol   Receive packet number 1     s3  m 8 Collation match  Receive packet number m 1       f same instructions are executed for the same connection  the subsequent instruction is ignored and is not executed until  the preceding instruction is completed    e  he SP ECPRTCL instruction itself does not open close a connection and therefore the SP  SOCOPEN SP SOCCLOSE  instructions need to be used to open close the connection    K   Refer to the Page 77 SP SOCOPEN and Page 81 SP  SOCCLOSE     Operationerror               2820H The device used exceeded the specified range   2821H The device used to store data are overlapping   2822H Device that cannot be specified is specified   3405H The input data was out of range     6 PREDEFINED PROTOCOL SUPPORT FUNCTION 61  6 6 Predefined Protocol Support 
172. s or any rights of any other kind  nor does it confer any patent licenses  Mitsubishi Electric Corporation cannot  be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual      02014 MITSUBISHI ELECTRIC CORPORATION    130    WARRANTY    Please confirm the following product warranty details before using this product   1  Gratis Warranty Term and Gratis Warranty 2  Onerous repair term after discontinuation       Range    If any faults or defects  hereinafter  Failure   found to  be the responsibility of Mitsubishi occurs during use of  the product within the gratis warranty term  the  product shall be repaired at no cost via the sales  representative or Mitsubishi Service Company   However  if repairs are required onsite at domestic or  overseas location  expenses to send an engineer will  be solely at the customer s discretion  Mitsubishi shall  not be held responsible for any re commissioning   maintenance  or testing on site that involves  replacement of the failed module      Gratis Warranty Term    The gratis warranty term of the product shall be for  one year after the date of purchase or delivery to a  designated place  Note that after manufacture and  shipment from Mitsubishi  the maximum distribution  period shall be six  6  months  and the longest gratis  warranty term after manufacturing shall be eighteen   18  months  The gratis warranty term of repair parts  shall not exceed the
173. s stored in the IP address storage area  CPU module internal  FRAM   not the IP address setting of the module parameter Ethernet port in GX Works3  is set to the CPU module    When the power of the CPU module is turned OFF and ON or system reset is performed  the IP address and other data  stored in the IP address storage area are reflected on the CPU module  and the IP address change function enable flag   SM8498  turns ON      In the case IP address change function is used     Module parameter Ethernet port setting    IP address 192 168 3 39  i Subnet mask pattern 255 255 255 0  CPU module S7 Default gateway IP address 192 168 3 254  IP address 192 168 3 40    Subnet mask pattern 293925929010  Default gateway IP address 192 168 3  254    The value of the IP address  storage area  CPU module  internal FRAM  is set                   IP address storage area   CPU module internal FRAM         IP address 192 168 3 40  Subnet mask pattern 253925929010  Default gateway IP address 192 168 3 254     In the case Module parameter Ethernet port setting is used  IP address storage area is cleared      Module parameter Ethernet port setting          IP address 192 168 3 39    Subnet mask pattern 255 255 255 0  CPU module A Default gateway IP address 192 168 3 254  IP address 192 168 3 39    Subnet mask pattern 25312552500  Default gateway IP address 192 168 3 254 IP add t   r address storage area  The IP address of the module P  CPU module internal FRAM   parameter Ethernet port setting 
174. storage area is completed normally     SD8496 Default gateway IP address   Stores default gateway IP address  low order  to be set when using IP address change   R W  setting  Low order  function     Becomes 0 when writing to IP address storage area is completed normally     SD8497 Default gateway IP address   Stores default gateway IP address  high order  to be set when using IP address change   R W  setting  High order  function     Becomes 0 when writing to IP address storage area is completed normally     SD8498 IP address storage area write Stores error codes if writing to IP address storage area fails  R  error code   SD8499 IP address storage area clear Stores error codes if clearing of IP address storage area fails  R  error code    SD10050 IP address  Low order  Lower part of the IP address   SD10051 IP address  High order  Higher part of the IP address   SD10060 Subnet mask  Low order  Lower part of the subnet mask setting value     SD10061 Subnet mask  High order  Higher part of the subnet mask setting value        D  D  DDd    APPENDIX 1 1  Appendix 1 List of Special Device Applications and Assignments 7    SD10064 Default gateway IP address Lower part of the default gateway IP address setting value  R   Low order    SD10065 Default gateway IP address Higher part of the default gateway IP address setting value  R   High order    SD10074 to Host MAC address MAC address  3 words in total  is stored  R   SD10076    SD10082 Communication speed setting Communication sp
175. sults of receive packet No 14   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 15   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 16   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the number of protocol executions in Connection No 1   0  Protocol not executed  1 to 65535  Number of executions    Cancels the protocol executed in connection No 1   0  No cancellation instruction   1  Cancellation request  set by user    2  Cancellation completed  set by system     Stores the status of the protocol being executed at connection No 2   0  Unexecuted   1  Waiting for transmission   2  Sending   3  Waiting for data reception   4  Receiving   5  Execution completed    Stores the verification results of receive packet No 1   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 2   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of receive packet No 3   Element No  where the veri
176. t  request message  the new request message will be discarded    e When the same local port number has been set multiple times in UDP  the result is the same as if only one has been set  If  you want to communicate with multiple external devices using the same local port number  use TCP     Data reception processing for response messages    The following shows an example of the data reception processing of an external device   Communication process of the  target device       Is TCP connection open              Could data be received  within the monitor timer    YES    Check the received data size    Is receive data size  sufficient     Process the response message    Was the entire received  message processed     YES    Error handling    Point    For Ethernet communication  TCP socket functions are used inside personal computers    These functions have no concept of boundaries  When the sender sends data by calling the send function  once  the receiver will call the recv function once or more to read that data   Send and recv do not have a one   to one correspondence     Therefore  the processing shown above is always required in the program of the receiving device    When the recv function is used with the blocking mode  data may be read by calling the function once     36 5 SLMP FUNCTION  5 4 Precautions    6 PREDEFINED PROTOCOL SUPPORT  FUNCTION    This chapter describes predefined protocol support function  built in Ethernet    For details on the predefined protocol supp
177. t perform the open processing to an already opened  completed  connection     When communications with the external device cannot be  performed  perform the close processing before the open  processing        10 TROUBLESHOOTING 111  10 3 Error Codes        C1B1H    C1D3H    C400H    C401H    C404H    C405H    C410H    C411H    C417H    C431H             The open processing of the specified connection has not been After completion of the open processing  perform the communication   completed     A dedicated instruction not supported by the communication   Check that the dedicated instruction can be executed by the   method of the connection was executed  specified communication method  Correct the program if the  instruction cannot be executed      Check that there is no error in the connection specification of the  dedicated instruction     The SP ECPRTCL instruction was executed when    Predefined   Execute the SP ECPRTCL instruction after  Predefined protocol   protocol ready  SD10692   was    0     ready  SD10692     has become    1         Execute the SP ECPRTCL instruction after rewriting the protocol  setting data to the CPU module    e If the error occurs again even after rewriting  replace the CPU    module     The control data of the SP ECPRTCL instruction specified a   Check whether the specified protocol number is correct   protocol number not registered in the CPU module    Check the presence absence of protocol registration  SD10722 to  e The SP ECPRTCL instructi
178. td eed s Retired nen nre RR UE a Ded Sox e RR E PIE UN Lowe UR RU aerae 22   PreCAUUlONS T E                                 mn 23  CHAPTER5 SLMP FUNCTION 25  5 1 SDCCINCAUONS T P                                      M     n 26   Communication specifications                lille rre 26   Iiic SP ONCA ION eree vaina sa eee Bee eo ee Be ERES RAS dA ee ERR EE 27  5 2 Seng Metod  D a OE eek se he os SS ear ee eee ee ee 28  5 3 SLMP Commands 2 2 26 252526625 04 eeecheectetetsGhdlaeeneteaebhoteesteeaeeeea rest S 29   Goonhu aa                                                                              29   Applicable GOVICeS  s crure e tedes ena ee ee AEKA eE a a a aE EE a ea e 33  5 4 PICCAUUONS ciaa nce earra Eara LIT IQ ae ee ra E eee ae each oe nae 35  CHAPTER6 PREDEFINED PROTOCOL SUPPORT FUNCTION 37  6 1 Data Communication    1  o0 9 2 9 02 poset Pid cee RENE Eb RPUAPPEO NECS TE NE Ed ves 38  6 2 Protocol COMMUNICAUON TV PGs    scs dca pedem aci ot SGD 9 ac 3n EO ad ERO ee eee ERU  Ree y OE  ww deus 43  6 3 Packet EIGMCINGS x aua rd do qae d EC dC  edo RC CER ia SP AC age wd ee ee C SORA 44  6 4 Execution Conditions of Predefined Protocol Communications                           lselsl   49  6 5 Example of Predefined Protocol Communications                        eeeeeeee hn 50  6 6 Predefined Protocol Support Function Instruction                    eleleeleree nnn 56   Executing the registered protocols           anaana cc ete ee hrs 56  CHAPTER 7 SOCKET COMMUNICATION FUNCTI
179. th the network  administrator  reduce the load on the Ethernet line    e When the ground terminal of the CPU module cannot be grounded  the communication line may be closed  due to the effects of noise  making it impossible to communicate with other devices     114 10 TROUBLESHOOTING  10 4 Troubleshooting Flowchart    Errors during SLMP communication    Check the status of target device  connection configuration     Is the target device  connection configuration  correct                      NO   Set the target device connection  configuration     YES    NO   Send the command to built in  Ethernet     Is command sent from  the target device     YES       Is response sent  to the device that sent  the command     NO            Is the IP address  specified in the command  correct     YES    NO   Modify the IP address and send the  command once again     YES             communication protoco NO   Match the communication protocol   TCP UDP  with the target  TCP UDP  with the target device   device matching    YES    The command may not be sent to  the built in Ethernet from the target  device  Check the sending end          Fix the cause of error based on the  contents of end code  error code   refer to Section 9 2      Is the end code of the NO    response  0         10 TROUBLESHOOTING 11  10 4 Troubleshooting Flowchart 9     1                 Is the IP address  specified in the command  correct             Modify the IP address and send the  command once again     Is the specif
180. the data length on the line       The range is 1 to 4 bytes     Data Flow Forward Direction When sending  Sends the calculated length in order from the upper byte  This cannot be set if the   Upper byte     Lower byte When receiving  Receives the data in order from the upper byte  data length is 1 byte        Reverse Direction When sending  Sends the calculated length in order from the low order byte    Lower byte     Upper byte    When receiving  Receives the data in order from the low order byte     Byte Swap  by Word    When sending  Interchanges the bytes in word units and sends the       calculated length   When receiving  Interchanges the bytes in word units and receives the data     Calculating Select the start packet element number for the range to be calculated          Range The range is 1 to 32     End Select the end packet element number for the range to be calculated   The range is 1 to 32      1 This can be selected only when the data length is set to 4 bytes     Poin tr    e If there are no elements other than length  an element error occurs   When using length  one or more  elements other than length are required     e If the calculation result exceeds the number of digits set with  Data Length   the excessive digit value is  discarded  invalidated   For example  if Data Length is 2 bytes and the data size calculation results are   123  bytes  the data length will be  23     e If there is a non conversion variable  variable length  non verified reception  char
181. the protocol that has been 0  1 to 16  executed fifth  the receive packet number successful in collation match is stored   If the communication type is  receive only    0  is stored  If an error occurs  during execution of the fifth protocol   0  is stored  If the number of protocols    executed is less than 5   0  is stored     If receiving is included in the communication type of the protocol that has been 0  1 to 16  executed sixth  the receive packet number successful in collation match is  stored  If the communication type is  receive only    0  is stored  If an error  occurs during execution of the sixth protocol   0  is stored  If the number of    protocols executed is less than 6   0  is stored     If receiving is included in the communication type of the protocol that has been 0  1 to 16  executed seventh  the receive packet number successful in collation match is  stored  If the communication type is  receive only    0  is stored  If an error   occurs during execution of the seventh protocol   0  is stored  If the number of    protocols executed is less than 7   0  is stored     0  1 to 16    If receiving is included in the communication type of the protocol that has been  executed eighth  the receive packet number successful in collation match is  stored  If the communication type is  receive only    0  is stored  If an error  occurs during execution of the eighth protocol   0  is stored  If the number of  protocols executed is less than 8   0  is stored     6 PRED
182. time  Tfs  The time from when the personal computer receives the request data until the PLC finishes processing  unit  ms     Ke  Kdt  Constants  refer to the table below   Df  Number of words of requested data  Number of words of response data  application data portion        Scr  Scan time     1 The following shows the timing from when the personal computer receives the request data until the PLC finishes processing     Target device   personal computer       ACK    Command message      Only TCP   0 step   0 step END       eee S a   time      Communication content For TCP IP communication For UDP IP communication    ES     Calculation example 1    When performing TCP IP communication with a personal computer and reading 32 points  devices  of data from the own  station s data register  D  as binary code data  using SLMP communication  the time from when the computer request data is  received until processing is finished  unit  ms    Connected station scan time is 40 ms    Tfsz1   0 001x32   40x1 other device ACK processing time     Calculation example 2    When performing TCP IP communication with a personal computer and writing 32 points  devices  of data to the own station s  data register  D  as binary code data  using SLMP communication  the time from when the computer request data is received  until processing is finished  unit  ms    Connected station scan time is 40 ms    Tfs 1  0 001x32  40x1 other device ACK processing time    5 SLMP FUNCTION 2  5 1 Specifications 
183. tion cable firmly NO    connected        Securely lock the cable     YES    Is initial process completed   i    normally        Execute initial process     YES    Check the error code  Refer to Section 9 2   and fix the cause of error     Poin tr    e If trouble occurs while using built in Ethernet  check the error status with the Ethernet diagnostics function of  GX Works3  For error contents  refer to L  Page 111 Error codes of the Ethernet communication    e For information concerning when the  ERR  LED is lit  refer to L  Page 105 Checking Errors by LEDs    e If CPU module is replaced due to error occurrence  reboot all target devices with which communication was  being done  and restart data communication   If target device retains Ethernet address of communication  target  continuation of communication may not be possible in some cases because Ethernet address  changes when the CPU module is replaced  includes unit specific addresses such as MAC address     e  f target device  such as a personal computer  is replaced  turn CPU module s power OFF   ON and or  perform system reset    e If message transmitted from target device cannot be received by built in Ethernet  error log is long   frequently  there may be a large load on the Ethernet line due to data transmitted among the various  devices connected  In order to reduce load on the Ethernet line  you may have to take measures such as  dividing the network or reduce the number of data transmissions  After conferring wi
184. tion procedure  1  Non protocol method    3  Open system   00  Active open or UDP IP   10  Unpassive open   11  Fullpassive open        1 The  Set by  column indicates the following   System  The CPU module stores the execution result of the SP SOCCINF instruction     2  n case of execution for an unopened connection  OH is returned     3 Because host station port numbers  1 to 1023  0001H to O3FFH   are assigned for reserved port numbers and 61440 to 65534  FOOOH  to FFFEH  are used for other communication functions  using 1024 to 5548  5570 to 61439  0400H to 15ACH  15C2H to EFFFH  is  recommended  Do not specify 5549 to 5569  15ADH to 15C1H  because these ports are used by the system     pm    This instruction reads connection information specified in  s1         Operation error               3405H The connection number specified by  s1  is other than 1 to 8   2820H The device number specified by  s2  or  d  is outside the range of the number of device points   2822H Device that cannot be specified is specified     RE e e eA Rn    When M5000 is turned on  connection information of connection No 1 is read     Devices used    D500 SP SOCSND instruction control data  D5000 Storage location of connection information    Program  M5000 i i                                         SsP SOCCINF  UO  K1 D500 D5000 Execute reading connection    information of connection No  1    END       7 SOCKET COMMUNICATION FUNCTION 91  7 4 Socket Communication Function Instructions    92    Readi
185. tion result  receive packet  No 9     Connection No 7 received data  verification result  receive packet  No 10     Connection No 7 received data  verification result  receive packet  No 11     Connection No 7 received data  verification result  receive packet  No 12     Connection No 7 received data  verification result  receive packet  No 13     Connection No 7 received data  verification result  receive packet  No 14     Connection No 7 received data  verification result  receive packet  No 15     Connection No 7 received data  verification result  receive packet  No 16     Connection No 7 protocol  execution count    Connection No 7 protocol    cancellation specification    Connection No 8 protocol  execution status    Connection No 8 received data  verification result  receive packet  No 1     Connection No 8 received data  verification result  receive packet  No 2     Connection No 8 received data  verification result  receive packet  No 3     Connection No 8 received data  verification result  receive packet  No 4     Connection No 8 received data  verification result  receive packet  No 5     Connection No 8 received data  verification result  receive packet  No 6     Connection No 8 received data  verification result  receive packet  No 7        Stores the verification results of receive packet No 8   Element No  where the verification result did not match  bO to b7   The cause of mismatch  verification result code   b8 to b15     Stores the verification results of r
186. to the interfacing device  In this case  wait until  the CPU state is changed to the wait for open state and then retry the connection from the device        Do not execute the SP SOCCLOSE instruction in a program  Doing so will disable data transfer since the Open completion  signal and Open request signal of the corresponding connection turn off for close processing  To reopen the closed  connection  execute the SP  SOCOPEN instruction     7 SOCKET COMMUNICATION FUNCTION  7 1 Communication Using TCP 69    70    7 2 Communication Using UDP    UDP  User Datagram Protocol  is a simple protocol that does not perform data sequencing and retransmission   To perform socket communication using UDP  confirm the following in advance      IP address and port number of the target device      P address and port number of the CPU module           This section provides a program example for communication using UDP     llParameter setting    TZ  Navigation window  Parameter      FXSUCPU     Module Parameter    Ethernet Port  gt  Basic Settings      External  Device Configuration     Detailed Setting      Ethernet Configuration  Built in Ethernet Port   screen    E    i Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting    Ethernet Selection   Find Module 4  gt        PLC  Device X Z     P adess Put   MAC ttost dies   Port  subnet  Defui E Ethernet Device  General    z    ftl MELSOFT Connection Modul    192 168 3 39 Bg SLMP Connection Module
187. uilt in Ethernet Port   screen       i Ethernet Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting  Module List x          Port   Subnet  Default cee a    No    Mask   Gateway       Port   MAC   Host IP  No   Address  Name   Address           ust  MELSOFT Connection Module  2 SLMP Connection Module  KeepAlive tag UDP Connection Module  Aa Active Connection Module  ta Fullpassive Connection Module  E  Ethernet Device  COGNEX   Host Station Visio  Connected Coun E   n System  t1 El Ethernet Device  Panasonic Industrial          Unpassive  Connection  Module             e Drag and drop the  Unpassive Connection Module  or  Fullpassive Connection Module  from  Module List  to the left side  on the window  Execute the settings as mentioned below     PLC Port No  4096  Setting range  1025 to 5548  5570 to 65534   Do not specify 5000 to 5009 because these ports are used by the system    Sensor Device IP Address Blank  When  General Socket Fullpassive Connection Module  is selected  a value must be set    Setting range  0 0 0 1 to 223 255 255 254    Port No  Blank   When  General Socket Fullpassive Connection Module  is selected  a value must be set    Setting range  1025 to 5548  5570 to 65534     7 SOCKET COMMUNICATION FUNCTION  7 1 Communication Using TCP 67    68    llDevices used in the sample program  The following table lists the device numbers used in the sample program and their applications     M3000   D3000 and D3001  M300 and M301 
188. unction modules and SLMP compatible devices in units of 1 bit     Bit devices  word devices  and buffer memory are indirectly    specified by index registers     0080H This command writes data to the buffer memory in intelligent function    modules and SLMP compatible devices in units of 1 word  16 bits      0083H This command writes data to the buffer memory in intelligent function    modules and SLMP compatible devices in units of 1 bit     0082H    0403H 0000H    This command writes data to the buffer memory in intelligent function  modules and SLMP compatible devices in units of 1 word  16 bits      This command reads data from word devices in units of 1 word or 2  words by randomly specifying device numbers     Device Read  Random    This command reads data from a bit device or word device in units of  1 bit        This command writes data to bit devices in units of 1 bit             ASCII  1792 points  BIN  3584 points    ASCII  480 words  7680 points   BIN  960 words  15360 points     ASCII  1792 points  BIN  3584 points       ASCII  480 words  7680 points   BIN  960 words  15360 points     ASCII  1792 points  BIN  3584 points    ASCII  480 words  7680 points   BIN  960 words  15360 points     ASCII  1792 points  BIN  3584 points    ASCII  480 words  7680 points   BIN  960 words  15360 points     ASCII  1792 points  BIN  3584 points    ASCII  480 words  7680 points   BIN  960 words  15360 points     ASCII  1972 points  BIN  3584 points    ASCII  480 words  7680 points 
189. unts of the MELSOFT connection  direct connection  are stored  R  continuous unlock failure count    SD10680 Open completion signal Open completion signal for each connection    bO  to  b7   Connection No  1 to No  8  0  Closed or not open  1  Open completed       SD10681 Open request signal Open request signal for each connection    bO  to  b7   Connection No  1 to No  8  0  No open request  1  Requesting open    SD10682 Socket communications receive Socket communication receive state signal for each connection   status signal  b0  to  b7   Connection No  1 to No  8  0  Data not received  1  Data reception completed    SD10692 Predefined protocol ready Stores the ready status of the protocol setting data     SD10710 Predefined protocol setting data   When a protocol setting data error is detected  stores the protocol number where the error  check area protocol number was detected   Protocol is checked in order from smallest protocol number  The protocol number where  an error was detected first is stored   0  No error  1 to 64  Protocol number  65535  Cannot identify      SD10711 Predefined protocol setting data   O is stored if an error is detected in the packet setting or element setting   check area setting type 1 is stored if an error is detected in the protocol detailed setting   Valid when protocol  number value is 1 to 128   0  Packet setting or element setting  1  Protocol preferences  65535  Cannot identify         1 1 8 APPENDIX  Appendix 1 List of Special Device A
190. upon completion of the instruction   Number of elements  2    d  1 also turns on when failed      1 In the case of the ST language and the FBD LD language  U displays as UO        BApplicable devices       CENE NN CANO NENNEN  m 29 m Jede ge eger     14 T  ST  C cannot be used     7 SOCKET COMMUNICATION FUNCTION  7 4 Socket Communication Function Instructions ai    78    Control data    Specify which settings are used to open a connection   parameter settings configured by an engineering tool or  control data settings  s2   2 to  s2   9      s2  0 Execution completion  type     s2  1 Completion status     s2  2 Application setting area     s2  3 Host Station Port No      s2  4 Target device IP   s2  5 address       s2  6 Target device port  number      0000H    Connection is opened according to the settings set in   External Device Configuration  of module parameter   8000H    Connection is opened according to the values specified for  control data  s2   2 to  s2   9        Completion status is stored   0000H  Completed   Other than 0000H  Failed  Error code   Refer to k  Page 111 Error Codes     b15b14 b13tob11b10 b9 b8 b7 to b0     s2  2   4    o0  sya    0         1  Communication method  protocol    0  TCP IP   1  UDP IP    2  Means for communication   1  Socket communication function is used  fixed    3  O  fixed     4  Open method   00  Active open or UDP IP   10  Unpassive open   11  Fullpassive open    Specify the port number of the host station     Specify the IP add
191. utions in connection No 8   0  Protocol not executed  1 to 65535  Number of executions    Cancels the protocol executed in connection No 8   0  No cancellation instruction   1  Cancellation request  set by user    2  Cancellation completed  set by system         1 The setting value may be unidentifiable  65535  in the following cases     When a setting that cannot be detected by the current CPU module version is written    When protocol setting data is broken  hardware failure     APPENDIX    Appendix 1 List of Special Device Applications and Assignments       127    INDEX       A   Active Open ua eai choke Bee ew GA aw  Ren re a 63  E   Engineering tool              llle  T   External device       nanana 8  F   Fullpassive      2    ee ee 63  I   Intelligent function module                    T  L   Lock processing     n on aana 94  P   Passive Open           l l eee 63  S   SLE    ocean se   ea hee I eren pan ui UR o GE See 8  T   pne                                           10  U   BP                               o 10   Unlock processing               llle  94   Unpassive           l l 63    128    MEMO       129    REVISIONS           October 2014 First Edition    January 2015 Added functions  Data code of ASCII to SLMP  Predefined protocol support function  Ethernet diagnostics  MAdded or modified parts  RELEVANT MANUALS  TERMS  Chapter 1  2  3  Section 4 1  Chapter 5  6  Section 7 2  7 3  7 4   10 1  10 2  Appendix 1    This manual confers no industrial property right
192. x xx  Ethernet       Sending UDP data from the port number A    of CPU module to the port number L of the     communication target device 1                          Communication target device 1   IP address  yy yy yy yy                                                                         Sending UDP data from the port number L    of the communication target device 1 to the    port number A of CPU module    Sending data via TCP connection    il  Ep  AL       c    VJ Sending data via TCP connection    Port  number L                      Communication target device 2   IP address  zz zz zz zz                                                                                       Port  number M                   of CPU module to the port number N of the       Sending UDP data from the port number C      communication target device 3                    Communication target device 3   IP address  ww ww ww ww                                                                             Sending UDP data from the port number N     Of the communication target device 3 to the       Port  number N          7 SOCKET COMMUNICATION FUNCTION    62    7 1    Communication Using TCP    TCP  Transmission Control Protocol  establishes a connection to a device with a port number  and performs reliable data  communication    To perform socket communication using TCP  confirm the following in advance      IP address and port number of the target device     IP address and port number of the CPU modu
193. yte is sent at transmission of the last byte  When   Unit of Stored Data  is  Lower Bytes Only  and  Data Length  is an odd number of bytes  data without  any byte swap is sent at transmission of the last byte    When receiving  When  Enable  Upper   gt  Lower   is selected  data in the upper byte and lower byte are  swapped by word and sent  When  Unit of Stored Data  is  Lower Byte   Upper Byte  and  Data Length   is an odd number of bytes  the last byte is stored to the upper byte  When  Unit of Stored Data  is   Lower Bytes Only  and  Data Length  is an odd number of bytes  the last byte is stored without any  byte swap     Data Storage Area Specify the start device for storing the variable value   Specification The settable devices are listed below     User device       e Input  X      Output  Y      Internal relay  M     Latch relay  L      Link relay  B      Data register  D   e Link register  W   File register       File register  R      1 Do not set local devices      2 Set within the device range specified with  Device Label Memory Area Setting  in  Memory Device Setting  under  CPU Parameters      6 PREDEFINED PROTOCOL SUPPORT FUNCTION    6 3 Packet Elements    The following figures show the configuration of the data storage area     When  Fixed Length Variable Length  is  Fixed Length     The area after the device number specified on the  Element Setting  window becomes the data storage area   The occupied data storage area differs according to the  Unit of Stored
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Acer 4100 Laptop User Manual  インパクトレンチの正しい使い方 - 一般社団法人日本自動車機械工具協会  RLX-IFHE User Manual  Descargar manual  E-ConsentPro 2.1 Benutzerhandbuch DesktopClient  Vivitek H5080 data projector  SRG SERIES MANUEL rack fixe Gaz au feu de bois BBQ fumeur Four  Origin Storage 750GB TLC SATA  Kodak C613ZWA digital camera  Konica Minolta Z5 Digital Camera User Manual    Copyright © All rights reserved. 
   Failed to retrieve file