background image

Communications

Machine Controller MP3000 Series

USER'S MANUAL

MANUAL NO.   SIEP C880725 12B

1

2

Outline of Communications

Ethernet Communications

Содержание MP3000 Series

Страница 1: ...Communications Machine Controller MP3000 Series USER S MANUAL MANUAL NO SIEP C880725 12B 1 2 Outline of Communications Ethernet Communications...

Страница 2: ...liabil ity is assumed with respect to the use of the information contained herein Moreover because Yaskawa is constantly striving to improve its high quality products the informa tion contained in thi...

Страница 3: ...ering Tool PLC A Programmable Logic Controller MPE720 Engineering Tool Version Number In this manual the operation of MPE720 is described using screen captures of MPE720 version 7 For this reason the...

Страница 4: ...procedures that are required to use the Machine Controller from installation and connections to settings programming trial operation and debugging Machine Controller MP3000 Series MP3200 MP3300 Troub...

Страница 5: ...000 MP3000 Series Machine Controller User s Manual SIEP C880761 03 Describes how to operate MPE720 ver sion 7 Continued from previous page Function Manual Name Manual Number Contents Indicates precaut...

Страница 6: ...ient humidity that exceeds the storage conditions Locations that are subject to rapid temperature changes and condensation Locations that are subject to corrosive or inflammable gas Locations that are...

Страница 7: ...re is a risk of malfunction or damage Do not step on the Machine Controller or place heavy objects on the Machine Controller There is a risk of injury or an accident Do not block the air exhaust ports...

Страница 8: ...power supply to the CPU Unit CPU Module is turned ON after the external power supply e g the 24 V I O power supply the outputs from the CPU Unit CPU Module may momentarily turn ON when the power suppl...

Страница 9: ...tected by the Machine Controller through self diagnosis There is a risk of injury device damage or burning Do not attempt to disassemble or repair the Machine Controller There is a risk of electrical...

Страница 10: ...guards Always replace the cover or protective guard as specified first and then operate the products in accordance with the manual The illustrations that are presented in this manual are typical exam...

Страница 11: ...ed product in a manner in which it was not originally intended Causes that were not foreseeable with the scientific and technological understanding at the time of shipment from Yaskawa Events for whic...

Страница 12: ...operty Systems that require a high degree of reliability such as systems that supply gas water or electricity or systems that operate continuously 24 hours a day Other systems that require a similar h...

Страница 13: ...eption with the MP3000 as a Slave 2 20 Using the MSG RCVE Function with the MP3000 as a Slave 2 30 Using I O Message Communications with the MP3000 as the Master 2 42 Using the MSG SNDE Function with...

Страница 14: ...ic Reception with the MP3000 as a Slave 2 262 Using the MSG RCVE Function with the MP3000 as a Slave 2 270 Using the MSG SNDE Function with the MP3000 as the Master 2 280 Message Functions 2 291 2 11...

Страница 15: ...ter describes the communications of the MP3000 Con troller 1 1 Overview 1 2 1 2 System Configuration Examples 1 3 Configuration with the MP3200 1 3 Configuration with the MP3300 1 4 Outline of Communi...

Страница 16: ...The following table describes the communication features Function Features Description Ethernet The MP3000 Controller supports multiple protocols to enable general purpose Ether net communications wit...

Страница 17: ...et Ethernet Up to 42 stations including I O Up to 32 stations can be Servos Host PLC I O Servomotor Servomotor Servomotor MP3200 Reference type SERVOPACK with MECHATROLINK III Communications I O Modul...

Страница 18: ...egrated Engineering Tool Version 7 24 VDC power supply AC power supply or status monitoring device 24 VDC power supply or AC power supply Up to 21 stations including I O Up to 16 stations can be Servo...

Страница 19: ...Reception with the MP3000 as a Slave 2 20 Using the MSG RCVE Function with the MP3000 as a Slave 2 30 Using I O Message Communications with the MP3000 as the Master 2 42 Using the MSG SNDE Function wi...

Страница 20: ...LC MODBUS TCP Protocol 2 250 Using Automatic Reception with the MP3000 as a Slave 2 250 Using I O Message Communications with the MP3000 as the Master 2 257 2 10 Communications with a JTEKT PLC TOYOPU...

Страница 21: ...15 Using Message Functions 2 359 Function Codes 2 359 Using Function Codes 2 360 2 16 Details on Protocols 2 378 Extended MEMOBUS Protocol 2 378 MEMOBUS Protocol 2 402 No protocol Communications 2 41...

Страница 22: ...ended MEMOBUS Yaskawa s extended MEMOBUS protocol Master Slave A compatible 1E frame A protocol for Mitsubishi PLCs Master Slave QnA compatible 3E frame A protocol for Mitsubishi PLCs Master Slave FIN...

Страница 23: ...xtended MEMOBUS Write 2 043 words Read 2 044 words MELSEC A compatible 1E Write 256 words Read 256 words MELSEC QnA compatible 3E Write 960 words Read 960 words MODBUS TCP Write 100 words Read 125 wor...

Страница 24: ...efinition Dialog Box is used to make detailed definitions for Ethernet communica tions Displaying the 218IFD Detail Definition Dialog Box Follow these steps to display the 218IFD Detail Definition Dia...

Страница 25: ...layed here 218IFD Detail Definition Dialog Box Details The 218IFD Detail Definition Dialog Box has two tab pages Transmission Parameters and Status Each tab page is displayed by clicking the correspon...

Страница 26: ...can be set to 1 to 254 When a subnet mask is not being used enter 0 in fields 1 to 4 Number Item Description IP Address Sets the IP address of the local station Subnet Mask Sets the subnet mask for th...

Страница 27: ...ering communica tions with the MPE720 The default is 9999 Note 1 If this value is changed also change the port set in the Engineering Port Box in the Detail Setting Dialog Box of the Communications Po...

Страница 28: ...en 1 and 20 With Ethernet communications the connection number is used to identify remote stations The connection number corresponds to parameter 10 Remote Connection Number in the MSG SNDE and MSG RC...

Страница 29: ...power cables If the problem persists even after implementing the above countermeasures implement the following countermeasures 1 Change to TCP connection protocol 2 If you continue to use UDP add the...

Страница 30: ...0 and the remote station s port number is set to 0 the connection is set in the Unpassive Open Mode In Unpassive Open Mode the MP3000 connects to any station that accesses its connection number If mul...

Страница 31: ...t Register IW00000 to IW17FFF Sets the first register for input registers that are used with automatic reception IW00000 Readout Write in of Coil MW00000 to MW1048576 Sets the first register for readi...

Страница 32: ...gisters data relays that are used with automatic reception GW00000 Write in width of Data Relay Register HI GW00000 to GW2097151 Sets the high end of the range for writ ing data registers data relays...

Страница 33: ...s Transmission Status The status of each connection is displayed Error Status Details on the error are displayed if an error has occurred in the communications status 1 If the Status Tab is clicked wi...

Страница 34: ...he remote station when establish ing a connection with an unpassive open for TCP The command was reset because the remote station rejected the connection that was attempted for the MSG SNDE function C...

Страница 35: ...the connection parameters on the Transmission Parameters Tab Page is displayed here Protocol Type The protocol type that is set in the connection parameters on the Transmission Parameters Tab Page is...

Страница 36: ...on Using Automatic Reception with the MP3000 as a Slave page 2 98 MP3000 Mitsubishi PLCs Q A Series I O mes sage com munications Using I O Message Communications with the MP3000 as the Master page 2 1...

Страница 37: ...indows PC FA Server MP3000 Automatic reception Using Automatic Reception with the MP3000 as a Slave page 2 316 WindowsPC Visual Basic Application Extended MEMOBUS Windows PC Visual Basic Appli cation...

Страница 38: ...MSG RCVE function When the MP3000 acts as the master communications can take place using I O message communications or the MSG SNDE function Using Automatic Reception with the MP3000 as a Slave This...

Страница 39: ...DY ALM TX RUN ERR BAT MON CNFG INT SUP STOP SW1 OFF ON BATTERY CPU I O 218IF 01 ERR COL RX RUN STRX TX INIT TEST ON OFF PORT 10Base T MW00000 Ethernet MW00001 MW00099 MW00000 MW00001 MW00099 MW00098 M...

Страница 40: ...communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Boxes enter t...

Страница 41: ...Connect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 192 168 001 002 Enter 10001 in the Port No Box for the other device 5 Cl...

Страница 42: ...tion 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are used while a...

Страница 43: ...ation Definition Tab Page The 218IF Detail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 002 Select Edit L...

Страница 44: ...lowing address in the Node IP Address Boxes 192 168 001 001 Enter 10001 in the Node Port Box Select TCP in the Connect Type Box Select Extended MEMOBUS in the Protocol Type Box Select BIN in the Code...

Страница 45: ...nications with MP series Controllers Using Automatic Reception with the MP3000 as a Slave 2 27 Ethernet Communications 4 Create a ladder program for the MSG SND function A ladder program example is sh...

Страница 46: ...2 4 Communications with MP series Controllers Using Automatic Reception with the MP3000 as a Slave 2 28...

Страница 47: ...t receiving messages The system will automatically start the message reception operation No further operation is required 2 Turn ON the Execute Bit e g DB000200 for the MSG SND function in the MP2300...

Страница 48: ...ries Controller by using the MSG RCVE function MP2300 MP3000 218IFD Ethernet Ethernet DC24V DC 0V MP2300 YASKAWA TEST RDY ALM TX RUN ERR BAT MON CNFG INT SUP STOP SW1 OFF ON BATTERY CPU I O 218IF 01 E...

Страница 49: ...0101 MW00199 MW00198 MW00198 DC24V DC 0V MP2300 YASKAWA TEST RDY ALM TX RUN ERR BAT MON CNFG INT SUP STOP SW1 OFF ON BATTERY CPU I O 218IF 01 ERR COL RX RUN STRX TX INIT TEST ON OFF PORT 10Base T Ethe...

Страница 50: ...e communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Boxes enter...

Страница 51: ...the other device 192 168 001 002 Enter 10002 in the Port No Box for the other device Note Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If m...

Страница 52: ...double click the Setting Button in the Detail Column 8 Select the Disable Option on the Automatically Reception Tab Page and then click the OK But ton Note Changes made to the communications or conne...

Страница 53: ...cations with MP series Controllers Using the MSG RCVE Function with the MP3000 as a Slave 2 35 Ethernet Communications 9 Create a ladder program for the MSG RCVE function A ladder program example is s...

Страница 54: ...2 4 Communications with MP series Controllers Using the MSG RCVE Function with the MP3000 as a Slave 2 36 10 Save the data to flash memory This concludes the settings for using the MP3000 as a slave...

Страница 55: ...ration Definition Tab Page The 218IF Detail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 002 Select Edit...

Страница 56: ...llowing address in the Node IP Address Boxes 192 168 001 001 Enter 10002 in the Node Port Box Select TCP in the Connect Type Box Select Extended MEMOBUS in the Protocol Type Box Select BIN in the Code...

Страница 57: ...ications with MP series Controllers Using the MSG RCVE Function with the MP3000 as a Slave 2 39 Ethernet Communications 4 Create a ladder program for the MSG SND function A ladder program example is s...

Страница 58: ...2 4 Communications with MP series Controllers Using the MSG RCVE Function with the MP3000 as a Slave 2 40 5 Save the data to flash memory This concludes the setup...

Страница 59: ...ram example message reception starts immediately after the system starts No further operation is required 2 Turn ON the Execute Bit e g DB000200 for the MSG SND function in the MP2300 to start sending...

Страница 60: ...3 When communicating with multiple remote devices or when you need to perform any operations other than reading or writing to hold registers use the Send Message function MSG SNDE MP2300 MP3000 218IF...

Страница 61: ...P DC24V DC 0V MP2300 YASKAWA TEST RDY ALM TX RUN ERR BAT MON CNFG INT SUP STOP SW1 OFF ON BATTERY CPU I O 218IF 01 ERR COL RX RUN STRX TX INIT TEST ON OFF PORT 10Base T IW0000 IW0063 OW00C7 MW00200 MW...

Страница 62: ...Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000...

Страница 63: ...series Controller Select TCP in the Connect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 192 168 001 002 Enter 10005 and 10006...

Страница 64: ...m on the remote device Enter MW00300 in the Write Reg Box as the register type and first address to write to on the remote device 6 Click the OK Button 7 Click the Yes Button in the Transmission Param...

Страница 65: ...figuration Definition Tab Page The 218IF Detail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 002 Select E...

Страница 66: ...e following address in the Node IP Address Boxes 192 168 001 001 Enter 10005 and 10006 in the Node Port Boxes Select TCP in the Connect Type Box Select Extended MEMOBUS in the Protocol Type Box Select...

Страница 67: ...function A ladder program example is shown below This ladder program example is for receiving the read request Ladder programming for receiving the write request is required separately X 01 MSG RCV X...

Страница 68: ...to the MP2300 to start receiving messages In the ladder program example message reception starts immediately after the system starts No further operation is required 2 Turn ON the power to the MP3000...

Страница 69: ...G SNDE function together with I O message communications by maintaining a separate connection This section describes how to communicate with an MP2300 series Controller by using the MSG SNDE function...

Страница 70: ...TX RUN ERR BAT MON CNFG INT SUP STOP SW1 OFF ON BATTERY CPU I O 218IF 01 ERR COL RX RUN STRX TX INIT TEST ON OFF PORT 10Base T MW00400 Ethernet MW00401 MW00499 MW00400 MW00401 MW00499 MW00498 MW00498...

Страница 71: ...layed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Addres...

Страница 72: ...168 001 002 Enter 10003 in the Port No Box for the other device Note Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are...

Страница 73: ...r 2 55 Ethernet Communications Note Changes made to the communications or connection parameters will become effective only after the changes have been saved to flash memory and the power supply has be...

Страница 74: ...4 Communications with MP series Controllers Using the MSG SNDE Function with the MP3000 as the Master 2 56 9 Save the data to flash memory This concludes the settings for using the MP3000 as the maste...

Страница 75: ...guration Definition Tab Page The 218IF Detail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 002 Select Edi...

Страница 76: ...G RCV function Refer to the following section for a ladder program example The sample uses a different communications buffer channel and connection number Setting Up the Other Device MP2300 to Connect...

Страница 77: ...otocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B VAL Executes the transmission 2 Abort B VAL Forces the transmission to end 3 Dev Typ I REG Commu...

Страница 78: ...uit number for the communications device Specify the same circuit number as displayed in the MPE720 Module Configuration Definition Tab Page The following table gives the valid circuit numbers Communi...

Страница 79: ...atically used for the parameter list The parameter list is used by inputting function codes and relevant parameter data It is also where the process results and status are output When executing more t...

Страница 80: ...has been completed normally Error Specify the bit that shows if an error occurred when sending the message When an error occurs the Error Bit will turn ON only for one scan The following diagrams sho...

Страница 81: ...protocol 12 Function Code Sets the code of the function in the Extended MEMOBUS protocol 13 Reserved for system 14 Remote Station Data Address Lower Word Sets the data address to read write at the rem...

Страница 82: ...ignments and it is followed by a detailed description of each assign ment REQUEST This bit gives the status of the processing request for the MSG SNDE function System 24 For system use 25 Reserved for...

Страница 83: ...xecution was completed 4 FMT_NG A parameter formatting error occurred 5 SEQ_NG A command sequence error occurred 6 RESET_NG A reset occurred 7 REC_NG A data reception error error detected in the lower...

Страница 84: ...hex 6 Connection number error The connection number is out of range Check PARAM10 Connection Number 88 hex 7 Data reception error An error response was received from the communications device Check t...

Страница 85: ...station rejected an attempt to open a TCP connection 5 Connection Error M RCV An error occurred while passively opening a TCP connection 6 System Error A socket polling error occurred while receiving...

Страница 86: ...x Not used for the Extended MEMOBUS protocol M M 01 hex B Reads the states of coils 02 hex B Reads the states of input relays 03 hex W Reads the contents of hold registers 04 hex W Reads the contents...

Страница 87: ...xadecimal Function Code Target Data Type Function Data Address Setting Range 00 hex Not used for the Extended MEMOBUS protocol Disabled 01 hex B Reads the states of coils 1 0 to 65535 0 to FFFF hex 02...

Страница 88: ...ded 3 0 to 65534 0 to FFFE hex 0E hex W Writes to non consecutive hold registers extended 3 0 to 65534 0 to FFFE hex 0F hex B Changes the states of multiple coils 1 0 to 65535 0 to FFFF hex 10 hex W W...

Страница 89: ...hex W Reads the contents of input registers 1 to 125 05 hex B Changes the state of a single coil Disabled 06 hex W Writes to a single hold register Disabled 07 hex Not used for the Extended MEMOBUS p...

Страница 90: ...e station by specifying the register type in the write data address table Reserved for System PARAM23 This parameter is used by the system Do not change the value of PARAM19 from a user program or by...

Страница 91: ...ations buffer that is currently in use Reserved for System PARAM25 to PARAM28 This parameter is used by the system A user program must set PARAM24 to 0 on the first scan after startup Thereafter do no...

Страница 92: ...ied circuit of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B VAL Execu...

Страница 93: ...y any channel number provided it is within the valid range Type Code Communications Protocols Remarks 1 MEMOBUS Select this protocol when using the Extended MEMOBUS protocol MEMOBUS is automatically c...

Страница 94: ...re automatically used for the parameter list The parameter list is used by inputting the connection number and relevant parameter data It is also where the process results and status are output Commun...

Страница 95: ...ed abort processing has been completed normally Error Specify the bit that shows if an error occurred when receiving the message When an error occurs the Error Bit will turn ON only for one scan The f...

Страница 96: ...rent function 02 Detail Error Code Lower Word Gives the details of an error 03 Detail Error Code Upper Word 04 Status 1 Gives the communications status 05 Status 2 Gives status information on the most...

Страница 97: ...for a data relay GB 29 Data relay offset upper word 30 Data register offset lower word Sets the offset word address for a data register GW 31 Data register offset upper word 32 Output coil offset low...

Страница 98: ...give the execution result of the MSG RCVE function Processing Result Value Meaning 00xx hex Busy 10xx hex Complete 8yxx hex Error Bit Status Meaning 1 Processing is being requested 0 Processing reques...

Страница 99: ...ssion RESULT Code Hex Meaning When RESULT 4 FMT_NG Parameter Formatting Error 00 No error 01 Connection number out of range 02 Watchdog error for MEMOBUS response 03 Error in number of retries setting...

Страница 100: ...t the sending node This error occurs when using function code 434D hex or 434E hex Status 1 Value Meaning Description 1 IDLE The connection is idle 2 WAIT The connection is waiting to be made 3 CONNEC...

Страница 101: ...IFD enter the connection number The valid setting range is given in the following table Note Enter the same connection number as displayed in the 218IFD Detail Definition Dialog Box in the MPE720 Stat...

Страница 102: ...d for the Extended MEMOBUS protocol 08 hex Performs a loopback test 09 hex W Reads the contents of hold registers extended 0A hex W Reads the contents of input registers extended 0B hex W Writes to ho...

Страница 103: ...535 0 to FFFF hex 06 hex W Writes to a single hold register 2 0 to 65534 0 to FFFE hex 07 hex Not used for the Extended MEMOBUS protocol Disabled 08 hex Performs a loopback test Disabled 09 hex W Read...

Страница 104: ...ack by the number of words specified by the offset The data address cannot be offset in the forward direction The Coil Offset parameter is used when the function code is 01 05 0F 4341 4345 or 434F hex...

Страница 105: ...he Data Relay Offset parameter is used when the function code is 4341 4345 or 434F hex The address is offset by the long word offset in PARAM28 and PARAM29 Data Register Offset PARAM30 and PARAM31 The...

Страница 106: ...uests from the remote sta tion An error will occur if the write request is outside this allowable range Specify the writing range with word addresses Set the writing range so that it satisfies the fol...

Страница 107: ...ications buffer that is currently in use Reserved for System PARAM49 to PARAM51 This parameter is used by the system Use the following settings to set the allowable writing range of O register address...

Страница 108: ...a Slave This section describes how to communicate with a Touch Panel from Digital Electronics Corporation by using automatic reception Note You can also use the MSG RCVE function to communicate For i...

Страница 109: ...0 slave is displayed on the Touch Panel and written from the Touch Panel to the same register TCP MW00100 Ethernet GMW00100 Touch Panel remote station IP address 192 168 001 002 MP3000 local station S...

Страница 110: ...ommunications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Boxes enter the...

Страница 111: ...ect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 192 168 001 002 Enter 10001 in the Port No Box for the other device 5 Click t...

Страница 112: ...2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are used while autom...

Страница 113: ...setting If you enable the automatic assignment option by selecting the Auto Check Box next to the Port No Box on the Communication Setting Dialog Box the port number for the GP3000 series Touch Panel...

Страница 114: ...Controller to connect to Set the IP address port number and data code to the same values set in the 218IFD Detail Definition Dia log Box for the MP3000 218IFD Detail Definition Dialog Box Note 1 Spec...

Страница 115: ...Starting Communications 1 Turn ON the power to the MP3000 to start receiving messages The system will automatically start the message reception operation No further operation is required 2 Start the G...

Страница 116: ...to communicate with a Mitsubishi Q A series PLC by using automatic recep tion Note When using the A compatible 1E Frame protocol to communicate with a Mitsubishi PLC the PLC can read from and write t...

Страница 117: ...MW00000 to MW00099 hold registers in the MP3000 slave TCP MW00000 Ethernet Ethernet MW00001 MW00099 D00201 D00202 D00300 MW00098 D00299 MP3000 local station Mitsubishi MELSEC Q A series PLC Port numbe...

Страница 118: ...played 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Addre...

Страница 119: ...lect TCP in the Connect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 192 168 001 002 Enter 10001 in the Port No Box for the ot...

Страница 120: ...tomatic reception 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are...

Страница 121: ...formation on MELSEC devices Parameter Description Network type Ethernet Starting I O No As required Network No As required Group No As required Station No As required Mode Online Parameter Description...

Страница 122: ...l automatically start the message reception operation No further operation is required 2 Use an OPEN instruction in the MELSEC Q A series PLC to establish a connection with the MP3000 then use a BUFSN...

Страница 123: ...to the following registers by using inter CPU Module communications Bit device registers X Y read only M and B Word device registers D W and R A bit device register is read or written in units of 16...

Страница 124: ...the D00100 to D00199 data registers in the Mitsubishi Q A series PLC slave c d c d c d c d TCP Ethernet Ethernet IW0000 IW0063 OW00C7 D00000 D00099 D00199 OW0064 D00100 MP3000 local station Mitsubish...

Страница 125: ...Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the G...

Страница 126: ...h a register read write is initiated Therefore for this example the connected remote device must support a message reception function to receive two messages Enter IW0000 in the Input Reg Box as the r...

Страница 127: ...o flash memory and the power supply has been cycled This concludes the settings for using the MP3000 as the master Setting Up the Remote Device Mitsubishi Q A series PLC Use the following procedure to...

Страница 128: ...pen system Full passive Full passive Fixed buffer As required As required Fixed buffer communication As required As required Pairing open As required As required Existence confirmation As required As...

Страница 129: ...circuit of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B VAL Executes...

Страница 130: ...number for the communications device Specify the same circuit number as displayed in the MPE720 Module Configuration Definition Tab Page The following table gives the valid circuit numbers Communicat...

Страница 131: ...ord are automatically used for the parameter list The parameter list is used by inputting function codes and relevant parameter data It is also where the process results and status are output When exe...

Страница 132: ...rt processing has been completed normally Error Specify the bit that shows if an error occurred while sending the message When an error occurs the Error Bit will turn ON only for one scan The followin...

Страница 133: ...status of the current function 02 Detail Error Code Lower Word Gives the details of an error 03 Detail Error Code Upper Word 04 Status 1 Gives the communications status 05 Status 2 Gives status infor...

Страница 134: ...ad write at the remote station Use word addresses for registers bit addresses for relays or coils 15 Remote Station Data Address Upper Word 16 Remote Station Register Type Sets the register type to re...

Страница 135: ...ns 1 SEND_OK The message was sent normally 2 REC_OK The message was received normally 3 ABORT_OK The request to abort execution was completed 4 FMT_NG A parameter formatting error occurred 5 SEQ_NG A...

Страница 136: ...s sent or received Check PARAM12 Function Code 82 hex 2 Address setting error The setting of one or more of the following parameters is out of range Check the settings PARAM14 and PARAM15 Remote Stati...

Страница 137: ...t could not be created 2 Local Port Number Error Setting error in local station port number 3 Changing Socket Attribute Error A system error occurred while setting the socket attri bute 4 Connection E...

Страница 138: ...not used for the A compatible 1E Frame protocol Function Code PARAM12 Set the function code to send You can use the functions that are registered to the function codes Status 5 Value Meaning Descript...

Страница 139: ...one word Do not change the value of PARAM13 from a user program or by any other means If the first address is MW01000 enter 1000 decimal or 3E8 hexadecimal Bit Device Conversion Table Device Device R...

Страница 140: ...ons Notation Function Code Data Address Setting Range Correspond ing Register Addresses TN TN000 to TN255 Decimal 04 and 0A hex Input reg isters 0 to 255 MW00000 to MW00255 CN CN000 to CN255 Decimal 0...

Страница 141: ...hex 05 hex Sets resets word devices in units of one point by specifying a device number 1 to 40 points 31 hex 60 hex Writes to a fixed buffer in units of one word See the following table 32 hex 61 he...

Страница 142: ...ts the target data type to MB for bits and MW for words 1 G Sets the target data type to GB for bits and GW for words 2 I Sets the target data type to IB for bits and IW for words 3 O Sets the target...

Страница 143: ...circuit of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B VAL Executes...

Страница 144: ...E720 Module Configuration Definition Tab Page The following table gives the valid circuit numbers Device Type Code 218IFD 16 Type Code Communications Protocol Remarks 1 MEMOBUS Select this protocol wh...

Страница 145: ...are automatically used for the parameter list The parameter list is used by inputting the connection number and relevant parameter data It is also where the process results and status are output When...

Страница 146: ...ced abort processing has been completed normally Error Specify the bit that shows if an error occurred while receiving the message When an error occurs the Error Bit will turn ON only for one scan The...

Страница 147: ...ives the status of the current function 02 Detail Error Code Lower Word Gives the details of an error 03 Detail Error Code Upper Word 04 Status 1 Gives the communications status 05 Status 2 Gives stat...

Страница 148: ...address for a data relay GB 29 Data Relay Offset Upper Word 30 Data Register Offset Lower Word Sets the offset word address for a data register GW 31 Data Register Offset Upper Word 32 Output Coil Off...

Страница 149: ...ng request for the MSG RCVE function RESULT These bits give the execution results of the MSG RCVE function Processing Result Value Meaning 00xx hex Busy 10xx hex Complete 8yxx hex Error Bit Status Mea...

Страница 150: ...se is received 9 M_REC MEMOBUS command reception C MR_SEND MEMOBUS response transmission RESULT Code Hex Meaning When RESULT 4 FMT_NG Parameter Formatting Error 00 No error 01 Connection number out of...

Страница 151: ...aning Description 1 IDLE The connection is idle 2 WAIT The connection is waiting to be made 3 CONNECT The connection is established Status 2 Value Meaning Description 0 No error Normal 1 Socket Creati...

Страница 152: ...lid setting range is given in the following table Note Enter the same connection number as displayed in the 218IFD Detail Definition Dialog Box in the MPE720 Options PARAM11 This parameter is not used...

Страница 153: ...CPU Module Number PARAM18 This parameter is not used for the A compatible 1E Frame protocol Reserved for System PARAM19 This parameter is used by the system Function Code Common Instructions for MELS...

Страница 154: ...ARAM24 and PARAM25 Input Register Offset Sets the offset to the word address for an input register PARAM26 and PARAM27 Hold Register Offset Sets the offset to the word address for a hold register Func...

Страница 155: ...when using the following function codes 05 hex Changes the state of a single coil 06 hex Writes to a single hold register 0B hex Writes to hold registers extended 0E hex Writes to non consecutive hol...

Страница 156: ...tocol For System Use PARAM48 This parameter is used by the system It contains the channel number of the communications buffer that is currently in use Reserved for System PARAM49 to PARAM51 This param...

Страница 157: ...he MP3000 as the Master This section describes how to perform communications with a Mitsubishi Q QnA series PLC by using I O message communications QnA compatible 3E Frame Commands The commands that a...

Страница 158: ...rs ZR for ASCII data and B0 hex for binary data The normal access notation R for ASCII data and AF hex for binary data cannot be used Transfer Size The following table lists the size of data that can...

Страница 159: ...i Q QnA series PLC slave are read into the IW0100 to IW0163 input registers in the MP3000 master IW0100 Ethernet IW0101 IW0163 D02099 D02001 IW0162 D02098 D02000 Ethernet Ethernet TCP MP3000 local sta...

Страница 160: ...tail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 2...

Страница 161: ...n Module and 218FD Note The data update timing is the timing at which the CPU Function Module and 218IFD exchange data Communications with the remote device are performed asynchronously The data updat...

Страница 162: ...n for further information on MELSEC devices Parameter Description Network type Ethernet Starting I O No As required Network No As required Group No As required Station No As required Mode Online Param...

Страница 163: ...operation is required 2 Turn ON the power to the MP3000 to start transmitting messages The system will automatically start the message transmission operation No further operation is required Note The...

Страница 164: ...it devices in units of one point 0401 0000 Reads word devices in units of one point Batch write to the device memory 1401 0001 Writes bit devices in units of one point 1401 0000 Writes word devices in...

Страница 165: ...register in the MP3000 that corresponds to M001000 and set PARAM12 to 01 hex Note To access a relay specify a bit address in PARAM14 and PARAM15 For MB005748 this would be 9192 decimal Bit Device Conv...

Страница 166: ...ster in the map The data that is writ ten to the device in the Mitsubishi Q QnA series PLC is sent by forming a message that contains the con tents of the corresponding M register in the map 00000 F 0...

Страница 167: ...tten to the 000000 to 000799 internal M relays in the CPU Unit of the Mitsubishi Q QnA series PLC slave QnA compatible 3E Frame Hex Meaning Data Size Command Subcommand 218IFD 0401 0001 Reads bit devi...

Страница 168: ...displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Ad...

Страница 169: ...r the other device 192 168 001 002 Enter 5011 in the Port No Box for the other device Note Disable automatic reception for any connection for which message functions MSG SNDE are used If message funct...

Страница 170: ...2 152 7 Check the settings and double click the Setting Button in the Detail Column 8 Click the Disable Option on the Automatically Reception Tab Page Note Changes made to the communications or conne...

Страница 171: ...itsubishi PLC QnA compatible 3E Frame Protocol Using the MSG SNDE Function with the MP3000 as the Master 2 153 Ethernet Communications 9 Create a ladder program for the MSG SNDE function A ladder prog...

Страница 172: ...s with a Mitsubishi PLC QnA compatible 3E Frame Protocol Using the MSG SNDE Function with the MP3000 as the Master 2 154 10 Save the data to flash memory This concludes the settings for using the MP30...

Страница 173: ...MELSEC devices Parameter Description Network type Ethernet Starting I O No As required Network No As required Group No As required Station No As required Mode Online Parameter Description Communicati...

Страница 174: ...n ON the Execute Bit DB000200 in the message send func tion after six seconds has elapsed from when the low speed scan or high speed scan starts Thereafter the message send function is executed every...

Страница 175: ...d circuit of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B VAL Execute...

Страница 176: ...mber for the communications device Specify the same circuit number as displayed in the MPE720 Module Configuration Definition Tab Page The following table gives the valid circuit numbers Communication...

Страница 177: ...word are automatically used for the parameter list The parameter list is used by inputting function codes and relevant parameter data It is also where the process results and status are output When ex...

Страница 178: ...ort processing has been completed normally Error Specify the bit that shows if an error occurred while sending the message When an error occurs the Error Bit will turn ON only for one scan The followi...

Страница 179: ...e status of the current function 02 Detail Error Code Lower Word Gives the details of an error 03 Detail Error Code Upper Word 04 Status 1 Gives the communications status 05 Status 2 Gives status info...

Страница 180: ...ils 15 Remote Station Data Address Upper Word 16 Remote Station Register Type Sets the register type to read write at the remote station 17 Data Size Sets the size of the data to read write Use word s...

Страница 181: ...ng 0 CONN_NG The message send failed or connection ended with an error in Ethernet communi cations 1 SEND_OK The message was sent normally 2 REC_OK The message was received normally 3 ABORT_OK The req...

Страница 182: ...as sent or received Check PARAM12 Function Code 82 hex 2 Address setting error The setting of one or more of the following parameters is out of range Check the settings PARAM14 and PARAM15 Remote Stat...

Страница 183: ...et could not be created 2 Local Port Number Error Setting error in local station port number 3 Changing Socket Attribute Error A system error occurred while setting the socket attri bute 4 Connection...

Страница 184: ...d in the 218IFD Detail Definition Dialog Box in the MPE720 Options PARAM11 Set the I O unit number for the Mitsubishi PLC The value you set will be sent as the unit number as is even if it is not list...

Страница 185: ...d devices in units of one point 1402 hex 0000 hex 0E hex W Writes word devices in units of one point 0403 hex 0000 hex 0D hex W Reads word devices in units of one point 0619 hex 0000 hex 08 hex W Perf...

Страница 186: ...o TC002047 Decimal 02 hex Relays 10240 to 12287 MB006400 to MB00767F Counter Contacts CS000000 to CS001023 Decimal 02 hex Relays 12288 to 13311 MB007680 to MB00831F Counter Coils CC000000 to CC001023...

Страница 187: ...rameter is used by the system Local Station Data Address PARAM20 and PARAM21 Set the address of the read data destination or write data source in the MP3000 series Controller The address is set as the...

Страница 188: ...ets the target data type to MB for bits and MW for words 1 G Sets the target data type to GB for bits and GW for words 2 I Sets the target data type to IB for bits and IW for words 3 O Sets the target...

Страница 189: ...mote station on the specified circuit of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input I...

Страница 190: ...Therefore 10 connections may be used for sending and receiving at the same time by using channels 1 to 10 Type Code Communications Protocol Remarks 1 MEMOBUS Select this protocol when using the QnA c...

Страница 191: ...ort Bit turned ON while the Busy Bit is ON Complete Specify the bit that shows when the message reception has been completed The Complete Bit turns ON only for one cycle when message reception or forc...

Страница 192: ...tput Error To receive another message keep the Execute Bit ON even after the completion of processing 1 scan t Input Execute Input Abort Output Busy Output Complete Output Error To receive another mes...

Страница 193: ...nd pass counter 07 Status 4 Gives the value of the receive pass counter 08 Status 5 Gives the value of the error counter 09 Status 6 Reserved for system Parameters 10 Inputs Connection Number Sets the...

Страница 194: ...Word Sets the offset address for an output register OW 35 Output Register Offset Upper Word 36 M register Writing Range LO Lower Word Sets the first address of the writing range for hold register coi...

Страница 195: ...unction RESULT These bits give the execution results of the MSG RCVE function Processing Result Value Meaning 00xx hex Busy 10xx hex Complete 8yxx hex Error Bit Status Meaning 1 Processing is being re...

Страница 196: ...or for MEMOBUS response 03 Error in number of retries setting 04 Error in cyclic area setting 05 CPU number error 06 Data address error 07 Data size error 08 Function code error Others Connection Numb...

Страница 197: ...d not be created 2 Local Port Number Error Setting error in local station port number 3 Changing Socket Attribute Error A system error occurred while setting the socket attri bute 4 Connection Error M...

Страница 198: ...ion number The valid setting range is given in the following table Note Enter the same connection number as displayed in the 218IFD Detail Definition Dialog Box in the MPE720 Options PARAM11 This para...

Страница 199: ...r means Bit Device Conversion Table Device QnA compatible 3E Frame Device Range Notation MEMOBUS Command First Address Register Address Input Relays X000000 to X001FFF Hexadecimal 02 hex Relays 00000...

Страница 200: ...remote station Remote CPU Module Number PARAM18 This parameter is not used for the QnA compatible 3E Frame protocol Reserved for System PARAM19 This parameter is used by the system Word Device Conver...

Страница 201: ...ARAM21 Coil Offset Sets the offset to the word address for a coil PARAM22 and PARAM23 Input Relay Offset Sets the offset to the word address for an input relay PARAM24 and PARAM25 Input Register Offse...

Страница 202: ...ended 0F hex Changes the states of multiple coils 10 hex Writes to multiple hold registers G Register Writing Range LO PARAM40 and PARAM41 This parameter is not used for the QnA compatible 3E Frame pr...

Страница 203: ...he communications buffer that is currently in use Reserved for System PARAM49 to PARAM51 This parameter is used by the system A user program must set PARAM48 to 0 on the first scan after startup There...

Страница 204: ...Automatic Reception with the MP3000 as a Slave This section describes how to communicate with an OMRON PLC by using automatic reception When an OMRON PLC is used as the master to execute FINS commands...

Страница 205: ...st Source Word operand of the RECV instruction specify the address in the OMRON CPU Unit that corresponds to the register address to read from in the MP3000 Name Command Code Hex I O Memory Type Hex M...

Страница 206: ...11 00000 to 01FF00 Word notation MW02048 to MW02559 Bit notation MB020480 to MB02559F Holding Area Word H000 to H511 00000 to 01FF00 Word notation MW02560 to MW03071 Bit notation MB025600 to MB03071F...

Страница 207: ...rs in the MP3000 slave MW00000 Ethernet MW00001 MW00099 D00000 D00001 D00099 MW00098 D00098 Ethernet FINS Ethernet TCP Binary 00 02 00 00 01 00 MP3000 local station Slave FINS Communications Unit addr...

Страница 208: ...ed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address B...

Страница 209: ...Address Boxes for the other device 000 000 000 000 Enter 0000 in the Port No Box for the other device Note The unit address and network address of the MP series Machine Controller are always 00 hex If...

Страница 210: ...age and then click the OK Button Note Refer to the following section for details on automatic reception 2 2 Detail Definition Setting Procedures page 2 6 The setting in the Node Address Box on the Oth...

Страница 211: ...he Ethernet Unit of the OMRON PLC When communicating with FINS UDP set the FINS UDP port setting to the same number as the remote sta tion port number of the MP3000 5 Set the FINS TCP connection param...

Страница 212: ...s in the MP3000 1 Turn ON the power to the MP3000 to start receiving messages The system will automatically start the message reception operation No further operation is required 2 Start the message s...

Страница 213: ...sed with the MSG RCVE func tion Using Automatic Reception with the MP3000 as a Slave FINS Commands page 2 187 I O Memory Data Areas and Corresponding Registers in the MP3000 Refer to the following sec...

Страница 214: ...125 words 16 to 2 000 bits B1 Reads Work Area words B2 Reads Holding Area words B3 Reads Auxiliary Area words 82 Reads DM Area words 1 to 999 words 01 02 B0 Writes to CIO Area words 1 to 50 words 16 t...

Страница 215: ...ll be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway...

Страница 216: ...or the other device Note Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are used while automatic reception is enabled th...

Страница 217: ...the Detail Column 8 Click the Disable Option on the Automatically Reception Tab Page 9 Click the Other Tab and enter 1 in the Node Address Box Note 1 Specify a node address that is not in use by any...

Страница 218: ...nications with an OMRON PLC FINS Communications Service Using the MSG RCVE Function with the MP3000 as a Slave 2 200 10 Create a ladder program for the MSG RCVE function A ladder program example is sh...

Страница 219: ...th an OMRON PLC FINS Communications Service Using the MSG RCVE Function with the MP3000 as a Slave 2 201 Ethernet Communications 11 Save the data to flash memory This concludes the settings for using...

Страница 220: ...mber of the MP3000 5 Set the FINS TCP connection parameters Use the following settings for FINS TCP connection number 1 Note The FINS TCP connection settings are not required when communicating with F...

Страница 221: ...start receiving messages In the ladder programming example the message receive function starts immediately after the scan starts in the MP3000 While the Machine Controller is operating a normally ON...

Страница 222: ...Name Command Code Hex I O Memory Type Hex Meaning MR SR Reading data from an I O memory area 01 01 B0 Reads CIO Area words B1 Reads Work Area words B2 Reads Holding Area words B3 Reads Auxiliary Area...

Страница 223: ...o read from in the OMRON PLC Note Word Specify word addresses Transfer Size The following table lists the size of data that can be transferred using I O message communications Use the data size within...

Страница 224: ...n the MP3000 master IW0100 Ethernet IW0101 IW01C7 D02000 D02001 D02199 IW01C6 D02198 Ethernet FINS Ethernet TCP Binary 00 02 00 00 01 00 MP3000 local station OMRON CS CJ CP series PLC remote station M...

Страница 225: ...8IFD Detail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following...

Страница 226: ...timing Box as the timing to update I O data between the CPU Function Module and 218IFD Note 1 In I O message communications a message is transmitted from separate ports if registers are both read and...

Страница 227: ...of the MP3000 are always 00 hex 2 The node address must be set for each connection Specify a node address that is not in use by any other device on the same network 7 Click the OK Button 8 Save the da...

Страница 228: ...r device on the same network Check with your network administrator for unused IP addresses This concludes the setup Starting Communications Use the following procedure to write the data in the DM Area...

Страница 229: ...SR Reading data from an I O memory area 01 01 B0 Reads CIO Area words B1 Reads Work Area words B2 Reads Holding Area words B3 Reads Auxiliary Area words 82 Reads DM Area words Writing data to an I O...

Страница 230: ...ing Data into D10000 Set PARAM14 and PARAM15 to the MW10000 register in the MP3000 that corresponds to D10000 and set PARAM12 to 0B or 10 hex Reading Data from W511 Set PARAM14 and PARAM15 to the MB02...

Страница 231: ...in word units It is not possible to write or read less than whole words Command Code Hex I O Memory Type Hex Meaning Data Size MR SR 01 01 B0 Reads CIO Area words 1 to 125 words 16 to 2 000 bits B1 R...

Страница 232: ...layed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Addres...

Страница 233: ...the Port No Box for the other device Note Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are used while automatic recept...

Страница 234: ...l Column 8 Click the Disable Option on the Automatically Reception Tab Page 9 Click the Other Tab and enter 1 in the Node Address Box Note 1 Specify a node address that is not in use by any other devi...

Страница 235: ...an OMRON PLC FINS Communications Service Using the MSG SNDE Function with the MP3000 as the Master 2 217 Ethernet Communications 10 Create a ladder program for the MSG SNDE function A ladder program...

Страница 236: ...ations with an OMRON PLC FINS Communications Service Using the MSG SNDE Function with the MP3000 as the Master 2 218 11 Save the data to flash memory This concludes the settings for using the MP3000 a...

Страница 237: ...umber 1 Note The FINS TCP connection settings are not required when communicating with FINS UDP 6 Create routing tables if required Note 1 Specify an IP address that is not in use by any other device...

Страница 238: ...peration is required 2 Turn ON the power to the MP3000 to start transmitting messages The ladder program example is designed to turn ON the Execute Bit DB000200 in the message send func tion after six...

Страница 239: ...a slave and uses automatic reception or the MSG RCVE function to receive messages that are routed it can also receive messages from a node on another network The MP3000 slave can also return response...

Страница 240: ...MP3000 cannot route messages between different networks Ethernet Ethernet MP3000 series Machine Controller relay node Message sent to a node on another network The MP3000 series Machine Controller doe...

Страница 241: ...munications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B VAL Executes the transmission 2...

Страница 242: ...uit Number Specify the circuit number for the communications device Specify the same circuit number as displayed in the MPE720 Module Configuration Definition Tab Page The following table gives the va...

Страница 243: ...are automatically used for the parameter list The parameter list is used by inputting function codes and relevant parameter data It is also where the process results and status are output When execut...

Страница 244: ...processing has been completed normally Error Specify the bit that shows if an error occurred when sending the message When an error occurs the Error Bit will turn ON only for one scan The following di...

Страница 245: ...he remote node address 12 Function Code Sets the code of the function in the FINS protocol 13 Reserved for system 14 Remote Station Data Address Lower Word Sets the data address to read write at the r...

Страница 246: ...the bit assignments and it is followed by a detailed description of each assign ment REQUEST This bit gives the status of the processing request for the MSG SNDE function System 24 For system use 25 R...

Страница 247: ...t to abort execution was completed 4 FMT_NG A parameter formatting error occurred 5 SEQ_NG A command sequence error occurred 6 RESET_NG A reset occurred 7 REC_NG A data reception error error detected...

Страница 248: ...ex 3 Data size error The data size for sending or receiving is out of range Check PARAM17 Data Size 84 hex 4 Circuit number set ting error The circuit number is out of range Check the circuit number C...

Страница 249: ...Socket Attribute Error A system error occurred while setting the socket attri bute 4 Connection Error M SND The remote station rejected an attempt to open a TCP connection 5 Connection Error M RCV An...

Страница 250: ...ule Detail Definition Dialog Box 2 The MP3000 unit address is always 00 hex Function Code PARAM12 Set the function code to send You can use the functions that are registered to the function codes Comm...

Страница 251: ...10 hex 01 hex 02 hex 82 hex W Writes to DM Area words 0D hex 01 hex 04 hex 82 hex W Reads non consecutive words from the DM Area Do not change the value of PARAM13 from a user program or by any other...

Страница 252: ...e MP3000 series Controller The address is set as the word offset from address 0 MEMOBUS Function Code FINS Command Code Function Data Size Setting Range MR SR I O Memory Type 01 hex 01 hex 01 hex B0 h...

Страница 253: ...Register Type Value Type Remarks 0 M Sets the target data type to MB for bits and MW for words 1 G Sets the target data type to GB for bits and GW for words 2 I Sets the target data type to IB for bit...

Страница 254: ...the specified circuit of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Description Input Items 1 Execute B...

Страница 255: ...vailable for both transmission and reception Therefore 10 connections may be used for sending and receiving at the same time by using channels 1 to 10 Type Code Communications Protocol Remarks 1 MEMOB...

Страница 256: ...gress The Busy Bit is ON while a message reception or abort is in progress Keep the Execute Bit or Abort Bit turned ON while the Busy Bit is ON Complete Specify the bit that shows when the message rec...

Страница 257: ...Execution When Execution Is Aborted Execution When an Error Occurs t Input Execute Input Abort Output Busy Output Complete Output Error To receive another message keep the Execute Bit ON even after t...

Страница 258: ...mote station 17 Data Size Gives the data size that was requested by the remote station 18 Remote CPU Module Number Not used for the FINS protocol 19 I O Reserved for system 20 Inputs Coil Offset Lower...

Страница 259: ...data relays 41 G Register Writing Range LO Upper Word 42 G Register Writing Range HI Lower Word Sets the last address of the writing range for data register data relays 43 G Register Writing Range HI...

Страница 260: ...ution was completed 4 FMT_NG A parameter formatting error occurred 5 SEQ_NG A command sequence error occurred 6 RESET_NG A reset occurred 7 REC_NG A data reception error error detected in the lower la...

Страница 261: ...is out of range Check the communications buffer channel num ber Ch No in the MSG RCVE function 86 hex 6 Connection number error The connection number is out of range Check PARAM10 Connection Number 88...

Страница 262: ...as sent to a socket that does not exist 9 TCP Data Receive Error A disconnection request was received from the remote station 10 UDP Data Receive Error A data receive request was executed for a socket...

Страница 263: ...R SR I O Memory Type 01 hex 01 hex 01 hex B0 hex W Reads CIO Area words B1 hex W Reads Work Area words B2 hex W Reads Holding Area words B3 hex W Reads Auxiliary Area words 03 or 09 hex 01 hex 01 hex...

Страница 264: ...ea Address Range Notation Function Code Data Address Setting Range Corresponding Register Addresses CIO Area 0000 to 2047 Decimal 01 and 0F hex Coils 0 to 32767 MB000000 to MB02047F Work Area W000 to...

Страница 265: ...used for the FINS protocol Output Register Offset PARAM34 and PARAM35 These parameters are not used for the FINS protocol Parameters Meaning Description PARAM20 and PARAM21 Coil Offset Sets the offse...

Страница 266: ...rites to hold registers extended 0F hex Changes the states of a multiple coil 10 hex Writes to multiple hold registers G Register Writing Range LO PARAM40 and PARAM41 These parameters are not used for...

Страница 267: ...mmunications buffer that is currently in use Reserved for System PARAM49 to PARAM51 This parameter is used by the system A user program must set PARAM48 to 0 on the first scan after startup Thereafter...

Страница 268: ...ions when the MP3000 acts as a slave and as the master Using Automatic Reception with the MP3000 as a Slave This section describes how to communicate with a KOYO PLC by using automatic reception Note...

Страница 269: ...to MW00049 hold registers in the MP3000 slave TCP Binary MW00000 Ethernet Ethernet MW00001 MW00049 R1200 R1201 R1261 MW00048 R1260 MP3000 local station KOYO DL series PLC remote station IP address 192...

Страница 270: ...Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Boxes...

Страница 271: ...n the Connect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 000 000 000 000 Enter 00000 in the Port No Box for the other device...

Страница 272: ...reception 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are used wh...

Страница 273: ...Button in the Configuration Area to set the MODBUS TCP parameters Note Specify an IP address that is not in use by any other device on the same network Check with your network administrator for unused...

Страница 274: ...o write the data in the holding registers in the KOYO PLC to the hold regis ters in the MP3000 1 Turn ON the power to the MP3000 to start receiving messages The system will automatically start the mes...

Страница 275: ...mmunicate with a KOYO DL series PLC you can only read and write holding registers 3 When communicating with multiple remote devices or when you need to perform any operations other than reading and wr...

Страница 276: ...o R1361 holding registers in the KOYO PLC slave TCP Binary Ethernet Ethernet OW00064 OW00065 OW00095 R1300 R1301 R1361 OW00094 R1360 MP3000 local station KOYO DL series PLC remote station IP address 1...

Страница 277: ...Module Configuration Definition Tab Page The 218IFD Detail Definition Dialog Box will be displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 0...

Страница 278: ...ng to update I O data between the CPU Function Module and 218IFD Enter 4X as the register type and 00001 as the first address to write to on the remote device Note 1 In I O message communications a me...

Страница 279: ...sary then transfer the data to the PLC Starting Communications Use the following procedure to write the data in the output registers in the MP3000 to the holding registers in KOYO PLC 1 Start receivin...

Страница 280: ...ake place using the MSG SNDE function Using Automatic Reception with the MP3000 as a Slave This section describes how to communicate with a JTEKT PLC by using automatic reception When a JTEKT PLC is u...

Страница 281: ...a in a specific hold register use the automatic reception offset setting The automatic reception offset allows you to make any address between MW00000 and MW65534 the first address Transfer Size The f...

Страница 282: ...ritten to the MW00000 to MW00099 hold registers in the MP3000 slave MW00000 Ethernet MW00001 MW00099 01002 01004 010C8 MW00098 010C6 Ethernet TOYOPUC Ethernet TCP Binary MP3000 local station JTEKT PLC...

Страница 283: ...isplayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Add...

Страница 284: ...functions on connec tion 01 Automatic reception for connection 01 is set to Enable by default 2 The settings in the above screen capture will open an unpassive connection because the remote station p...

Страница 285: ...automatic reception 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions...

Страница 286: ...the send data area in the file memory on network con nection 1 Note Refer to the following manual for information on ladder programming using the SPW instruction Manual for the 2PORT EFR Module from J...

Страница 287: ...n the MP3000 1 Turn ON the power to the MP3000 to start receiving messages The system will automatically start the message reception operation No further operation is required 2 Start the processing t...

Страница 288: ...l need to create a ladder application that uses the SPW instruction The SPW instruction is used to write data to the file memory in the 2PORT EFR Refer to the following manual for details Manual for t...

Страница 289: ...E function Thus if PARAM26 and PARAM27 are set to 10 000 the data sent from the 2PORT EFR will be stored in the registers starting from MW10000 The hold register offset parameter in the MSG RCVE funct...

Страница 290: ...ter are written to the MW05000 to MW05199 hold registers in the MP3000 slave MW05000 Ethernet MW05001 MW05199 03002 03004 03190 MW05198 0318E Ethernet TOYOPUC Ethernet TCP Binary MP3000 local station...

Страница 291: ...displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Ad...

Страница 292: ...E are used If message functions are used while automatic reception is enabled the communica tions will not function properly 2 The settings in the above screen capture will open an unpassive connectio...

Страница 293: ...cations 7 Check the settings and double click the Setting Button in the Detail Column 8 Click the Disable Option on the Automatically Reception Tab Page Note Changes made to the communications or conn...

Страница 294: ...0 Communications with a JTEKT PLC TOYOPUC Protocol Using the MSG RCVE Function with the MP3000 as a Slave 2 276 9 Create a ladder program for the MSG RCVE function A ladder program example is shown be...

Страница 295: ...ons with a JTEKT PLC TOYOPUC Protocol Using the MSG RCVE Function with the MP3000 as a Slave 2 277 Ethernet Communications 10 Save the data to flash memory This concludes the settings for using the MP...

Страница 296: ...cified Passive execute the MSG SNDE function in the MP3000 The MP3000 is capable of operating as a TCP active node when using the MSG SNDE function and as a TCP specified passive node or TCP non speci...

Страница 297: ...ta in the file memory in the JTEKT PLC to the hold registers in the MP3000 1 Turn ON the power to the MP3000 to start receiving messages In the ladder programming example the message receive function...

Страница 298: ...the response is received Note In the figure shown above the Ethernet header TCP UDP header FCS and other items have been omitted Only the data portion of the communications format is shown The SPR in...

Страница 299: ...sters from MW30000 which is the sum of MW10000 and MW20000 Note The data address setting and hold register offset setting in the MSG SNDE function allow you to make any address between MW00000 and MW6...

Страница 300: ...r are written to the 5802 to 5A59 file memory addresses in the JTEKT PLC slave Ethernet Ethernet Ethernet TOYOPUC Binary MP3000 local station MW30000 MW30001 MW30299 5802 5804 5A58 MW30298 5A56 Port n...

Страница 301: ...e displayed 2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP...

Страница 302: ...age functions MSG SNDE and MSG RCVE are used If message functions are used while automatic reception is enabled the communica tions will not function properly 2 If the MP3000 is the master or the clie...

Страница 303: ...ications 7 Check the settings and double click the Setting Button in the Detail Column 8 Click the Disable Option on the Automatically Reception Tab Page Note Changes made to the communications or con...

Страница 304: ...Communications with a JTEKT PLC TOYOPUC Protocol Using the MSG SNDE Function with the MP3000 as the Master 2 286 9 Create a ladder program for the MSG SNDE function A ladder program example is shown b...

Страница 305: ...2 10 Communications with a JTEKT PLC TOYOPUC Protocol Using the MSG SNDE Function with the MP3000 as the Master 2 287 Ethernet Communications...

Страница 306: ...mmunications with a JTEKT PLC TOYOPUC Protocol Using the MSG SNDE Function with the MP3000 as the Master 2 288 10 Save the data to flash memory This concludes the settings for using the MP3000 as the...

Страница 307: ...n Specified Passive execute the MSG SNDE function in the MP3000 The MP3000 is capable of operating as a TCP active node when using the MSG SNDE function and as a TCP specified passive node or TCP non...

Страница 308: ...he MP3000 to the file memory of the JTEKT PLC 1 Start the JTEKT PLC in TCP Destination Specified Passive mode 2 Turn ON the power to the MP3000 to start transmitting messages The ladder program exampl...

Страница 309: ...ications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Meaning Input Items 1 Execute B VAL Executes the transmission 2 Abort...

Страница 310: ...Specify the circuit number for the communications device Specify the same circuit number as displayed in the MPE720 Module Configuration Definition Tab Page The following table gives the valid circuit...

Страница 311: ...utomatically used for the parameter list The parameter list is used by inputting function codes and relevant parameter data It is also where the process results and status are output When executing mo...

Страница 312: ...ssing has been completed normally Error Specify the bit that shows if an error occurred when sending the message When an error occurs the Error Bit will turn ON only for one scan The following diagram...

Страница 313: ...TOYOPUC protocol 12 Function Code Sets the code of the function in the TOYOPUC protocol 13 Reserved for system 14 Remote Station Data Address Lower Word Sets the data address to read write at the remo...

Страница 314: ...t assignments and it is followed by a detailed description of each assign ment REQUEST This bit gives the status of the processing request for the MSG SNDE function System 24 For system use 25 Reserve...

Страница 315: ...ort execution was completed 4 FMT_NG A parameter formatting error occurred 5 SEQ_NG A command sequence error occurred 6 RESET_NG A reset occurred 7 REC_NG A data reception error error detected in the...

Страница 316: ...r The data size for sending or receiving is out of range Check PARAM17 Data Size 84 hex 4 Circuit number set ting error The circuit number is out of range Check the circuit number Cir No in the MSG SN...

Страница 317: ...ket Attribute Error A system error occurred while setting the socket attri bute 4 Connection Error M SND The remote station rejected an attempt to open a TCP connection 5 Connection Error M RCV An err...

Страница 318: ...for the TOYOPUC protocol Function Code PARAM12 Set the function code to send You can use the functions that are registered to the function codes Reserved for System PARAM13 This parameter is used by t...

Страница 319: ...Be sure that the last data address that is determined by the offset data address and data size does not exceed the valid data address range Remote CPU Module Number PARAM18 This parameter is not used...

Страница 320: ...of the communications buffer that is currently in use Reserved for System Use PARAM25 to PARAM28 This parameter is used by the system Register Type Value Type Remarks 0 M Sets the target data type to...

Страница 321: ...of the communications device type This function can be used with various protocols Function Definition I O Definitions No Name I O Designation Meaning Input Items 1 Execute B VAL Executes the recepti...

Страница 322: ...isplayed in the MPE720 Module Configuration Definition Tab Page The following table gives the valid circuit numbers Device Type Code 218IFD 16 Type Code Communications Protocol Remarks 1 MEMOBUS Selec...

Страница 323: ...matically used for the parameter list The parameter list is used by inputting the connection number and relevant parameter data It is also where the process results and status are output When executin...

Страница 324: ...processing has been completed normally Error Specify the bit that shows if an error occurred while receiving the message When an error occurs the Error Bit will turn ON only for one scan The followin...

Страница 325: ...tatus of the current function 02 Detail Error Code Lower Word Gives the details of an error 03 Detail Error Code Upper Word 04 Status 1 Gives the communications status 05 Status 2 Gives status informa...

Страница 326: ...GB 29 Data Relay Offset Upper Word 30 Data Register Offset Lower Word Sets the offset word address for a data register GW 31 Data Register Offset Upper Word 32 Output Coil Offset Lower Word Sets the...

Страница 327: ...ESULT These bits give the execution result of the MSG RCVE function Processing Result Value Meaning 00xx hex Busy 10xx hex Complete 8yxx hex Error Bit Status Meaning 1 Processing is being requested 0...

Страница 328: ...tion number out of range 02 Watchdog error for MEMOBUS response 03 Error in number of retries setting 04 Error in cyclic area setting 05 CPU number error 06 Data address error 07 Data size error 08 Fu...

Страница 329: ...mal 1 Socket Creation Error A socket could not be created 2 Local Port Number Error Setting error in local station port number 3 Changing Socket Attribute Error A system error occurred while setting t...

Страница 330: ...The valid setting range is given in the following table Note Enter the same connection number as displayed in the 218IFD Detail Definition Dialog Box in the MPE720 Options PARAM11 This parameter is n...

Страница 331: ...C protocol Register Type PARAM16 This parameter is not used for the TOYOPUC protocol Data Size PARAM17 This parameter gives the data size as the number of words to write as requested by the remote sta...

Страница 332: ...ite request is outside this allowable range Specify the M Register Writing Range PARAM36 to PARAM39 with word addresses Note 1 M registers are always used as the destination in the MP3000 for data wri...

Страница 333: ...ster Writing Range HI PARAM46 and PARAM47 These parameters are not used for the TOYOPUC protocol For System Use PARAM48 This parameter is used by the system It contains the channel number of the commu...

Страница 334: ...ommunicate with a Microsoft Visual Basic 6 0 application on a PC running FA Server 4 0 FA Series by Roboticsware Inc by using automatic reception FA Server 4 0 supports the Extended MEMOBUS protocol N...

Страница 335: ...and how to write values to the same registers by pressing the corresponding Write Button on the same form TCP Binary Ethernet Ethernet MW00000 MW00001 MW00003 MW00002 T01 T02 T03 T04 MP3000 local stat...

Страница 336: ...the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Boxes ente...

Страница 337: ...Connect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 000 000 000 000 Enter 00000 in the Port No Box for the other device 5 Cl...

Страница 338: ...ption 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are used while...

Страница 339: ...ith your network administrator for unused IP addresses 6 Right click U01 and select Add folder and then right click the resulting F01 folder and select Add tag Add the remaining three tags in the same...

Страница 340: ...processing control Using DDE in Visual Basic Turn ON the power to the MP3000 that you set up Place the FA Server that you set up in online status Start Visual Basic 6 0 and select New Standard EXE Pla...

Страница 341: ...nter the following code This concludes the program creation in Visual Basic Change the program as necessary and save it create an EXE file Starting Communications Use the following procedure to commun...

Страница 342: ...ications when the MP3000 acts a the slave Using Automatic Reception with the MP3000 as a Slave This section describes how to communicate with a PC running Microsoft Visual Basic Net 2003 by using auto...

Страница 343: ...0 slave are displayed on an application form created in Microsoft Visual Basic NET 2003 TCP ASCII Ethernet Ethernet IP address 192 168 001 002 MW00000 MW00001 MW00009 MW00008 MP3000 local station PC V...

Страница 344: ...2 Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Box...

Страница 345: ...in the Connect Type Box Select ASCII in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 192 168 001 002 Enter 10001 in the Port No Box for the other dev...

Страница 346: ...tic reception 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are use...

Страница 347: ...processing to open a TCP UDP connection When this button is clicked a socket is created based on the settings from 1 to 6 and the TCP connection opening procedure is executed Start the message commun...

Страница 348: ...te TextBox6 to TextBox10 TextBox1 to TextBox4 TextBox9 TextBox5 ComboBox1 Command1 Command2 Command3 Public Class Form1 Inherits System Windows Forms Form Dim TransPort As Short Dim SFC CPUNum As Byte...

Страница 349: ...ystem Object ByVal e As System EventArgs Han dles Command3 Click Timer processing Stop Timer1 Enabled False End Sub The following process starts the Timer and executes every 100 ms Private Sub Timer1_...

Страница 350: ...Ai As Short Dim iSerial As Short Open a TCP UDP port Function MemobusMasterMain ByVal TransPort As Short _ ByVal MyIP As String ByVal MyPort As Short _ ByVal DstIP As String ByVal DstPort As Short As...

Страница 351: ...tion If TransPort 0 Then rc connect sock MP_addr Len MP_addr If rc 0 Then MsgBox Connect error WSAGetLastError closesocket 0 WSACleanup Release the Winsock DLL Return 1 End If End If Return 0 End Func...

Страница 352: ...096 0 If rlen 0 Then MsgBox receive error WSAGetLastError closesocket 0 WSACleanup Release the Winsock DLL Return 1 End If Check response data rc ChkRspData rlen Srbuf If rc 0 Then MsgBox receive data...

Страница 353: ...error closesocket 0 WSACleanup Release the Winsock DLL Return 1 End If Return rc End Function Create Extended MEMOBUS protocol command Function MkCmdData ByVal SFC As Byte ByVal CPUNum As Byte _ ByVal...

Страница 354: ...3 H0 Always 0 hex because channel numbers do not apply to PCs sbuf 4 H0 Reserved sbuf 5 H0 Reserved Set the total number of data items from the start of the 218 header to the end of MEMOBUS data When...

Страница 355: ...56 DataNum H Convert from Byte to String For i 0 To 21 Swork Hex sbuf i If Len Swork 1 Then Swork 0 Swork End If Ssbuf Ssbuf Swork Next Return 0 End Function Check response data Function ChkRspData By...

Страница 356: ...21 Str sbuf 20 2 20 If rbuf 6 rcvDATAi And rbuf 7 rcvDATAi 256 Then rc 4 Return rc End If Case Else rc 10 Return rc End Select Check the MFC If rbuf 14 H20 Then rc 6 Return rc End If Check the SFC If...

Страница 357: ...utomatically start the message reception operation No further operation is required 2 Start the application created in Visual Basic and follow these steps to start communicating with the MP3000 Enter...

Страница 358: ...ions when the MP3000 acts as a slave Using Automatic Reception with the MP3000 as a Slave This section describes how to communicate with a PC running a Microsoft Visual C NET application by using auto...

Страница 359: ...in the MP3000 slave are displayed on a form created in Microsoft Visual C TCP Binary Ethernet Ethernet MW00000 MW00001 MW00009 MW00008 MP3000 local station IP address 192 168 001 001 PC Visual C remo...

Страница 360: ...Set the communications parameters In the IP Address Boxes enter the following address 192 168 001 001 In the Subnet Mask Boxes enter the following mask 255 255 255 000 In the Gateway IP Address Boxes...

Страница 361: ...n the Connect Type Box Select BIN in the Code Box Enter the following address in the Node Port IP Address Boxes for the other device 192 168 001 002 Enter 10001 in the Port No Box for the other device...

Страница 362: ...llowing section 2 2 Detail Definition Setting Procedures page 2 6 2 Disable automatic reception for any connection for which message functions MSG SNDE and MSG RCVE are used If message functions are u...

Страница 363: ...ng to open a TCP UDP connection When this button is clicked a socket is created based on the settings from 1 to 6 and the TCP connection opening procedure is executed Start the message communications...

Страница 364: ...elow Form Programming Example In the programming example that is given below a Timer must be placed on the Form from the Com ponents in the toolbox Initialize the Timer in the handler function for For...

Страница 365: ...nsigned long dstip unsigned short dstport extern int memobus_msg unsigned short trans_prt unsigned char sbuf unsigned char rbuf extern void mk_cmd_data unsigned char SFC unsigned char CPUNum unsigned...

Страница 366: ...t MyIP MyPort DstIP DstPort private System Void Command2_Click System Object sender System EventArgs e Add code to start a 100 ms timer private System Void Command3_Click System Object sender System E...

Страница 367: ...ckaddr_in from short DATAi Number of data items to send short MDATAi MEMOBUS data length unsigned char iSerial Serial number Protocol declaration int memobus_master_main unsigned short trans_prt unsig...

Страница 368: ...in_addr s_addr myip my sin_port htons myport Declare the MP3000 s IP address and port number dst sin_family AF_INET dst sin_addr s_addr dstip dst sin_port htons dstport Create the TCP or UDP socket if...

Страница 369: ...rbuf int rc if trans_prt TCP_PRT rc tcp_msg sbuf rbuf else rc udp_msg sbuf rbuf return rc Send command data receive response data TCP int tcp_msg char sbuf char rbuf int slen rlen int rc 0 Send comman...

Страница 370: ...dp_msg char sbuf char rbuf int slen rlen fromlen int rc 0 Send command data slen sendto sd sbuf DATAi 0 struct sockaddr dst sizeof struct sockaddr if slen DATAi Returns the number of bytes sent if sen...

Страница 371: ...ata switch SFC case 0x09 MDATAi 8 break default break Calculate total number of data items DATAi MDATAi 14 218 header 12 bytes Length part 2 bytes MEMOBUS data length variable Create the 218 header pa...

Страница 372: ...DATAi 0x00FF MEMOBUS data length L sbuf 13 unsigned char MDATAi 0xFF00 8 MEMOBUS data length H MFC is always 20 hex sbuf 14 0x20 SFC sbuf 15 SFC Set the CPU number sbuf 16 unsigned char CPUNum 4 The l...

Страница 373: ...EMOBUS response rc 4 return rc Check the serial number if sbuf 1 rbuf 1 Do not match the serial number of the command rc 5 return rc Check the total data length of the message if rbuf 6 rcvDATAi 0x00F...

Страница 374: ...ed 2 Start the application created in Visual C and follow these steps to start communicating with the MP3000 Enter the PC s IP address Example 192 168 1 2 Set the PC s port number Example 10001 Set th...

Страница 375: ...The communications buffer channel is associated with the connection based on the setting of the Ch No Communications Buffer Channel Number input parameter in the MSG SNDE and MSG RCVE func tions and...

Страница 376: ...number 10020 Port number 10030 Port number 10040 The communications buffer channel is associated with the connection based on the setting of the Ch No Communications Buffer Channel Number input parame...

Страница 377: ...tive hold registers extended 0E hex Writes the contents of non consecutive hold registers extended 0F hex Changes the states of multiple coils 10 hex Writes to multiple hold registers 4341 hex Reads t...

Страница 378: ...ads from the DM Area in units of one word 0F hex Writes to CIO Area bits Work Area bits Holding Area bits and Auxiliary Area bits by word 0B or 10 hex Writes to the DM data memory in units of one word...

Страница 379: ...mote station will be the sum of the remote station data addresses and the value in the hold register offset parameters Continued from previous page MSG SNDE Function Parameter Description GW0200000 FF...

Страница 380: ...mote Station Data Address Upper Word Not used PARAM16 Remote Station Register Type Not used PARAM17 Data Size Set the size of the data to write Specify the size in bits for function code 0F hex and in...

Страница 381: ...hex 0001 hex 0000 hex 0000 hex 0000 hex 0190 hex 0000 hex 0000 hex 0000 hex 0012 hex 0003 hex OB000000 120000 hex 3E80 hex 0190 hex 400 0001 hex 0000 hex 0000 hex 10 20 21 0000 hex 11 0000 hex 0000 h...

Страница 382: ...ed with the QnA compatible 3E Frame protocol and the FINS protocol Refer to the section for each protocol for details PARAM12 Function Code Set the function code for the function to use PARAM14 Remote...

Страница 383: ...M G I O or S in the local station where the remote station address table is stored PARAM17 Data Size Set the number of data items to write PARAM18 Remote CPU Module Number This parameter is used with...

Страница 384: ...ued from previous page MSG SNDE Function Parameter Description MW MW 1 MW 2 MW n 1 Remote Station Address Table Address setting 1 Address setting 2 Address setting 3 Address setting n n data items Rem...

Страница 385: ...first register address to store the read data in the local station Specify a bit address for function code 4341 hex and a word address for function code 4349 hex PARAM21 Local Station Data Address Up...

Страница 386: ...Station Data Address Lower Word Set the first address to write to in the remote station Specify a bit address for function code 4345 or 434F hex and a word address for function code 4346 or 434B hex...

Страница 387: ...he register type M or G in the local station where the remote sta tion address table is stored PARAM17 Data Size Set the number of data items to read PARAM18 Remote CPU Module Number This parameter is...

Страница 388: ...unction Code 434D Hex GW0020000 FFFFF hex 1048575 MW0000000 12 13 14 10 11 15 16 17 18 19 20 21 22 434D hex 0000 hex 4E20 hex 0001 hex 0000 hex 0000 hex 0001 hex 0003 hex 0000 hex 0000 hex A120 hex 00...

Страница 389: ...ble and local station address table consist of 4 words per data item as illus trated below MSG SNDE Function Parameter Description PARAM10 Connection Number Set the connection number used to determine...

Страница 390: ...38 39 0000 hex 0000 hex 40 41 FFFF hex 001F hex 42 43 0000 hex 0000 hex 44 45 7FFF hex 0001 hex 46 47 1FFFFF hex 2097151 17FFF hex GW0001011 IW00000 MW0000000 MW0120000 3E8 hex MW0001000 0000 hex 0003...

Страница 391: ...Remote CPU Module Number Not used PARAM20 Local Station Data Address Lower Word Set the first register address in the local station where the data to be written is stored Set the word address PARAM21...

Страница 392: ...High parameters in the MSG RCVE function Data will not be written if an address exceeds the valid setting range MSG SNDE Function Parameter Description PARAM10 Connection Number Set the connection nu...

Страница 393: ...cify the size in words PARAM18 Remote CPU Module Number Not used PARAM20 Local Station Data Address Lower Word Set the first register address in the local station where the data to be written is store...

Страница 394: ...tion PARAM11 Option Not used PARAM12 Function Code Not used PARAM14 Remote Station Data Address Lower Word Not used PARAM15 Remote Station Data Address Upper Word Not used PARAM16 Remote Station Regis...

Страница 395: ...ritten if an address exceeds the valid setting range Continued from previous page MSG SNDE Function Parameter Description IW07800 MW0800000 MW0000000 12 13 14 10 11 15 16 17 18 19 20 21 22 0000 hex 00...

Страница 396: ...grams also do not need to be aware of the 218 header because it is automatically appended and removed in the 218IFD The actual data for the Extended MEMOBUS protocol is stored in the application data...

Страница 397: ...ed 0F hex Changes the states of multiple coils 10 hex Writes to multiple hold registers 43 hex extended func tion for accessing reg isters using 32 bit addresses 41 hex Reads the states of bits 45 hex...

Страница 398: ...3 hex and the function specified by the sub function code reads or writes to non consecutive registers specify the type of the target data The codes for data types are given below Register Type Code S...

Страница 399: ...for the destination CPU number and the source CPU number Set the first address of the coils to read Set the number of coils to read Example In this example CPU 1 is the source and it will send a mess...

Страница 400: ...the sub function code that was set in the command Specify 4 bits each for the destination CPU number and the source CPU number This contains the states of the relays that were read 7 0 L H L H L H Co...

Страница 401: ...that was set in the command Specify 4 bits each for the destination CPU number and the source CPU number This contains the states of the input registers that were read 7 0 L H L H L H Command Length...

Страница 402: ...code that was set in the command Specify 4 bits each for the destination CPU number and the source CPU number This contains the address of the changed single hold register This contains the state of...

Страница 403: ...umber of registers x 2 MFC 20 hex SFC 09 hex CPU number Not used Number of registers n Data 1 Data n Set the length of the response Always 20 hex The response will contain the sub function code that w...

Страница 404: ...ode to write data into hold registers is 0B hex Specify 4 bits each for the destination CPU number and the source CPU number Set the first address of the hold registers to write Set the number of hold...

Страница 405: ...s each for the destination CPU number and the source CPU number Set the number of hold registers to read Set the address of the hold registers to read Set the address of the hold registers to read 7 0...

Страница 406: ...address of the hold registers to write Set the data to write into the hold registers 7 0 L H L H Response Length 06 hex MFC 20 hex SFC 0E hex CPU number Not used Number of registers n Set the length...

Страница 407: ...eference address Number of registers n Data 1 Data n Set the length of the command Always 20 hex The sub function code to write data into hold registers is 10 hex Specify 4 bits each for the destinati...

Страница 408: ...first 8 bits States of next 8 bits States of next 8 bits States of next 8 bits Set the length of the command Always 43 hex The sub function code to read the states of bits is 01 hex Specify 4 bits eac...

Страница 409: ...address Specified state Set the length of the command Always 43 hex The sub function code to change the state of a single bit is 05 hex Specify 4 bits each for the destination CPU number and the sourc...

Страница 410: ...ata Set the length of the response Always 43 hex The response will contain the sub function code that was set in the command Specify 4 bits each for the destination CPU number and the source CPU numbe...

Страница 411: ...e Not used Number of words Data 1 Data 2 Data 3 Set the length of the response Always 43 hex The response will contain the sub function code that was set in the command Specify 4 bits each for the des...

Страница 412: ...f words Set the length of the response Always 43 hex The response will contain the sub function code that was set in the command Specify 4 bits each for the destination CPU number and the source CPU n...

Страница 413: ...x 2 Number of long word registers x 4 MFC 43 hex SFC 4D hex CPU number Not used Number of data items Contents of first word register Contents of next word register Contents of next long word register...

Страница 414: ...register Response Length 06 hex MFC 43 hex SFC 4E hex CPU number Not used Number of data items Set the length of the response Always 43 hex The response will contain the sub function code that was set...

Страница 415: ...ex CPU number Not used Register type Not used First address Number of bits Set the length of the command Always 43 hex The sub function code to change the states of multiple bits is 0F hex Specify 4 b...

Страница 416: ...tion code in the command message is illegal The reference address is illegal The number of data items is incorrect 7 0 L H Command Length MFC 20 hex SFC 01 to 33 hex CPU number Message body 7 0 L H Re...

Страница 417: ...data type to be accessed The local register type is incorrect 7 0 7 0 H L H L Command Length MFC 43 hex SFC 41 to 4F hex CPU number Not used Message body Response Length 04 hex MFC 43 hex SFC SFC 80...

Страница 418: ...l purpose message mode the values of the MW hold registers in the Machine Controller are sent and received in the application data field that follows the EIF header MFC SFC 07 hex 00 hex 20 hex 03 hex...

Страница 419: ...onversion from binary to ASCII As shown in the example 8 bit data is converted into two 7 bit ASCII characters The example shows the conversion of only the applica tion data field In actual conversion...

Страница 420: ...ructure for parameters in the application data field is given below The actual data for the MEMO BUS protocol is stored in the application data field Communications Protocol Code Reference MEMOBUS mes...

Страница 421: ...table Function Code Sub Function Code Function 01 hex Reads the states of coils 02 hex Reads the states of input relays 03 hex Reads the contents of hold registers 04 hex Reads the contents of input r...

Страница 422: ...es of next 8 coils The function code to read the states of coils is 01 hex This contains the length of the data item that was read in bytes This contains the contents of the data item that was read Er...

Страница 423: ...of hold registers is 03 hex This contains the length of the data item that was read in bytes This contains the contents of the first data item that was read Error checking 7 0 H L H L CRC 16 H L Comm...

Страница 424: ...n code to change the state of a single coil is 05 hex This contains the address of the changed coil This contains the state of the changed coil Error checking 7 0 H L H L CRC 16 H L Command Slave addr...

Страница 425: ...contain the same value in the command if the test ends successfully Error checking CRC 16 H L 7 0 H L H L Command Slave address Function code 0F hex First address Number of coils Number of data items...

Страница 426: ...ters is 10 hex Set the first address of the hold registers to change Set the number of hold registers to change Set the byte length of data to write Set the contents to write into the hold registers E...

Страница 427: ...d LF are added to the end of the data to indicate where it ends Error checking is done with the LRC When a message is received on a 218IFD Module using the MEMOBUS protocol the LRC is not checked 3A h...

Страница 428: ...otocol is that the 218 header is not appended before the application data General purpose Message Commands General purpose message commands can be set as required by the application General purpose Bi...

Страница 429: ...ore being sent or received The following diagram illustrates the conversion from binary to ASCII As shown in the example 8 bit data is converted into two 7 bit ASCII characters 12 hex 34 hex 56 hex 78...

Страница 430: ...setup 2 283 setting example 2 282 setting the remote device JTEKT PLC 2 289 starting communications 2 290 transfer size 2 281 communications with a KOYO PLC 2 250 using automatic reception with the MP...

Страница 431: ...236 inputs and outputs for the MSG SNDE function 2 223 MSG RCVE function parameters 2 240 MSG SNDE function parameters 2 227 routing 2 221 using the MP3000 as a router 2 222 using the MP3000 as a slav...

Страница 432: ...ions device type 2 74 Error 2 77 Execute 2 74 Param first address of parameter list 2 76 Prop Typ communications protocol 2 75 inputs and outputs for the MSG SNDE function 2 59 Abort 2 60 Busy 2 62 Ch...

Страница 433: ...A compatible 3E Frame protocol 2 139 R receive count 2 16 register types 2 381 response time 2 17 RTU 2 12 S send count 2 16 subnet mask 2 8 system configuration example 1 3 T TCP 2 12 TOYOPUC protoco...

Страница 434: ...e PARAM02 and PARAM03 2 7 Revision First address of input register and port number January 2017 2 2 2 Revision system port engineering port Back cover Revision Address October 2015 1 Front cover Revis...

Страница 435: ...017 0099 Fax 66 2 017 0799 http www yaskawa co th YASKAWA ELECTRIC CHINA CO LTD 22F One Corporate Avenue No 222 Hubin Road Shanghai 200021 China Phone 86 21 5385 2200 Fax 86 21 5385 3299 http www yask...

Отзывы: