background image

2.10  Communications with a JTEKT PLC (TOYOPUC Protocol)

 Message Functions

2-293

Ethernet Communications

Ch-No (Communications Buffer Channel Number)

Specify the channel number of the communications buffer.

You can specify any channel number provided it is within the valid range.

The following table gives the valid channel numbers.

If the communications device is the 218IFD, there are 10 channels of communications buffers available 
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.

Param (First Address of Parameter List)

Specify the first address of the parameter list.

A total of 29 words starting from the specified first 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 executing more than one function at the same time, do not use the same channel number for the 
same connection. You can use the same channel number as long as multiple functions are not executed 
at the same time.

Communications Device

Valid Channel Numbers

218IFD

1 to 10

There must be as many MSG-SNDE or MSG-RCVE functions as the number of connections used at 
the same time.

A parameter list with the first address set to DA00000 is shown below.

Note

Note

Example

PARAM00

PARAM01

PARAM02

PARAM03

PARAM04

PARAM05

PARAM06

PARAM07

PARAM23

PARAM24

PARAM25

PARAM26

PARAM27

PARAM28

DW00000

DW00001

DW00002

DW00003

DW00004

DW00005

DW00006

DW00007

DW00023

DW00024

DW00025

DW00026

DW00027

DW00028

Registers

Parameter List

xxx

 

xxxx

 

xxxx

 

xxx

 0

Summary of Contents for MP3000 Series

Page 1: ...Communications Machine Controller MP3000 Series USER S MANUAL MANUAL NO SIEP C880725 12B 1 2 Outline of Communications Ethernet Communications...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 46: ...2 4 Communications with MP series Controllers Using Automatic Reception with the MP3000 as a Slave 2 28...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: