Page 2
Yaskawa. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because Yaskawa is con- stantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice.
Page 3
• Those responsible for estimating the MP920 system • Those responsible for deciding whether to apply the MP920 system • Those responsible for designing the MP920 system so that it can be mounted in the con- trol and operating panels •...
Page 4
Visual Aids The following aids are used to indicate types of information for easier reference. Indicates important information that should be memorized. IMPORTANT Indicates supplemental information. INFO Indicates application examples. EXAMPLE Describes technical terms that are difficult to understand, or in the text TERMS without an explanation being given.
Page 5
MPE720 Software for Programming Device Machine Controller MP920 Motion SIEZ-C887-2.5 Describes the functions, specifications, and Module User’s Manual usage of the MP920 Motion Modules (SVB- 01 and PO-01). Machine Controller MP920 User’s SIEZ-C887-2.1 Describes the design and maintenance for Manual: Design and Maintenance the MP920 Machine Controller.
Page 6
The warning symbols for ISO and JIS standards are different, as shown below. The ISO symbol is used in this manual. Both of these symbols appear on warning labels on Yaskawa products. Please abide by these warning labels regardless of which symbol is used.
Page 7
(Use an M4 Phillips screw driver.) • Always turn OFF the power supply to the Module before installing it. • Insert the connectors of the cables that are to be connected to the MP920 Modules and secure them well. Incorrect insertion of the connectors may result in a malfunction of the MP920.
Page 8
MANDATORY • Always ground the FG terminal to a ground resistance 100Ω or less. Failure to ground the MP920 may result in electrical shocks or malfunctioning. Select, separate, and lay external cables correctly. • Consider the following items when selecting the I/O signal lines (external cables) to connect the MP920 Module to external devices.
Page 9
There is a risk of electrical shock. CAUTION • Do not attempt to modify the MP920 programs, force outputs, switch between RUN and STOP, or perform other similar operations while the MP920 is operating without know- ing the direct and indirect consequences of the operation.
Page 10
• MP920 has been manufactured under strict quality control guidelines. However, if this product is to be installed in any location in which a failure of MP920 involves a life and death situation or in a facility where failure may cause a serious accident, safety devices MUST be installed to minimize the likelihood of any accident.
1 Communications Modules 1.1.1 Communications Modules Overview This section describes the Communications Module that are provided as options in the MP920 and outlines their specifications. 1.1.1 Communications Modules The following three Communications Modules are provided for the MP900-Series building- block Machine Controllers: •...
Page 20
1.1 Overview RS-232C ports are standard features on MP920 and MP930 CPU Modules and can be used for commu- INFO nications even without an optional Communications Module. While some functions of the communi- cations protocols for these Modules differ, the RS-232C ports are almost the same as those for the 217IF.
1 Communications Modules 1.1.2 Specifications 1.1.2 Specifications The following table lists the communications specifications of the Communications Mod- ules and outlines their functions. Refer to the chapters on individual Communications Mod- ules for details. Table 1.2 Communications Module Specifications Item 215IF 217IF 218IFA...
1.1 Overview 1.1.3 General Specifications The following table lists the general specifications of the Communications Modules. Refer to the chapters on individual Communications Modules for details. Item Specifications 0 to 55 °C Environmental Ambient Operating Conditions Temperature -20 to 85 °C Storage Temperature Ambient Operating 30% to 95% RH (with no condensation)
1 Communications Modules 1.2.1 Communications Processing Communications Software This section explains the basic concepts of the communications software. 1.2.1 Communications Processing Communications software is required for the Machine Controller and the personal computer used as the Programming Device. The Machine Controller communications software consists of the communications process- ing software installed in the Communications Module and the user application software stored in the CPU Module.
1.2 Communications Software 1.2.2 Communications Processing Software Communications control software called communications processing software is installed in each Communications Module. This software is controlled by the CPU Module after the power is turned ON. Software need not be installed when the Communications Module is installed.
1 Communications Modules 1.2.4 Application Software 1.2.4 Application Software Application software refers to the ladder logic programs developed by the user using the MPE720 Programming Device. Communications are coded using the MSG-SND and MSG- RCV system functions. Machine Controller Commu- nications Module Communications...
2 Communications Modes 2.1.1 Overview Communications Modes 2.1.1 Overview There are basically three communications modes for communications processing imple- mented in the Communications Modules of the MP900-Series Machine Controller. The communications modes that can be used depend on the type of Communications Module. Table 2.1 Communications Modes Communications Overview...
Input Registers Output Registers (IB, IW, IL, LFhhhh) (OB, OW, OL, OFhhhh) MP920 5,120 words (0000 to 13FF) 5,120 words (0000 to 13FF) Settings are made to map registers in these I/O register areas between the Machine Control- lers to show how data is to be transferred. This is called Link Allocation. See Transmission Parameter Settings under 5.5.4 Setting CP-215 Transmission Definitions for details.
2 Communications Modes 2.2.3 Communications Overview 2.2.3 Communications Overview When each station has written transmission data to its own transmission area and has received the token, the transmission area information and data will be transmitted to all sta- tions. When this data is received, all stations will write the reception data to their own I/O regis- ters, according to the area information.
2.3 Message Communications Message Communications This section explains message communications. Message communications are used to transfer messages between Machine Controllers one event at a time using the MESSAGE SEND function (MSG-SND) and the MESSAGE RECEIVE function (MSG-RCV). The following two transmission modes are available: •...
2 Communications Modes 2.3.2 General-purpose Message Transmissions 2.3.2 General-purpose Message Transmissions The general-purpose message transmission mode transfers consecutive data in MW regis- ters, without any processing, using the transmission and reception functions in user pro- grams. The communications protocol. An application-specific protocol can be established by transferring packet data using consec- utive MW registers.
Module, engineering is enabled by directly connecting the MPE720 to a Machine Controller. The following table shows the channels that can currently be used as engineering ports. 215IF 217IF 218IF MP920 and MP930 Serial Channels (CNs) usable as engineer- ing ports Note: 1. Yes: Can be used as an engineering port.
216IF 218IF Standard Overview Protocols Serial Extended MEMO- Extends the functions of the MEMOBUS protocol. MEMOBUS Yaskawa’s standard protocol conventionally used with RS-232C. MELSEC-A MELSEC-A protocol for connection to Controllers manufactured by Mitsubishi Electric Corporation. OMRON OMRON communications protocol for connection to Controllers manufactured by OMRON Corporation.
3.1 Overview of Communications Protocols 3.1.2 Communications Protocols and Message Communications There are two message communications modes: The MEMOBUS message mode for com- mand-response communications, and a general-purpose message mode for one-way commu- nications. The various communications protocols belong to either of these message communications modes.
3 Communications Protocols 3.2.1 Extended MEMOBUS Protocol Protocol Functions 3.2.1 Extended MEMOBUS Protocol The Extended MEMOBUS protocol is used between Controllers with the 218IF Module. It can also be used between 215IF Modules. From a functional point of view, Extended MEMOBUS provides extended functions over the MEMOBUS protocol using conventional RS-232C communications.
Page 37
Transferring Data Using MEMOBUS Mode The Extended MEMOBUS protocol is used for communications between MP-series and CP- series products (MP920, CP-316, CP-317, CP-9200SH, and CP-3500H). The Master transmits Extended MEMOBUS format instructions to the Slave, and the Slave returns a response message when it has received an instruction.
Data address Data size 3.2.2 MEMOBUS Protocol Overview The MEMOBUS Protocol is the standard protocol that has been used up to now for Yaskawa RS-232C communications, and it is the main communications protocol for Yaskawa Control- lers. Controller Controller MSG-RCV...
3.2 Protocol Functions MEMOBUS Protocol Functions Function Function No. of Points Remarks Code − Coil status read 2,000 points − Input relay status read 2,000 points − Holding register write 125 words − Input register read 125 words − Single coil status change 1 point −...
Page 40
3 Communications Protocols 3.2.3 MELSEC-A Protocol MP900-Series Controller MELSEC-A MSG-SND MSG-RCV 217IF/ 218IF MELSEC format Ethernet Fig. 3.3 MELSEC Format Message Flow Between a Controller and MELSEC-A MELSEC Commands Supported by the 217IF The following table shows the common MELSEC ACPU commands supported by the MP900-Series 217IF Module, and the MEMOBUS command codes corresponding to these commands.
Page 41
3.2 Protocol Functions MELSEC Commands Supported by the 218IF The following table shows the common MELSEC ACPU commands supported by the MP900-Series 218IF Module, and the MEMOBUS command codes corresponding to these commands. Table 3.4 Common MELSEC ACPU Commands Extended MELSEC Description Remarks...
3 Communications Protocols 3.2.4 OMRON Protocol 3.2.4 OMRON Protocol The OMRON protocol is used for communications between SYSMAC Programmable Logic Controllers (PLCs) manufactured by OMRON. There is no need to be aware of the commu- nications protocol. Communications Using the OMRON Protocol The OMRON protocol is used for communications between a Controller and an OMRON PLC.
Page 43
3.2 Protocol Functions OMRON Commands Supported by the 217IF The following table shows the OMRON SYSMAC commands that are supported as MEMO- BUS commands by the 217IF Module. Table 3.5 List of OMRON Commands MEMOBUS OMRON Description No. of Words Remarks Command Header Code...
3 Communications Protocols 3.2.5 No Protocol Mode (Through Mode) 3.2.5 No Protocol Mode (Through Mode) Overview With the no protocol mode, consecutive data in the Controller’s holding registers (MW regis- ters) is transferred as it is. No Protocol Functions Function Code Function Remarks −...
3.3 Sample Programming Example Sample Programming Example This section shows an example of a ladder logic program used to implement the message func- tion. It also explains the relationship between the communications protocol and the message function. For message transfers, it is necessary to clearly recognize whether the system operates as a Mas- ter or Slave.
Page 46
3 Communications Protocols 3.3.1 Master Function MSG-SND Program SB000003 L scan: SB03 Set the parameters in the first scan after startup H scan: SB01 IFON 31 BY 1 DW0000i DW register clear FEND Remoto station No. DW00002 00001 00003 DW00004 Function code setting (readout) 00000 DW00005...
3.3 Sample Programming Example With the protocol type, the setting of the Extended MEMOBUS, MEMOBUS, MELSEC, and OMRON protocols is 1. This value is specified in the transmission parameter setting of each Communications Module. See the section on the transmission definitions for individual Communications Module.
Page 48
3 Communications Protocols 3.3.2 Slave Function MSG-RCV Program One scan at power ON SB000003 L scan: SB03 H scan: SB01 At power ON, set the param- IFON eters in the first scan. 31 BY 1 DW register clear DW0000i FEND 00000 DW00008 Coil offset setting...
4 Communications Process 4.1.1 Overview Communications Process This section gives an overview of the communications process and explains how to open it. 4.1.1 Overview The communications process is provided in the communications software on the Program- ming Device that is required when performing engineering to connect a MPE720 Program- ming Device and Machine Controllers.
Page 51
4.1 Communications Process The Communications Process Window will be displayed. The communications process can operate logical ports for up to 16 channels. Select and set the first unused logical port from the top. Double-click the logical port (PT) number. Alternatively, select the logical port (PT) first, and click File and then Setting.
4 Communications Process 4.2.1 Serial Communications Ports Communications Port Settings This section explains the method of setting the various types of communications port. 4.2.1 Serial Communications Ports Serial communications ports are set when engineering is performed with the MPE720 via the 217IF Module or the serial ports on the Machine Controller CPU Module.
Page 53
4.2 Communications Port Settings 2. The setting information will be displayed when the Detail button is clicked. Set the serial port parameters and click OK. Normally, the following default values will be displayed. After checking the settings, click OK. 3. The Logical Port Setting Window will be displayed again. Click OK once more. The dis- play will return to the Communications Process Window.
Page 54
4 Communications Process 4.2.1 Serial Communications Ports 1. Click File and then Save. 2. The Communications Process Window will be displayed to confirm that the information is to be saved. Click Yes to save the information. Exiting the Communications Process Select File and then Exit to close the Communications Process Window.
4.2 Communications Port Settings 4.2.2 CP-215 Communications Port Settings Setting CP-215PC/AT Cards CP-215 PC/AT Cards are set when engineering is performed with the MPE720 via the 215IF. Install the card in an unused ISA slot of the personal computer. Refer to the setting example given below. Setting Example Shared memory address: 0CC000H Interrupt level: IRQ11...
Page 56
4 Communications Process 4.2.2 CP-215 Communications Port Settings * 2. When the CP-215PC/AT Card is model 90000 (87215-90000-S01 be sure that the jumper lead connecting CH0 and CH1 and the DIP switch (SW1) are set as follows: Pin 3: ON Pin 4: OFF Jumper lead: Has been cut When the Card is model 90001 (87215-90001-S01...
Page 57
4.2 Communications Port Settings • Memory (Shared memory) Set the communications buffer address. This is normally set to an unused memory address in the UMB. b) Parameter Tab Page Set the CP-215 transmission parameters. Set the first five parameters: from Own Sta- tion Address to MEMOBUS Response Watch Time.
Page 58
4 Communications Process 4.2.2 CP-215 Communications Port Settings ii) Own Network Address (Network No.) Set the number of the network to which the MPE720 is connected. Set the net- work number to 1 when there is only one network segment. iii) Max Connect Station (Maximum Number of Stations Connected) Set the number of CP-215 network stations.
4.2 Communications Port Settings The CP-215 parameter settings are now completed. The settings must now be saved in a file. Saving the Communications Port Settings and Exiting the Communi- cations Process Refer to 4.2.1 Serial Communications Ports. 4.2.3 CP-218 Communications Port Settings CP-218 Communications Ports are set when 10Base Ethernet engineering is performed via a 218IFA Module installed in the Machine Controller.
Page 60
4 Communications Process 4.2.3 CP-218 Communications Port Settings Determine the IP address setting according to instructions from the network administra- tor. All IP addresses, including those for Machine Controllers, must be managed. 3. The Logical Port Setting Window will be displayed again. Click the OK button once more.
4.3 Setting the Logical Port Numbers Setting the Logical Port Numbers This section explains the logical port number settings. 4.3.1 Setting the MPE720 Logical Port Numbers Up to 16 logical ports can be registered for the communications process. The logical port to be used must be specified when engineering a Machine Controller using the MPE720.
The following diagram shows an example of a MPE720 Programming Device with two MP920 Units and a 215IF Card installed, connected by a 215IF Connection Cable. The Pro- gramming Device can also be connected using the serial port of an MP920 CPU Module.
5 215IF Module 5.1.2 System Configuration Using the Relay Function 5.1.2 System Configuration Using the Relay Function The following diagram shows an example of a system in which two networks are linked using 215IF Modules. When the 215IF Module relay function is used, information can be exchanged with the Con- trollers connected to a different network segment, and the entire system can be managed and controlled by the MPE720 Programming Device.
5.2 Part Names Part Names This section explains the LED indicators and switch settings for the 215IF Module. 5.2.1 215IF Module External Appearance External Appearance Rotary switches LED indicators DIP switches 215IF port CN1 LED Indicators While the Module is operating normally, the RUN LED indicator will be lit and the ERR LED indicator will not be lit.
5 215IF Module 5.2.2 Setting Switches The following table describes the operation of the LED indicators when a failure has occurred. Failure Meaning LED Indicators PROM Checksum A PROM checksum Not lit Flashing Not lit Not lit Error error was detected dur- ing online self-diagnosis.
Page 68
5.2 Part Names DIP Switch (SW3) SW3 sets the operation modes such as transmission speed and the self-diagnosis system. The pins are all set to OFF (right) before shipment. Indicator Name Status Function name BRS0 BRS0 Transmission Transmission speed setting BRS1 speed Select 0 (Effective only when the INIT switch is...
Page 69
5 215IF Module 5.2.2 Setting Switches DIP Switch (SW4) SW4 sets the network No. for 215IF communications. The networks are numbered 1 to 254. This switch is effective only when the INIT switch is ON. The pins are all set to OFF (right) before shipment.
Page 70
5.2 Part Names The settings of A0 to A7 may be considered as bit settings as shown below. The network number thus can be set easily if you think of it as a binary number. A7 A6 A5 A4 A3 A2 A1 A0 Setting for network 1 Setting for network 2...
5 215IF Module 5.3.1 Hardware Specifications Module Specifications This section provides the 215IF Module specifications. 5.3.1 Hardware Specifications The following table shows the hardware specifications for the 215IF Module. Item Specifications Name 215IF Communications Module Model Number JEPMC-CM220 Description 215IF Dimensions 40 ×...
Page 72
5.3 Module Specifications Table 5.1 215IF Module Communications Specifications (cont’d) Item Specifications Maximum Number of Total number of stations: 30 max. (Up to 64 stations can be connected by expanding repeaters) Connections Connection Configuration Error Detection Control CRC check, count for data words, timer * See 5.4.2 Precautions on Wiring Communications for the transmission distance and the number of stations that can be connected.
5 215IF Module 5.4.1 215IF Connection Cables Cables This section explains the cable specifications for 215IF Module communications. 5.4.1 215IF Connection Cables 215IF Connector Pin Layout (CN1/215) Signal Name Function Signal Name Function SRD- Sending and receiving N.C. Not connected data (-) N.C.
5.4 Cables System Configuration Example The following diagram shows a system configuration example. MP920 215IF Repeater Repeater CP-215 MP920 MP920 ACGC4000 CP-717 CP-316 Repeater MP920 CP-215 Wiring Example The following diagram shows a wiring example for the CP-215. SIG+ SIG-...
5 215IF Module 5.4.3 Token Passing Calculating the Transmission Distance The panel-to-panel transmission distance for the CP-215 communications system depends on the baud rate, the number of stations connected, the number of JC215-01 and JC215-02 Junction Boxes connected, and the length of the transmission cables inside the control pan- els.
5.4 Cables 5.4.4 Tokens Overview of the Communications The time from when a token is received until the next time the token is received is called the token cycle time. The time during which the right to send is obtained, that is, the time from when the token is received until the token is transmitted, is called the token holding time.
Page 77
5 215IF Module 5.4.4 Tokens • Transmission speed: 1 Mbps Transmission cycle (ms) = 0.31 × station No. + 0.016 × total number of link transmission words + message transmission margin (≥ 4.8 ms) Note: 1. The token cycle time does not guarantee data transmission in any specific cycle or a fixed cycle.
5.5.1 Overview of CP-215 Transmissions The CP-215 transmission system is a unique real-time Yaskawa network with a baud rate of 4 Mbps. Twisted-pair cable is used for the transmission lines, so an inexpensive but highly reliable transmission system can be constructed.
5 215IF Module 5.5.2 Opening the CP-215 Transmission Definitions Window ST#3 ST#1 ST#2 Desktop MPE720 computer MP920 215/AT NW#1 ST#4 (A Message Relay Function is used.) NW#2 215IF MP920 Note: 1. The network is composed of two segments: Network #1 and Net- work #2.
5.5 CP-215 Transmission Definitions 5.5.3 The CP-215 Transmission Definitions Window Menus The following table shows the functions of the menu commands in the CP-215 Transmission Definitions Window. Menu Command Function File (F) File Manager (F) Opens the MPE720 File Manager. Open (O) Opens the window for each function Close (C)
5 215IF Module 5.5.4 Setting CP-215 Transmission Definitions 5.5.4 Setting CP-215 Transmission Definitions The CP-215 Transmission Definitions Window is composed of four tab pages: The Trans- mission Parameters, Link Assignments, I/O Map, and Status Tabs. The following table shows the settings grouped in each tab page. Tab Name Function Transmission Parameters...
Page 82
The following table shows the relationship between the circuit number and I/O register range. Machine Controller Circuit Number Register Range MP920 01 to 08 0000 to 13FF Hex 2. Own Station No Input the local station number (1 to 64) of the 215IF.
Page 83
See the explanation for the No. of Relayed Network 1 setting, above. 12.Maintenance Switch These settings are all OFF during operation. These software switches are used for Yaskawa maintenance. Do not change the settings. Reverting to Defaults The transmission parameters can be reset to their default values without inputting each parameter, by selecting Edit (E) and then Default (S) from the menu in the CP-215 Trans- mission Definitions Window.
Page 84
5.5 CP-215 Transmission Definitions Link Assignments Assignment Data Settings Assign the I/O registers to be linked between the stations connected to the CP-215 network. Set the station number, controller type, and I/O register number of each station to be linked. 1.
Page 85
5 215IF Module 5.5.4 Setting CP-215 Transmission Definitions (cont’d) Selected Item I/O Device Name CP-316H CP-316H CP-916G CP-916G ACGC4000 ACGC4000 CP-517 CP-517 MP920 MP920 CP-902 CP-902 215IF/INV 215IF/INV RIO-05 RIO-05 RIO-2000 RIO-2000 RIO-120 RIO-120 5. REG-No., SIZE Set the leading register number (I register number) and amount of I/O data. Input an O register number for the local station.
Page 86
5.5 CP-215 Transmission Definitions Assigning the I/O Map The following window displays in bit units the I/O map assignment area from the leading I/ O register number to the end I/O register number that are set in the 215IF Module Definition Window.
Page 87
5 215IF Module 5.5.4 Setting CP-215 Transmission Definitions 3. I/O Assignments Assign bits to I/O for high-speed or low-speed scan. • HI: Input set for a high-speed scan. • HO: Output set for a high-speed scan. • LI: Input set for a low-speed scan. •...
Page 88
PLC Model Code (Corresponds to the content of the “TYPE” column.) 02: CP-3500H 0D: CP-317 0F: CP-916G 05: CP-316 11: ACGC4000 C2: RIO-05 06: CP-916A 12: CP-517 C5: RIO-2000 0C: CP-9200SH 0E: CP-316H C6: RIO-120 14: MP920 16: CP-902 62: 215IF/INV Fig. 5.3 Link Status Data (Other Stations) 5-27...
06: CP-916A 12: CP-517 C5: RIO-2000 0C: CP-9200SH 0E: CP-316H C6: RIO-120 14: MP920 16: CP-902 62: 215IF/INV Fig. 5.4 Link Status Data (Local Station) 8. Station Name (Comment) Displays the station name set in the Link Assignment Tab. 5.5.5 Saving CP-215 Transmission Definitions Data Use the following procedure to save the CP-215 Transmission Definitions data.
5.6 Relay Function Relay Function This section explains the Relay Function between the network segments of 215IF Modules. The Relay Function is used to transfer messages between Machine Controllers across multiple 215IF networks. 5.6.1 Relays Between Networks A unique network number (NW#nn) is allocated to each network segment in the system. A unique station number (ST#nn) is also allocated to the 215IF Module in each network seg- ment.
5 215IF Module 5.6.2 Relay Processing Flow 5.6.2 Relay Processing Flow When, for example, a message is sent from ST#01 to ST#64, the relay destination address is automatically allocated by the system, and the message is sent to ST#64 via the relay station. With the MEMOBUS protocol, a response message is sent from ST#64 to ST#01 via the relay station.
Page 92
5.6 Relay Function No. of Relayed Network 2 (Relay Destination Networks 2) This parameter is valid with the Message Relay Function, and specifies the relay destination networks for messages. • Any network whose number has been specified in either Relay Destination Network 1 or Relay Destination Network 2 will be valid.
Page 93
5 215IF Module 5.6.3 Example of a Network Configuration Using the Relay Function 215IF Network Configuration 2 In the following example, three 215IF Modules are mounted to one MP920 Controller. ST#31 ST#32 NW#4 CP-215 ST#30 ST#11 ST#12 NW#2 ST#2 ST#3...
Page 94
• NW#2: ST#10 and ST#12 • NW#3: ST#20 • NW#4: ST#30 A Machine Controller that performs network relaying is an MP920 Machine Controller with two or INFO more 215IF Modules with ports connected to different networks to transfer data between the networks.
Page 95
5 215IF Module 5.6.3 Example of a Network Configuration Using the Relay Function 215IF Network Configuration 3 ST#15 NW#2 CP-215 ST#10 ST#11 ST#12 ST#13 ST#14 ST#1 ST#2 ST#3 ST#4 ST#5 CP-215 NW#1 ST#6 MPE720 RS-232C Settings 1. NW#1 ST#6 NW#2 ST#15 •...
Page 96
5.6 Relay Function Remarks In the example given above, only one Machine Controller that performs network relaying can be set in each network, as shown under the Remarks for 215IF Network Configuration “ 2. Therefore, Network Relay is set to Yes”...
5 215IF Module 5.7.1 CP-215 Repeaters CP-215 Repeaters This section describes CP-215 Repeaters. 5.7.1 CP-215 Repeaters CP-215 Repeaters are used to extend the CP-215 transmission distance. Different CP-215 Repeater models are available for use with twisted-pair, coaxial, and optical fiber cables. The best system can be constructed according to the transmission distance.
Page 98
5.7 CP-215 Repeaters CP-215 CP-215 CP-215 REPEATER-TT REPEATER-TC REPEATER-TP POWER POWER POWER CN1/A-LINE CN3/B-LINE CN1/A-LINE CN3/B-LINE CN1/A-LINE CN3/B-LINE RESET RESET RESET ON-LINE ON-LINE ON-LINE CN2/CONT CN2/CONT CN2/CONT Fig. 5.5 CP-215 Repeater Dimensions in mm 5-37...
5 215IF Module 5.7.2 System Configuration 5.7.2 System Configuration Standard System Configuration The standard system configuration for an Electrical Repeater is shown below. System Configuration for Electrical Repeater-TT The following example shows the standard system configuration using one Electrical Repeater. In this example, an Electrical Repeater-TT is connected between the main bus and branch bus in order to connect 60 stations.
Page 100
5.7 CP-215 Repeaters Standard System Configuration for Electrical Repeater-TT and Repeater-TC The following example shows the standard system configuration using two Electrical Repeaters. Use two Electrical Repeaters-TT/-TC when the transmission distance is long. These Electri- cal Repeaters can be connected using twisted-pair cables or coaxial cables. Station Station 170 m max.
Page 101
5 215IF Module 5.7.2 System Configuration Standard System Configuration for Optical Repeaters The following example shows the standard system configuration for Optical Repeaters. Standard System Configuration for Optical Repeater-TP Use Optical Repeaters where there is a risk of noise due to a long transmission distance. These Optical Repeaters can be connected using the designated two-core optical fiber cables and optical connectors.
Page 102
5.7 CP-215 Repeaters Standard System Configuration for Optical Repeater-TS The following example shows the standard system configuration using two Optical Repeat- ers. Station Station 170 m max. per 30 stations CP-215 main bus CN3, CN4: FC connector Repeater-TS Two-core optical fiber cable TS2: 2 km (TS2: Gl-50/125, 850 m, 200 MHz km, 2.5 to 3 dB/km) TS5: 5 km...
Page 103
5 215IF Module 5.7.2 System Configuration Station Station Station CP-215 main bus System A System B Repeater Repeater System A/B changeover contact input (24 VDC) Repeater Repeater CP-215 branch bus Station Station Station Fig. 5.10 Dual System Configuration for Repeaters 5-42...
Page 104
5.7 CP-215 Repeaters System Configuration with Maximum Number of Repeaters System Configuration Using Cascade Connections The following example shows a system configuration with the maximum number of Repeat- ers. Up to eight Repeaters can be connected between two stations. If the number of Repeater exceeds eight, use the star connection method in conjunction with the cascade connection method to reduce the number of Repeaters between any two stations to eight or less.
5 215IF Module 5.7.3 Specifications Common to All CP-215 Repeaters System Configuration Using Star Connections The following example shows a system configuration using star connections. ST#1 Up to foru Repeaters can be connected between two stations. In the start connection method, Repeaters for branch lines are radially Repeater connected from the electrical bus.
Page 106
5.7 CP-215 Repeaters Environmental Conditions Item Specifications Operating Temperature 0 to 55° Operating Humidity 5 to 95%RH (no condensation) Storage Temperature -25 to + 85° Storage Humidity 5 to 95% (no condensation) Vibration Resistance Conforming to JIS B 3502: 10 to 150 Hz with single-amplitude of 0.075 mm 57 to 150 Hz with fixed acceleration of 9.8 m/s (1G) Shock Resistance...
Page 107
5 215IF Module 5.7.3 Specifications Common to All CP-215 Repeaters Terminal Blocks 24-VDC Models Terminal Name Function Protective ground terminal 24 V 24 VDC positive terminal 24 VDC negative terminal 100-VAC, 200-VAC, 100-VDC Models Terminal Name Function Protective ground terminal AC1/+ AC input or 100 VDC positive terminal AC2/-...
Page 108
5.7 CP-215 Repeaters Connector Signal Assignments Signal Name Signal Name SRD- Not used. Not used. Not used Not used SRD+ * Short-circuiting the RT1 and RT2 terminals connects the internal 75 Ω terminating resistance. CN2: Operating Status I/O Connector (D-sub 9-pin) Name Specifications RUN output (open collector output)
Page 109
5 215IF Module 5.7.3 Specifications Common to All CP-215 Repeaters Indicators The CP-215 Repeater-TT displays the operating status using the following indicators. Terminal Name Status Description POWER Power is turned ON. Not lit Power is turned OFF. POWER Port is receiving data. Not lit Port is not receiving data.
5.7 CP-215 Repeaters RESET Pushbutton This pushbutton is used to reset (OFF → ON) the RUN output from CN2. RESET 5.7.4 CP-215 Repeater-TT The CP-215 Repeater-TT is an electrical Repeater that relays CP-215 or CP-216 transmis- sion signals using twisted-pair cables. There are two models of CP-215 Repeater-TT.
5 215IF Module 5.7.6 CP-215 Repeater-TP 5.7.6 CP-215 Repeater-TP The CP-215 Repeater-TP is an optical Repeater that relays CP-215 or CP-216 transmission signals using H-PCF optical fiber cables. There are two models of CP-215 Repeater-TP. • 24-VDC model • 100/115-VAC, 200-VAC, 100-VDC model The transmission distance can be extended to a maximum of 850 m.
5.7 CP-215 Repeaters * Refer to System Configuration with Maximum Number of Repeaters under 5.7.2 System Configuration for the specifications for the maxi- mum number of Repeaters connected and the total transmission distance. 5.7.7 CP-215 Repeater-TS2 The CP-215 Repeater-TS2 is an optical Repeater that relays CP-215 or CP-216 transmission signals using crystal glass optical fiber cables.
6 217IF Module 6.1.1 Standard System Configuration System Configuration This section gives an overview of the system configuration used for MP900-Series 217IF Mod- ules. 6.1.1 Standard System Configuration The following diagram shows an example in which a MPE720 Programming Device and a display panel are connected by a 217IF Module.
6.1 System Configuration 6.1.2 System Configuration with Controllers Manufactured by Other Companies The following diagram shows an example of a MELSEC Controller (manufactured by Mit- subishi Electric Corporation) and an MP920 connected by a serial line. MELSEC MP920 CPU 217IF MPE720...
6 217IF Module 6.2.1 217IF Module Part Names This section explains the LED indicators and switch settings for the 217IF Module. 6.2.1 217IF Module LED indicators RS-232C Port 1 RS-232C Port 2 RS-485 Port LED Indicators While the Module is operating normally, the RUN LED indicator will be lit and the ERR LED indicator will not be lit.
Page 121
6.2 Part Names The following table describes the operation of the LED indicators when a failure has occurred. Failure Meaning Indicators PROM Checksum A PROM checksum Not lit Flashing Depends on the cir- Error error was detected dur- cumstances ing online self-diagnosis. SRAM Error in A hardware error was Not lit...
Page 122
6 217IF Module 6.2.1 217IF Module Terminating resistance RXR (+) RX (+) RX (-) TXR (+) TX (+) TX (-) When the terminating resistance is inserted, connect to the RXR (+) and RX (-) signal terminals, and the TXR (+) and TX (-) signal terminals. When the terminating resistance is not inserted, connect to the RX (+) and RX (-) signal terminals, and the TX (+) and TX (-) signal terminals.
JEPMC-CM200 Description 217IF 40 × 130 × 105 mm (W × H × D) Dimensions (Size for one option slot of MP920) Approximate Mass Base: 200 g, Case: 165 g Power Supply Supplied from Base Module +5 V, 300 mA 6.3.2...
Master once the request to send (RTS) signal has been received from the Master. • With a Yaskawa Modem, this time can largely be ignored because it is less than 5 ms. There is no delay time if a modem is not used.
Page 125
Machine Controller. • With the MP920, all functions can be processed in one scan. Therefore, this time will be the time required for one MP920 scan.
If noise is a problem, use a shielded cable or a modem to reduce the noise. The following table shows the 217IF RS-232C transmission line connections of 217IF Mod- ule. Table 6.4 217IF RS-232C Transmission Line Connections MP920 217IF (CN1, CN2) Cable Connection and Signal Remote Station Direction (D-sub 25-pin) Signal Name Pin No.
6.4 Cables Table 6.5 217IF RS-232C Transmission Line Connections MP920 217IF (CN1, CN2) Cable Connection and Signal Remote Station Direction (D-sub 9-pin) (Yaskawa Specifications) Signal Name Pin No. Pin No. Signal Name SD (TXD) SD (TXD) RD (RXD) RD (RXD)
Page 128
6 217IF Module 6.4.2 RS-422/485 Interface Cables RS-422 Wiring MP920 217IF RS232/422 TRX1 TRX2 TRX3 Terminal (PLC, etc.) 217IF CN3 (MR-8) Remote station TX (+) TX (-) RX (+) RX (-) When the remote station is also a 217IF Module, the wiring will be as shown below.
The 217IF Module is a Serial Transmission Interface Module equipped with two RS-232C circuits and one RS-422/485 interface circuit. Each interface supports various transmission protocols, beginning with Yaskawa’s own MEMOBUS transmission protocol. The RS-232C CN1 D-sub 9-pin connector can be used as an engineering port. The MPE720 Programming Device can be connected to perform MP920 engineering.
6 217IF Module 6.5.2 Opening the CP-217 Transmission Definitions Window 6.5.2 Opening the CP-217 Transmission Definitions Window When the CP-217 Transmission Definitions Window is opened in online mode, the CP-217 parameters stored in the Machine Controller will be loaded. When the Window is opened in offline mode, the CP-217 parameters stored in the hard disk on the MPE720 will be loaded.
6.5 CP-217 Transmission Definitions 6.5.4 Setting CP-217 Transmission Definitions Data This section explains the various parameters required to use the CP-217 transmission sys- tem. The CP-217 has tabs for the current circuit and the next two circuits. Click another circuit’s tab to switch to that circuit’s Transmission Parameters Window.
Page 134
1 to 24 3. Transmission Protocol Select the desired protocol. • MEMOBUS: Yaskawa’s standard MEMOBUS protocol. • MELSEC: Mitsubishi’s special protocol (control protocol type 1) for use with gen- eral-purpose sequencers and computer links. • OMRON: OMRON’s SYSMAC C-series Host Link protocol.
Page 135
6.5 CP-217 Transmission Definitions • 2stop: 2 stop bits 11. Baud Rate Select the transmission speed (bps). 12. Sending (Send Delay Setting) When Enable is selected, a delay until the beginning of transmissions (1 to 100 ms) can be set. •...
6.6 217IF Communications Protocols 217IF Communications Protocols The 217IF Module supports Yaskawa’s standard MEMOBUS communications protocol, as well as various other communications protocols. As standard functions, the MELSEC communications protocol is provided for connection with controllers manufactured by Mitsubishi Electric Corporation, and the OMRON communications protocol is provided for connection with Programmable Controllers manufactured by OMRON Corporation.
6 217IF Module 6.6.2 MELSEC Communications Other MEMOBUS Device MP 900 Coil Coil 000003 MB000002 000002 MB000001 MEMOBUS message 000001 MB000000 (Offset: Default is 0) MP 900 Coil MB001002 MB001001 MB001000 (Offset: 100) 6.6.2 MELSEC Communications MELSEC Communications Specifications The following table shows the general specifications for MELSEC communications, and which of these specifications are supported by the MP900.
Page 139
MEMOBUS command Messages All standard MEMOBUS messages are exchanged between the MP920 and the 217IF Mod- ule. The 217IF communicates with the MELSEC Controller and performs standard MEMOBUS and MELSEC message conversion processing. There is no need for the MELSEC message configuration to be recognized by the user application.
Page 140
6 217IF Module 6.6.2 MELSEC Communications MELSEC Commands The following table shows the MELSEC ACPU commands that are supported by the 217IF Module, and the corresponding MEMOBUS command codes. Table 6.9 MELSEC ACPU Commands Command Description 217IF MEMOBUS Command Support −...
Page 141
6.6 217IF Communications Protocols Table 6.9 MELSEC ACPU Commands (cont’d) Command Description 217IF MEMOBUS Command Support − Reads the main microcomputer program 128 bytes − Reads the sub-microcomputer program 128 bytes − Writes the main microcomputer program 128 bytes − Writes the sub-microcomputer program 128 bytes −...
Page 142
6 217IF Module 6.6.2 MELSEC Communications MELSEC Devices The table below shows the MELSEC bit devices and word devices that can be accessed from the MP900. The MP900 register numbers corresponding to the MELSEC device range and the MEMO- BUS commands used are also shown in the table. Table 6.10 MELSEC Bit Devices Device Device Range for Common...
6.6 217IF Communications Protocols 6.6.3 OMRON Communications OMRON Communications Specifications The following table shows the general specifications for OMRON communications, and which of these specifications are supported by the 217IF Module. Table 6.12 OMRON Communications Specifications General OMRON Specifications OMRON Specifications Supported by the 217IF Transmission RS-232C...
Page 144
MEMOBUS command Messages All standard MEMOBUS messages are exchanged between the MP920 and the 217IF Mod- ule. The 217IF communicates with the OMRON PLC and performs standard MEMOBUS and OMRON message conversion processing. There is no need for the OMRON message con- figuration to be recognized by the user application.
Page 145
6.6 217IF Communications Protocols OMRON Commands The following table shows the OMRON SYSMAC Host Link commands that are supported as MEMOBUS commands by the 217IF Module. Table 6.13 List of OMRON Commands Header Description No. of Words 217IF MEMOBUS Code Command Support 256 words...
Page 146
6 217IF Module 6.6.3 OMRON Communications OMRON Devices The table below shows the OMRON devices (bits and data memory) that can be accessed from the MP900. The MP900 register numbers corresponding to the OMRON device range and the MEMO- BUS commands used are also shown in the table. Table 6.14 List of OMRON Addresses Name Words...
218IFA Supply Module * 1. Yaskawa's CP Series: Large-scale Sequence Controller Series for plant control * 2. Yaskawa's MP Series: Machine Controller Series Efficiency is not necessarily improved with the Ethernet transmission mode. If it is desired to transmit INFO and receive control signals using applications that require good realtime performance, then Ethernet cannot be recommended.
7 218IF Module 7.1.2 10Base-T Connection 7.1.2 10Base-T Connection The following diagram shows an example of a 10Base-T connections. Connection Example 1 In this example, the total distance between the nodes on both end of the network is 500 m and the maximum number of nodes is 5.
7.2 Part Names Part Names This section explains the LED indicators and switch settings for the 218IFA Module. 7.2.1 218IF Module LED indicators DIP switch 10 Base-T LED Indicators When the Module is operating normally, the RUN LED indicator will be lit and the ERR LED indicator will not be lit.
7 218IF Module 7.2.2 Setting Switches The following table describes the operation of the LED indicators when a failure has occurred. Table 7.1 Indicator Displays for Errors Failure Error Description Indicators PROM Checksum A PROM checksum Not lit Flashing Depends on the cir- Error error was detected dur- cumstances.
JEPMC-CM210A Description 218IFA Dimensions 40 × 130 × 105 mm (W × H × D) (Size for one option slot of MP920) Approximate Mass Base: 220 g, Case: 220 g Power Supply Supplied from Base Module +5 V, 450 mA 7.3.2...
7 218IF Module 7.3.3 Module Startup 7.3.3 Module Startup This section explains the system start-up procedure and setting method for each of the fol- lowing two modes in a system that uses the 218IFA Module. • Operation mode • Diagnostic mode Settings and Procedure Before Operation Operation mode startup procedure Turn OFF all the pins of DIP switch SW1 on...
Page 155
7.3 Module Specifications Performing Self-Diagnosis When first using the 218IFA Module, use the following procedure to perform self-diagnosis. Start operation after checking that the 218IFA Module is operating normally. Start of self-diagnosis Set DIP switch on the front panel as follows: Set the DIP switch on the front TEST: ON panel of the 218IFA...
Page 156
7 218IF Module 7.3.3 Module Startup When a hardware error is detected during self-diagnosis, the ERR LED indicator will light or flash as shown below. PROM Diagnostic Error The ERR LED indicator remains lit. SRAM Diagnostic Error The ERR LED indicator flashes. LAN Interface Diagnostic Error The ERR LED indicator flashes twice, and continues flashing.
7.4 Cables Cables This section explains the cable specifications for communications using the 218IFA Module. 7.4.1 218IF Connection Cables 218IF Connector Pin Layout (CN1/AUI) The 218IFA Ethernet port is a 10Base-T communications port. The connector for this port is RJ-45 (Modular Jack). The following table shows the pins, layout, and signal names of the 218IFA Ethernet con- nectors.
The CP-218 communications system can be connected to an international standard Ethernet network, and controllers manufactured by other companies and personal computers can be easily connected. The MPE720 can be connected to perform MP920 engineering. To define CP-218 transmissions, the required data must be set (or referenced) using two tab pages: Transmission Parameters and Status.
7.5 CP-218 Transmission Definitions When the CP-218 Transmission Definitions Window is opened and the CP-218 parameters are being INFO set for the first time, a confirmation message box will be displayed indicating that a new file will be created. Click the OK button to proceed to the next operation. 7.5.3 The CP-218 Transmission Definitions Window Menu The following table shows the functions of the menu commands in the CP-218 Transmission...
7 218IF Module 7.5.4 Setting CP-218 Transmission Definitions 7.5.4 Setting CP-218 Transmission Definitions The CP-218 Transmission Definitions Window is composed of two tab pages: The Trans- mission Parameters and Status Tabs. Tab Name Function Transmission Parameters Sets the CP-218 transmission parameters. Status Displays the communications status.
Page 161
7.5 CP-218 Transmission Definitions Machine Controller Line Number MP920 01 to 08 Transmission Parameter Settings 2. Local Station’s IP Address Enter the local station’s IP address. Do not use the same IP address for another node in the Ethernet system.
Page 162
7 218IF Module 7.5.5 Transmission Parameter Settings 4. Count of Retry (Number of Retries) Enter the number of retries (0 to 255) to be attempted when a timeout is detected for a system function (the MSG-SND function). An error will be returned for the MSG-SND function if a response is not returned after the set number of retries.
Page 163
7.5 CP-218 Transmission Definitions 8. DST. Port (Remote Station’s Port Number) Enter the remote station’s port number (0 or 256 to 65,535) for each connection. Be sure that the DST. IP Address and DST. Port combination are not the same as those for another connection.
Page 164
7 218IF Module 7.5.5 Transmission Parameter Settings Protocol Type Remarks Extended Yaskawa Extended MEMOBUS protocol. MEMOBUS MEMOBUS Yaskawa Standard MEMOBUS protocol. MELSEC Mitsubishi Electric’s Ethernet Interface protocol for use with general- purpose sequencers. No protocol General-purpose message communications. Data is transmitted and received without being processed into consecutive MW registers.
Page 165
7.5 CP-218 Transmission Definitions Setting Default Values The transmission parameters can be set to their default values without entering each parame- ter, by clicking Edit (E) and then Transmission Parameters Default Settings (D) on the CP-218 Transmission Definitions menu. The following table shows the default values for each transmission parameter.
Page 166
7 218IF Module 7.5.5 Transmission Parameter Settings Local Station and TCP/IP Settings Local Station and TCP/IP Setting Procedure The local station and TCP/IP setting procedure is shown below. 1. Click Edit (E) and then This Station Settings and TCP/IP Setting (M) on the CP-218 Transmission Definitions menu.
Page 167
7.5 CP-218 Transmission Definitions 2. Gateway IP Address Enter the gateway’s IP address when communicating with other networks that are con- nected through a gateway (router). The IP address consists of a 32-bit string. A period (.) separates each of the four 8-bit segments of the address, and each segment is expressed in decimal.
Page 168
7 218IF Module 7.5.5 Transmission Parameter Settings When the maximum packet length set is less than the default value (1,500 bytes) and no protocol is set INFO as the application protocol, set a value at least 40 bytes more than the number of data items (bytes) to be transmitted.
Page 169
7.5 CP-218 Transmission Definitions • Duplication of a Remote Station A DST. IP Address, DST. Port, and Connect Type combination set in the connection parameters must not be used for any other connection. This restriction does not apply to connections in which both the DST. IP Address and DST. Port are set to all zeroes. •...
Page 170
7 218IF Module 7.5.5 Transmission Parameter Settings Displaying the Status The Status Tab displays the data that the 218IF is actually handling in link transmissions. The tab only displays the settings; the settings cannot be changed. All the data will be dis- played in online mode.
Page 171
7.5 CP-218 Transmission Definitions 8. Error Status Displays the error details when an error has occurred in the transmission status. Table 7.7 Error Status Status Meaning Remarks No Error No error Socket Generation Error System error Socket generation failure Local Station Port Number Local station port number setting error.
7 218IF Module 7.5.6 Saving CP-218 Transmission Definitions Data 11.Error Count (Error Counter) Displays the number of times an error has occurred in each connection. 12.Response Time [ms] Displays the time (ms) taken for a response to be received after a command has been transmitted with the MSG-SND function.
7.5 CP-218 Transmission Definitions 1. The connection parameters cannot be saved unless the parameter input values pass a consistency IMPORTANT check. See Precautions on Setting the Connection Parameters under 7.5.5 Transmission Param- eter Settings for details. 2. An error detection message box will be displayed if the save operation fails. See Appendix A Sys- tem Functions for a list of error messages, correct the cause of the error, and try to save the data again.
Protocol Remarks Extended MEMO- The MEMOBUS mode and general-purpose message mode are available. BUS Protocol Standard MEMO- Yaskawa standard MEMOBUS protocol. BUS Protocol (Slave function only) MELSEC-A Protocol A subset of Mitsubishi Electric’s general-purpose sequencer protocol. No protocol Used for general-purpose message communications.
7.6 Connecting 218IF Modules When using the TCP protocol in no protocol (through) mode, note the following points: IMPORTANT Because the TCP protocol is a byte-stream protocol, complicated byte-stream processing must gener- ally be created in the Controller’s ladder logic program. As a general rule, with the TCP protocol, the transmission data will be stored as far as possible in a send buffer, and as much data as possible should be transmitted in the same packet.
Page 176
7 218IF Module 7.6.2 Communications Ladder Logic Programming Ladder Logic Program to Send Messages (MSG-SND) The following diagram shows an example of a master function (MSG-SND) ladder logic program. $FSCAN-L SB000003 L scan:SB03 H scan:SB01 At startup, set the parameters in the IFON first scan.
Page 177
7.6 Connecting 218IF Modules Ladder Logic Programming to Receive Messages (MSG-RCV) The following diagram shows an example of a slave function (MSG-RCV) ladder logic program. $FSCAN- L SB000003 L scan:SB 3 H scan:SB01 At startup, set the parameters in IFON the first scan.
Page 178
7 218IF Module 7.6.2 Communications Ladder Logic Programming Programming Precautions Care is required when one 218IF Module is communicating with 11 stations (11 connec- tions) or more. This is because there are only 10 channels of shared memory between the CPU and the 218IF, and these channels will be used until the system function has been com- pleted.
7.7 Connection with Devices Manufactured by Other Companies Connection with Devices Manufactured by Other Compa- nies This section explains the connection of the 218IF with devices manufactured by other compa- nies. The network configuration between an Ethernet Interface installed in a PC/AT or compatible computer or UNIX workstation and a 218IF Module is shown below.
7 218IF Module 7.7.2 Socket Communications Flow 7.7.2 Socket Communications Flow The following diagram shows the logical programming flow using a socket interface. Master Slave Start Start socket socket Socket created Socket created bind bind IP address and port IP address and port No.allocation No.allocation listen...
7.7 Connection with Devices Manufactured by Other Companies 7.7.3 Data Format The following diagram shows the data format when the 10 words of data from holding regis- ters 0 to 9 are read by the SFC09 Holding Register Read (Extended) command, which is one of the Extended MEMOBUS commands.
7 218IF Module 7.7.5 Programming Precautions MEMOBUS Response Data • Copy the identification number set in the MEMOBUS command data. • Copy the leading source channel number set in the MEMOBUS command data is copied as the leading destination channel. •...
Page 183
7.7 Connection with Devices Manufactured by Other Companies Specify zeroes. Specify zeroes. As shown in the above diagram, a connection request can be received from any station by specifying zeroes for both the DST. IP Address and the DST. Port in the CP-218 Connection Parameter Window.
MEMOBUS command Messages Extended MEMOBUS messages are exchanged between the MP920 and the 218IFA, and MELSEC messages are exchanged between the 218IFA and MELSEC. For MELSEC communications, check the operation when the A2U CPU and AJ71E71 are used in INFO combination.
7.8 Connections with MELSEC 7.8.3 Programming 218IFA Programming Suggestions The 218IFA communicates with the MELSEC Controller that performs Extended MEMO- BUS and MELSEC message conversion processing. Thus there is no need for the MELSEC message configuration to be recognized by the user application. The user can easily commu- nicate with the MELSEC Controller by using the MSG-SND function to specify MELSEC under Protocol Type in the 218IFA Connection Parameter Window.
Page 186
7 218IF Module 7.8.4 MELSEC Commands Table 7.8 Common MELSEC ACPU Commands (cont’d) Command Description 218IFA MEMOBUS Command Support − 120 words Sets the bit devices to be monitored in 16-point units (326 points) − 20 points Sets the word devices to be monitored in 1-point units −...
7.8 Connections with MELSEC Table 7.8 Common MELSEC ACPU Commands (cont’d) Command Description 218IFA MEMOBUS Command Support 508 words Reads random access buffer communications 508 words Writes random access buffer communications * Yes: Command supported by the 218IFA Module. No: Command not supported by the 218IFA Module. Note: Special AnACPU commands are not supported.
Page 188
7 218IF Module 7.8.5 MELSEC Devices Table 7.10 MELSEC Word Devices Device Device Range for Common Decimal/ MEMOBUS Command Leading Register No. ACPU Commands Hexadecimal TN000 to TN255 Decimal 04H/0AH: Input registers 0 to 255 MW00000 to MW00255 CN000 to CN255 Decimal 04H/0AH: Input registers 256 to 511...
7.8 Connections with MELSEC 7.8.6 MP900-Series Machine Controller and MELSEC Register Maps The following table shows the correspondences between MP900-Series Machine Controllers and MELSEC devices. Each MELSEC device is allocated to an MP900-Series Machine Controller M register (holding register, input register, input relays, or coils). The MW regis- ters correspond to holding and input registers, and the MB registers correspond to input relays and coils.
7 218IF Module Troubleshooting This section explains how to deal with problems that may occur with 218IF communications. Problems and Action to be Taken Problem Action Bind ( ) is not specified for the Set zeroes for the DST. IP Address and the DST. Port in the TCP protocol.
System Configuration The commercially available GP-450 Display Device is connected to the RS-485 port of the 217IF Module to monitor the status of the MP920. At the same time, the MPE720 Programming Device is connected to the RS-232C port of the 217IF Module to manage the engineering environment.
8 Example Communications Module Applications 8.1.2 Cable Specifications 8.1.2 Cable Specifications Connection Cables for PC/AT or Compatible Computers 217IF RS232/422 TRX1 MPE720 TRX2 TRX3 MPE720 CN1 and CN2 Cables Cable model: 87751-90100 217IF PC/AT or Compatible Computer D-sub 9-pin D-sub 9-pin (female) Shield Signal Name Pin No.
Page 195
8.1 Connection to a Display Device Connection Cable for NEC PC-98 217IF RS232/422 TRX1 TRX2 TRX3 NEC PC-98 Note CN1 and CN2 Cables Cable model: JZMSZ-W1015-21 217IF NEC PC-98 D-sub 9-pin D-sub 25-pin Shield Signal Name Pin No. Pin No. Signal Name Relay Cable for NEC PC-98 Note Cable model:...
Page 196
8 Example Communications Module Applications 8.1.2 Cable Specifications Connection Cables for GP-450 Display Devices 217IF RS232/422 TRX1 TRX2 TRX3 CN1 and CN2 Cables 217IF D-sub 9-pin D-sub 25-pin Shield Signal Name Pin No. Pin No. Signal Name N.C. Note: A JZMSZ-W1015-21 Cable can also be used.
8.1 Connection to a Display Device CN3 Cables 217IF MR 8-pin D-sub 25-pin Signal Name Pin No. Pin No. Signal Name Shield RX(-) RX(+) RD A SD A TX(-) SD B TX(+) RD B Note: Connect the cable so that the terminating resistance for 217IF Module is connected.
8 Example Communications Module Applications 8.1.4 GP-450 Settings 8.1.4 GP-450 Settings The following figure shows the GP-450 settings. End Setting Cancel SIO settings Baud rate 2400 4800 9600 19200 38400 Data length Stop bits Parity bits None Odd Even Control method X control ER control Set “ER control”.
8.1 Connection to a Display Device 8.1.5 MSG-RCV Function The following diagram shows a MEMOBUS Slave MSG-RCV ladder logic program for the MP920 and CP-217. One scan at startup Low-speed scan (DWG L): SB000003 High-speed scan (DWG H): SB000001 SB000003 DW00002 is not set with the CP-217.
Connection to a SYSMAC PLC This section explains master communications with an OMRON SYSMAC PLC. 8.2.1 System Configuration SYSMAC PLC data is referenced by connecting the RS-232C port of the 217IF Module to an OMRON SYSMAC PLC. MP920 SYSMAC PS-01 CPU-01 217IF Programming Console 8.2.2...
Page 201
8.2 Connection to a SYSMAC PLC CN1 and CN2 Cables 217IF OMRON PLC D-sub 9-pin D-sub 9-pin Signal Name Pin No. Pin No. Signal Name Shield N.C. N.C. N.C. Note: OMRON SYSMAC PLC Models: C20H C28H C40H 217IF OMRON PLC D-sub 9-pin D-sub 25-pin Shield...
Page 202
8 Example Communications Module Applications 8.2.2 Cable Specifications CN3 Cables 217IF OMRON PLC MR 8-pin D-sub 9-pin Signal Name Pin No. Pin No. Signal Name Shield RD B RX (-) N.C. RX (+) N.C. TX (-) SD B TX (+) RD A N.C.
8.2 Connection to a SYSMAC PLC 8.2.3 217IF Transmission Settings The following figure shows the CP-217 Transmission settings. 8.2.4 SYSMAC PLC Settings (C28H) The following table shows operation examples for the C28 -Series PLCs. These settings do not apply to other models. For the SYSMAC PLC settings, use a Programming Console to write to the PC Setup (DM 0920 to DM 0923).
Page 204
8 Example Communications Module Applications 8.2.4 SYSMAC PLC Settings (C28H) SYSMAC PLC Setup Word Address Bit No. Function Recommended Setting DM 0920 00 to 07 Standard settings for RS-232C interface communications conditions (DM 1920) Standard settings 00: Standard settings 01: Individual settings Standard settings: Transmission speed: 9,600 bps Start bits: 1 bit...
Page 205
8.2 Connection to a SYSMAC PLC * 2. Because the default is 0, change the setting to a value other than 0 (such as 01) when connecting the 217IF Module. System Settings and Registration Flow START Write the settings in the PC Setup (DM 0920 to DM 0923), using the PV Change operation (see table on previous page).
8 Example Communications Module Applications 8.2.5 MSG-SND Function 8.2.5 MSG-SND Function The following diagram shows an OMRON Master MSG-SND ladder logic program for the MP920 and CP-217. One scan at startup Low-speed scan (DWG L): SB000003 SB000003 High-speed scan (DWG H): SB000001...
This section explains master communications with MELSEC Controller. 8.3.1 System Configuration MELSEC data is referenced from the MP920 by connecting the RS-232C port and the Ether- net port of the MELSEC Controller (manufactured by Mitsubishi Electric Corporation) to the MP920 217IF (CN2) and 218IFA respectively.
Page 208
8 Example Communications Module Applications 8.3.2 Cable Specifications CN1 Cables 217IF MELSEC Controller D-sub 9-pin D-sub 9-pin Shield Signal Name Pin No. Pin No. Signal Name Note: Mitsubishi Electric Controller model: A1SJ71C24 CN3 Cables 217IF Screw Terminal Block * MR 8-pin Signal Name Shield Signal Name...
8.3 Connection with MELSEC 8.3.3 217IF Transmission Settings The following figure shows the 217IF Transmission settings. 8.3.4 MELSEC Settings (AJ71UC24 Example) Buffer Memory Settings Change the two settings shown in the following table. The buffer memory is not backed up. It should therefore be set in the user program. →...
Page 210
8 Example Communications Module Applications 8.3.4 MELSEC Settings (AJ71UC24 Example) Switch Settings Station Number Setting Switches Set 01 to 31, but not 0. (Recommended value: 01) Switch Name Setting Set Value (Recommended Value) × 10 (rotary switches 0 to 9) The second digit for station number ×...
Page 211
8.3 Connection with MELSEC Mode Setting Switches Switch Name Setting Port Operation Mode Set Value Switch No. RS-232C Port RS-422/485 Port MODE Cannot be used. • With RS-232C (Rotary connection: 1 Type 1 protocol No-protocol mode Switches 0 to F) •...
8 Example Communications Module Applications 8.3.5 MSG-SND Function 8.3.5 MSG-SND Function The following diagram shows a MELSEC Master MSG-SND ladder logic program for the 217IF Module of the MP920. One scan at startup Low-speed scan (DWG L): SB000003 SB000003 High-speed scan (DWG H): SB000001 At startup, set the parameters in the first scan.
Tempe- RS-232C rature Controller No-protocol Communications Between the MP920 217IF and a Temperature Controller Manufactured by RKC INSTRUMENT INC. With this protocol, the SR-Mini temperature input values from CH0 to CH3 are stored in MW07030 and later registers. MP920...
8 Example Communications Module Applications 8.4.2 Cable Specifications 8.4.2 Cable Specifications Connection Cables for SR-Mini Temperature Controller 217IF RS232/422 TRX1 SR-Mini TRX2 TRX3 SR-Mini SR-Mini PCP Module The three interfaces listed below are supported. Specify the desired one when ordering. •...
Page 215
8.4 Connection to a Temperature Controller CN1 and CN2 Cables 217IF SR-Mini D-sub 9-pin Modular (6-pin) Shield Signal Name Pin No. Pin No. Signal Name N.C. N.C. RS-232C CN3 Cables 217IF SR-Mini MR 8-pin Modular (6-pin) Shield Signal Name Pin No. Pin No.
8 Example Communications Module Applications 8.4.3 217IF Transmission Settings 217IF SR-Mini MR 8-pin Modular (6-pin) Shield Signal Name Pin No. Pin No. Signal Name R (A) RX (-) R (B) RX (+) T (B) TX (-) T (A) TX (+) RS485 Note: Connect the cable so that the terminating resistance for the 217IF is connected.
8.4 Connection to a Temperature Controller 8.4.4 Temperature Controller Settings The following table shows the switch settings for the SR-Mini Temperature Controller. Bit 1 Always OFF Bit 2 Always OFF Bit 3 Set according to the transmission speed Bit 4 Set according to the transmission speed Bit 3 Bit 4...
8 Example Communications Module Applications 8.4.5 MSG-SND and MSG-RCV Functions 8.4.5 MSG-SND and MSG-RCV Functions The following diagrams show the no-protocol MSG-SND and MSG-RCV ladder logic pro- grams for a Temperature Controller and the 217IF Module. MSG-SND and MSG-RCV One scan at startup Low-speed scan (DWG L): SB000003 SB000003 High-speed scan (DWG H): SB000001...
Page 219
8.4 Connection to a Temperature Controller Normal Abnormal Stop Executing completion completion command Send busy DB000610 DB000611 DB000612 DB000602 monitoring timer For stop if still not completed 3 seconds after the 003.00 DW00062 Send command is issued. Stop command DB000602 Stop counter added when the Stop command is issued.
Connect the inverter (VS-616G5) to the RS-485 port of the 217IF Module to control the Inverter. This enables 1:N communications, thereby enabling multi-drop connections and control of multiple Inverters. The engineering environment is provided by connecting the MPE720 Programming Device to the RS-232C port of the 217IF. MP920 PS-01 CPU-01 217IF VS-616G5...
Page 221
8.5 Connection to an Inverter CN3 Cables 217IF VS-616G5 MR 8-pin Screw Terminal Shield Signal Name Pin No. Pin No. Signal Name SRD (+) RX (-) SRD (-) RX (+) SRD (+) SRD (-) TX (-) TX (+) Note: 1. Connect the cable so that the terminating resistance for the 217IF is connected.
8.5 Connection to an Inverter 8.5.5 MSG-SND Function The following diagram shows a MEMOBUS Master MSG-SND ladder logic program for the MP920 and CP-217. One scan at startup Low-speed scan (DWG L): SB000003 SB000003 High-speed scan (DWG H): SB000001 At startup, set the parameters in the first scan.
The standard serial port (Port 1) of an MP930 located a distance away from the 217IF Mod- ule is configured as a modem-to-modem system. The engineering environment is provided by connecting the MPE720 Programming Device to the CN1 port of the 217IF. MP920 MP930 PS-01 CPU-01...
8 Example Communications Module Applications 8.6.3 217IF Transmission Master Settings 8.6.3 217IF Transmission Master Settings The following figure shows the 217IF Transmission Master settings. CIR#02 8.6.4 MP930 Slave Settings The following figure shows the Slave settings for the MP930 standard serial port (Port 1). CIR#00 8-36...
8.6.5 MSG-SND and MSG-RCV Functions (MEMOBUS Master) MSG-SND Function (MEMOBUS Master) The following diagram shows a MEMOBUS Master MSG-SND ladder logic program for the 217IF Module of the MP920. One scan at startup Low-speed scan (DWG L): SB000003 SB000003 High-speed scan (DWG H): SB000001 At startup, set the parameters in the first scan.
Page 228
8 Example Communications Module Applications 8.6.5 MSG-SND and MSG-RCV Functions (MEMOBUS Master) MSG-RCV Function (MEMOBUS Slave) The following diagram shows a MEMOBUS Slave MSG-RCV ladder logic program for the 217IF Module of the MP920. One scan at startup Low-speed scan (DWG L): SB000003 SB000003 High-speed scan (DWG H): SB000001 At startup, set the parameters in the first scan.
Appendix A System Functions A.1.1 Basic Specifications SEND MESSAGE Function (MSG-SND) A.1.1 Basic Specifications Function MSG-SND Name Function Sends a message to the remote station on the line specified by the COMMUNICA- TIONS DEVICE TYPE command (DEV-TYP). Supports multiple protocols. The EXECUTION command (EXECUTE) must be held ON until COMPLETE or ERROR turns ON.
A.1 SEND MESSAGE Function (MSG-SND) A.1.2 Parameter List (PARAM) PARAM is one of the inputs and has a parameter list structure consisting of 17 words. The value in PARAM is the leading address of MW, DW, or #W registers. The parameters are shown below. No setting is required for the parameters that are blank in the “No-protocol”...
Appendix A System Functions A.1.3 Parameter Details A.1.3 Parameter Details Processing Result (PARAM00) The processing result is output to the higher-place byte of PARAM00. The lower-place byte is for system analysis. • 00 : Processing in progress (BUSY) • 10 : Processing completed (COMPLETE) •...
Page 233
A.1 SEND MESSAGE Function (MSG-SND) 2. COMMAND Code Symbol Meaning U_SEND General-purpose message sent. U_REC General-purpose message received. ABORT Aborted. M_SEND MEMOBUS command sent: Processing completed upon receiving response. M_REC MEMOBUS command received: Followed by the sending response. MR_SEND MEMOBUS response sent. 3.
Appendix A System Functions A.1.3 Parameter Details Remote Station Number (PARAM02) Remote Remote Meaning Device Station Number CP-215 1 to 64 Message is sent to the designated station. 00FFH Message is sent to all stations (broadcasting). CP-216 1 to 30 Message is sent to the designated station.
Page 235
A.1 SEND MESSAGE Function (MSG-SND) (cont’d) Function Meaning 215IF, 218IF, 217IF, Code MECHA- Serial* TROLINK* 218IF only MELSEC random buffer write 34H to 3FH Reserved by system. 40H to 4FH Reserved by system. 50H or later Not used. * Yes: Can be set, No: Cannot be set Note: Only MW (MB) registers can be used as sending/receiving registers during master operation.
Page 236
Appendix A System Functions A.1.3 Parameter Details (cont’d) Function Function Data Address Setting Range Code 215IF, 218IF, 217IF, Serial MECHATROLINK MELSEC random buffer write 0 to 32767 (0 to 7FFFH) 1. Read/write request for coils or relays: Set the leading bit address of the data. 2.
Page 237
A.1 SEND MESSAGE Function (MSG-SND) (cont’d) Function Function Data Address Setting Range Code 215IF, 218IF 217IF, Serial MECHATROLINK MELSEC fixed buffer communications Words 1 to 507 (1 to Not valid. Not valid. 1FBH) MELSEC random buffer read Words 1 to 508 (1 to Not valid.
Appendix A System Functions A.1.4 Inputs For System Use (PARAM12) This parameter retains the channel number currently being used. Make sure that this param- eter is set to 0000H by the user program on the first scan after the power is turned ON. The parameter value must not be changed by the user program at any other time because the parameter is used by the system.
Page 239
A.1 SEND MESSAGE Function (MSG-SND) PRO-TYP (Communications Protocol) PRO-TYP specifies the communications protocol. When transmitting messages using the MELSEC or OMRON protocol, specify MEMOBUS protocol (=1). Protocol is converted by the communications device (217IF or 218IF). • MEMOBUS: Setting = 1 •...
Appendix A System Functions A.1.5 Outputs A.1.5 Outputs BUSY (Processing in Progress) BUSY indicates that the processing is being executed. Keep EXECUTE set to ON. COMPLETE (Processing Completed) COMPLETE is turned ON for only 1 scan upon normal termination. ERROR (Error Occurred) ERROR is turned ON for only 1 scan when an error occurs.
A.2 RECEIVE MESSAGE Function (MSG-RCV) RECEIVE MESSAGE Function (MSG-RCV) A.2.1 Basic Specifications Function MSG-RCV Name Function Receives a message from the remote station on the line specified by the COMMUNI- CATIONS DEVICE TYPE command (DEV-TYP). Supports multiple protocol types. The EXECUTION command (EXECUTE) must be held ON until COMPLETE or ERROR turns ON.
Appendix A System Functions A.2.2 Parameter Lists (PARAM) A.2.2 Parameter Lists (PARAM) PARAM is one of the inputs and has a parameter list structure consisting of 17 words. The value in PARAM is the leading address of a MW, DW, or #W register. The parameters are shown below.
A.2 RECEIVE MESSAGE Function (MSG-RCV) A.2.3 Parameter Details Processing Result (PARAM00) The processing result is output to the higher-place byte of PARAM00. The lower-place byte is for system analysis. • 00 :Processing in progress (BUSY) • 10 :Processing completed (COMPLETE) •...
Page 244
Appendix A System Functions A.2.3 Parameter Details 2. COMMAND Code Symbol Meaning U_SEND General-purpose message sent. U_REC General-purpose message received. ABORT Aborted. M_SEND MEMOBUS command sent: Processing completed upon receiving response. M_REC MEMOBUS command received: Followed by the sending response. MR_SEND MEMOBUS response sent.
Page 245
A.2 RECEIVE MESSAGE Function (MSG-RCV) Remote Station Number (PARAM02) PARAM02 outputs the station number of the sender. For 218IF, specify the connection number of the destination. Function Code (PARAM04) Set the MEMOBUS function code to be sent. Function Meaning 215IF, 218IF, 217IF, Code MECHA-...
Page 246
Appendix A System Functions A.2.3 Parameter Details Data Address (PARAM05) PARAM05 outputs the data address requested by the sender. Data Size (PARAM06) PARAM06 outputs the data size (number of bits or words) specified in the read or write request. For no-protocol 2, the number of bytes is output. Remote CPU Number (PARAM07) PARAM07 outputs the remote CPU number.
A.2 RECEIVE MESSAGE Function (MSG-RCV) A.2.4 Inputs EXECUTE (RECEIVE MESSAGE EXECUTION Command) When EXECUTE turns ON, the message is received. This command must be remained ON until COMPLETE (Processing Completed) or ERROR (Error Occurred) turns ON. ABORT (RECEIVE MESSAGE ABORT Command) The ABORT command aborts message reception.
Appendix A System Functions A.2.5 Outputs CH-NO (Channel No.) CH-NO specifies the channel number of the communications unit. Only one channel number can be set for the same line. Device Channel No. 1 to 13 215IF 217IF 1 to 10 218IF Serial PARAM (Parameter List Leading Address)
Appendix B 218IF Messages B.1.1 Message Configuration Extended MEMOBUS Messages B.1.1 Message Configuration The message configuration shown below is for messages used by the 218IF Module. Refer to this when creating applications on a personal computer. When data is transferred with the Extended MEMOBUS protocol, each message consists of three elements: A header, a 218 header, and application data.
Page 251
B.1 Extended MEMOBUS Messages 218 Header With communications using the Extended MEMOBUS protocol, a 12-byte 218 header is added in front of the application data. This header is automatically added or deleted by the 218IF Module the data need not be set by the application program. Command type Identification No.
Page 252
Appendix B 218IF Messages B.1.1 Message Configuration List of Extended MEMOBUS Commands The commands that make up the Extended MEMOBUS messages are identified by a func- tion code, and have the functions shown in the following table. Function Code Function Extended Extended MEMOBUS...
B.1 Extended MEMOBUS Messages B.1.2 MEMOBUS Binary Mode This mode is the binary mode format for MEMOBUS message transmission. Coil Status Read Command Set the command length. Length: 07H Always 20H. MFC : 20H The SFC number is 01H when coil status is read. SFC : 01H Set 4 bits each for the destination CPU number and the source CPU No.
Page 254
Appendix B 218IF Messages B.1.2 MEMOBUS Binary Mode Input Relay Status Read Command Set the command length. Length: 07H Always 20H. MFC: 20H The SFC number is 02H when the relay status is read. SFC: 02H Set 4 bits each for the destination CPU number and the source CPU No.
Page 255
B.1 Extended MEMOBUS Messages Input Register Read Command Set the command length. Length: 07H Always 20H. MFC: 20H The SFC number is 04H when the input register contents are read. SFC: 04H Set 4 bits each for the destination CPU number and the source CPU No.
Page 256
Appendix B 218IF Messages B.1.2 MEMOBUS Binary Mode Single Holding Register Change Command Set the command length. Length: 07H Always 20H. MFC: 20H The SFC number is 06H when a single holding register is written. SFC: 06H Set 4 bits each for the destination CPU number and the source CPU No.
Page 257
B.1 Extended MEMOBUS Messages Holding Register Read (Extended) Command Set the command length. Length: 08H Always 20H. MFC: 20H The SFC number is 09H when the holding register contents are SFC: 09H read. Set 4 bits each for the destination CPU number and the source CPU No.
Page 258
Appendix B 218IF Messages B.1.2 MEMOBUS Binary Mode Input Register Read (Expanded) Command Set the command length. Length: 08H Always 20H. MFC: 20H The SFC number is 0AH when the input register contents are SFC: 0AH read. Set 4 bits each for the destination CPU number and the source CPU No.
Page 259
B.1 Extended MEMOBUS Messages Holding Register Write (Extended) Command Set the command length. Length: 06H+ No.of registers×2 MFC: 20H Always 20H. The SFC number is 0BH when holding registers are written. SFC: 0BH Set 4 bits each for the destination CPU number and the source CPU No.
Page 260
Appendix B 218IF Messages B.1.2 MEMOBUS Binary Mode Discontinuous Multiple Holding Register Read Command Set the command length. Length: 06H+ No.of registers×2 Always 20H. MFC: 20H The SFC number is 0BH for discontinuous reading of holding SFC: 0DH registers. Set 4 bits each for the destination CPU number and the source CPU No.
Page 261
B.1 Extended MEMOBUS Messages Discontinuous Multiple Holding Register Write Command Set the command length. Length: 06H+ No.of registers×2 MFC: 20H Always 20H. The SFC number is 0EH for discontinuous writing to holding SFC: 0EH registers. CPU No. Set 4 bits each for the destination CPU number and the source CPU number.
Page 262
Appendix B 218IF Messages B.1.2 MEMOBUS Binary Mode Multiple Coil Status Change Command Set the command length. Length: 07H+ No.of coils/8 Always 20H. MFC: 20H The SFC number is 0FH when multiple coil status is changed. SFC: 0FH Set 4 bits each for the destination CPU number and the source CPU No.
Page 263
B.1 Extended MEMOBUS Messages Holding Register Write Command Set the command length. Length: 07H+ No.of registers×2 Always 20H. MFC: 20H The SFC number is 10H when holding registers are written. SFC: 10H Set 4 bits each for the destination CPU number and the source CPU No.
Appendix B 218IF Messages B.1.3 MEMOBUS ASCII Mode B.1.3 MEMOBUS ASCII Mode With ASCII communications, binary communications data is converted to ASCII before being transmitted and received. The following diagram shows an example of binary to ASCII conversion. As shown in the example, 8-bit data is converted to two ASCII characters (7 bits).
B.1 Extended MEMOBUS Messages B.1.5 General-purpose Message ASCII Mode With ASCII mode, binary communications data is converted to ASCII before being trans- mitted and received. The following diagram shows an example of binary to ASCII conversion. As shown in the example, 8-bit data is converted to two ASCII characters (7 bits).
Appendix B 218IF Messages B.2.1 Message Configuration MEMOBUS Messages B.2.1 Message Configuration The message configuration shown below is for messages used by the 217IF and the 218IF. For details, refer to the MEMOBUS Document: MEMOBUS Descriptive Information (SIE- C815-13.60). When data is transferred with the MEMOBUS protocol, each message consists of two ele- ments: A header and application data.
B.2 MEMOBUS Messages List of MEMOBUS Commands The commands that make up the MEMOBUS messages are identified by a function code, and have the functions shown in the following table. Function Code Function MEMOBUS MEMOBUS (RTU) (ASCII) Coil status read 2,000 points 976 points Input relay status read...
Appendix B 218IF Messages B.2.2 MEMOBUS RTU Mode Input Relay Status Read Command Slave address Function code: 02H The function code is 02H when the relay status is read. Set the leading address of the relays to be read. Start No. Set the number of relays to be read.
Page 269
B.2 MEMOBUS Messages Input Register Read Command Slave address The function code is 04H when the input register contents Function code: 04H are read. Set the leading address of the input registers to be read. Start No. Set the number of input registers to be read. No.
Page 270
Appendix B 218IF Messages B.2.2 MEMOBUS RTU Mode Single Holding Register Change Command Slave address The function code is 06H when a single holding register Function code: 06H is written. Set the address of the holding register to be changed. Holding register No.
Page 271
B.2 MEMOBUS Messages Multiple Coil Status Change Command Slave address The function code is 0FH when the coil status Function code: 0FH is changed. Set the leading address of the coils to be changed. Start No. Set the number of coils to be changed. No.
Page 272
Appendix B 218IF Messages B.2.2 MEMOBUS RTU Mode Holding Register Write Command Slave address The function code is 10H when the holding register Function code: 10H is written. Set the leading address of the holding registers to Start No. be written. Set the number of holding registers to be written.
B.2 MEMOBUS Messages B.2.3 MEMOBUS ASCII Mode With ASCII communications, RTU communications data is converted to ASCII before being sent and received. The following diagram shows an example of RTU to ASCII conversion. As shown in the example, 8-bit application data is converted to two ASCII characters (7 bits). With the MEMOBUS format, the code (“:”) showing the start of the data is added in front of the data, and the code (“CL”...
Appendix B 218IF Messages B.3.1 Message Configuration General-purpose Messages B.3.1 Message Configuration When the no-protocol mode is set as the communications protocol, application data can be handled as general-purpose messages. When data is sent and received, each message consists of two elements: A header and appli- cation data.
B.3 General-purpose Messages B.3.2 General-purpose Binary Mode In through mode, the values for the Controller holding registers (MW registers) are set as the application data, and data is sent and received. Command n items of data from Controller holding registers MW Contents of to MW + n-1 are set and transmitted.
Appendix C C Language Sample Programs This appendix shows samples of the C language programs used for communi- cation between a 218IF-01 Module and a personal computer or a workstation. C.1 Sample Programs for Master Station - - - - - - - - - - - - - - - - C-2 C.1.1 TCP (When Using Extended MEMOBUS Protocol (SFC = 09)) - - - - - C-2 C.1.2 UDP (When Using Extended MEMOBUS Protocol (SFC = 09)) - - - - C-7 C.2 Sample Programs for Slave Station - - - - - - - - - - - - - - - - - C-9...
The line on the left end of the program indicates the positions of paragraph indentions. C.1.1 TCP (When Using Extended MEMOBUS Protocol (SFC = 09)) < Configuration and Setting Example > Personal computer (Master) MP920 (Slave) PORT Ethernet IP address 192. 168. 1. 1 IP address 192. 168. 1. 3.
Page 278
C.1 Sample Programs for Master Station // Clears the sockaddr structure (IP address, port number, etc.) to zero. memset( (char *)&my, 0, sizeof(struct sockaddr)); memset( (char *)&dst, 0, sizeof(struct sockaddr)); // Declaration of local IP address and port number my.sin_family = AF_INET; my.sin_addr.s_addr = htonl( MY_IP );...
Page 279
Appendix C C Language Sample Programs C.1.1 TCP (When Using Extended MEMOBUS Protocol (SFC = 09)) closesocket(sd); printf( "Error: Recv !! -> %d\n", rlen ); exit(0); // Checks the response data. rc = chk_rsp_data( rlen ); if ( rc != 0 )//Errors in received data closesocket(sd);...
Page 280
C.1 Sample Programs for Master Station // Sets the reference number. sbuf[18] = 0x00; // Adr(L) leading address: MW0 sbuf[19] = 0x00; // Adr(H) // Sets the number of registers. sbuf[20] = 0x0A; // Reads 10 words from the DataNum(L) leading address. sbuf[21] = 0x00;...
Page 281
Appendix C C Language Sample Programs C.1.1 TCP (When Using Extended MEMOBUS Protocol (SFC = 09)) // Checks the number of registers. if (( rbuf[18] != 0x0A ) || (rbuf[19] != 0x00))// Not 10 words. rc = -8; return( rc ); // Reads the register data rbuf[20] and the data that follows.
C.1 Sample Programs for Master Station C.1.2 UDP (When Using Extended MEMOBUS Protocol (SFC = 09)) < Configuration and Setting Example > Personal computer (Master) MP920 (Slave) PORT Ethernet IP address: 192. 168. 1. 6 IP address: 192. 168. 1. 10...
Page 283
Appendix C C Language Sample Programs C.1.2 UDP (When Using Extended MEMOBUS Protocol (SFC = 09)) dst.sin_port = htons( DST_PORT ); // Creates UDP socket. sd = socket( AF_INET, SOCK_DGRAM, 0 ); if ( sd <= 0 ) printf( "Error: Socket !!\n" ); exit(0);...
Sample Programs for Slave Station C.2.1 TCP (When Using Extended MEMOBUS Protocol) < Configuration and Setting Example > Personal computer (Slave) MP920 (Master) PORT Ethernet IP address: Depends on the Slave (remote) setting. IP address: 192. 168. 1. 10. Port number: Depends on the Slave (remote) setting.
Page 285
Appendix C C Language Sample Programs C.2.1 TCP (When Using Extended MEMOBUS Protocol) printf( "Error: Socket !!\n" ); exit(0); // Execute a bind to allocate local port number. rc = bind( sd, ( struct sockaddr *)&my, sizeof(struct sockaddr_in)); if ( rc == -1 ) // 1 will be returned if an error occurs in processing.
Page 286
C.2 Sample Programs for Slave Station exit(0); // Prepares the response data. mk_rsp_data( &send_len ); // Sends the response data. // This processing will not end if the Slave cannot send the response data. slen = send( new_sd, &sbuf[0], send_len, 0 ); if ( slen != send_len )// The number of bytes that was sent will be returned if the sending process is successful.
Page 287
Appendix C C Language Sample Programs C.2.1 TCP (When Using Extended MEMOBUS Protocol) case 0x06: //Modify a Single Holding Register Contents case 0x08: // Loopback Test memex_len = 7;// Extended MEMOBUS Length for Response sbuf[17] = rbuf[17];// Send a received data. sbuf[18] = rbuf[18];// Send a received data.
Page 288
C.2 Sample Programs for Slave Station //Sets the serial number. sbuf[1] = rbuf[1]; // Send a received data. // Sets the destination channel number. sbuf[2] = rbuf[3]; // Sets the PLC source channel number. // Sets the source channel number. sbuf[3] = 0x00;...
Page 289
Appendix C C Language Sample Programs C.2.1 TCP (When Using Extended MEMOBUS Protocol) // Extended MEMOBUS Data Length memex_len = (unsigned short)((unsigned char)rbuf[13]) << 8; memex_len += (unsigned short)((unsigned char)rbuf[12]); // Checks the extended MEMOBUS data length. if (( data_len - 14) != memex_len ) ¼...
C.2 Sample Programs for Slave Station C.2.2 UDP (When Using Extended MEMOBUS Protocol) < Configuration and Setting Example > Personal computer (Slave) MP920 (Master) PORT Ethernet IP address: Depends on the Slave (remote) setting. IP address: 192. 168. 1. 10.
Page 291
Appendix C C Language Sample Programs C.2.2 UDP (When Using Extended MEMOBUS Protocol) // Creates UDP socket. sd = socket( AF_INET, SOCK_DGRAM, 0 ); if ( sd <= 0 ) // Value 0 or less will be returned if an error occurs in processing. printf( "Error: Socket !!\n"...
215IF Cable Connections 215IF Module This section describes how to connect cables inside the control panel of the 215IF Module mounted in an MP900-Series Machine Controller. 215IF Module CP-316 (CP-215) MP920 VS-676H5 VS-676H5 CN1 (/CN7) CP-916A MR-8LM (G) Module In-panel twisted-pair cable VS-IPEV-SB 1P×0.3 mm...
Page 295
Appendix D Wiring Communications D.1.1 Connection Methods 215IF Card for PC/AT or Compatible Computers This section describes how to connect cables inside the control panel of the CP-215PC/AT mounted in a PC/AT or compatible computer. MPE720 CP-215PC/AT D-sub 9-pin connector In-panel twisted-pair cable YS-1PEV-SB, 3P×0.3 mm...
Page 296
217IF Cable Connections CN1, CN2, and RS-232C Cables This section describes RS-232C transmission line connections for 217IF Module of the MP920. Table D.1 217IF RS-232C Transmission Line Connections MP920 217IF Cable Connections and Remote Station (CN1, CN2) Signal Directions (D-sub 25-pin) Signal Pin No.
Page 297
RD(RXD) RD(RXD) CS(CTS) DR(DSR) DSR(DR) ER(DTR) RTR(ER) CN3 RS-485 Cable The following figure shows RS-485 transmission line connection examples for 217IF Mod- ule of the MP920. MP920 217IF MP920 217IF 120Ω 120Ω 120Ω In-panel twisted- In-panel twisted- pair cable pair cable...
Page 298
D.1 In-panel Wiring CP-215 Repeater-TT Cable Connections The following figure shows a 215IF transmission line connection example. 215IF in-panel cable CP-215 Repeater-TT SRD+ SRD- MR-8LM(G) Terminator 75Ω 75Ω MR-8LM(G) JC215-01 SRD- SRD+ Fig. D.4 CP-215 Repeater-TT Transmission Line Connection Example •...
Page 299
Appendix D Wiring Communications D.1.1 Connection Methods CP-215 Repeater-TC Cable Connections The following figure shows a CP-215 Repeater-TC transmission line connection example. 215IF in-panel cable SRD+ SRD- CP-215 Repeater-TC CN3: BNC Terminator Terminator 75Ω T-connector In-panel coaxial cable 3C-2V MR-8LM (G) Conversion Adapter T-0298 F-connector...
Page 300
D.1 In-panel Wiring CP-215 Repeater-TP Cable Connections The following figure shows a CP-215 Repeater-TP transmission line connection example. 215IF in-panel cable SRD+ SRD- CP-215 Repeater-TP 75Ω Two-core optical connector MR-8LM (G) H-PCF optical fiber cable Fig. D.6 CP-215 Repeater-TP Transmission Line Connection Example •...
Page 301
Appendix D Wiring Communications D.1.1 Connection Methods CP-215 Repeater-TS2 Cable Connections The following figure shows a CP-215 Repeater-TS2 transmission line connection example. 215IF in-panel cable SRD+ SRD- CP-215 Repeater-TS2 CN3: BRX Terminator FC connector 75Ω MR-8LM (G) CN4: BTX GI-50/125, 850 nm Fig.
Page 302
D.1 In-panel Wiring CP-215 Repeater-TS5 Cable Connections The following figure shows a CP-215 Repeater-TS5 transmission line connection example. 215IF in-panel cable SRD+ SRD- CP-215 Repeater-TS5 CN3: BRX Terminator FC connector 75Ω MR-8LM (G) CN4: BTX GI-50/125, 1300 nm Fig. D.8 CP-215 Repeater-TS5 Transmission Line Connection Example •...
Appendix D Wiring Communications D.1.2 In-panel Cables D.1.2 In-panel Cables The following table shows the in-panel cables used for communications. Always use the specified cables. Otherwise, the communications system will fail to provide its full performance. When bending a communications cable, be sure that the bending radius is at least 10 times the finished outer diameter of the cable.
D.1 In-panel Wiring D.1.3 In-panel Wiring Separation • Nonshielded in-panel cables must be thoroughly separated from low-voltage cables. If this is difficult, shield the low-voltage cables. • Shielded in-panel cables must be thoroughly separated from high-voltage cables. If this is difficult, shield the high-voltage cables. D.1.4 Shield Treatment •...
Appendix D Wiring Communications D.2.2 Panel-to-Panel Cables D.2.2 Panel-to-Panel Cables The following table shows the panel-to-panel cables used for communications. Always use the specified cables. Otherwise, the communications system will fail to provide its full performance. When bending a communications cable, be sure that the bending radius is at least 10 times the finished outer diameter of the cable.
D.3 Outdoor Panel-to-Panel Wiring Outdoor Panel-to-Panel Wiring D.3.1 Wiring Precautions The procedure for laying communications cables is based on the procedure described in , but heed the following precautions. Indoor Panel-to-Panel Wiring • For outdoor wiring, always lay the communications cables along an above-ground struc- ture such as steel frames (see Fig.
Appendix D Wiring Communications D.3.1 Wiring Precautions Above-ground structure (steel frame) Communications cable Communications cable Low-voltage control circuit General control circuit Main circuit (a) Above-ground Structure (b) Under-ground Pit or Tunnel Ground 60 cm min. Trough Communications cable (c) Burying in the Ground Fig.
On-site optical connector connection must always be done by those who have completed a connector IMPORTANT processing training course. For details on connecting optical connectors and laying optical fiber cords or cables, contact your nearest Yaskawa dealer. D-19...
Appendix D Wiring Communications D.4.2 Indoor and Outdoor Panel-to-Panel Optical Wiring Connecting Optical Fiber Cords or Cables The following methods can be used to connect crystal glass optical fiber cables outside a con- trol panel to Optical Repeaters inside the control panel or connect optical fiber cables between control panels.
Page 312
D.4 Wiring Optical Fiber Cables Control panel Control panel Two-core crystal glass optical fiber cable Optical Repeater Optical Repeater Terminal box Terminal box Optical connector Conversion Adapter: 0D-9384, manufactured by NEC Optical connector: FC Direct Connection Method This method directly connects optical fiber cables outside a control panel to optical connec- tors inside the control panel.
Page 313
Appendix D Wiring Communications D.4.2 Indoor and Outdoor Panel-to-Panel Optical Wiring Pm: System margin (1.5 dBmp) Ps: Fusing connection loss (0.2 dB per position) Pa: Connector relay loss (1.2 dB per position) Pc: Optical fiber cable (GI-50/125, λ = 850 nm) loss (2.5 or 3.0 dB/km) Calculating the Maximum Transmission Distance for the CP-215 Repeater-TS5 PL - Ps - Pa (dB)
Page 314
D.4 Wiring Optical Fiber Cables Procedure for Laying Optical Fiber Cables Lay indoor and outdoor optical fiber cables after discussing with the cable installation sub- contractor or cable manufacturer. The procedure for laying optical fiber cables is shown below. Receive and store cables Work required for cable route Transport and unpack cables Measure optical output before installation...
Page 315
Appendix D Wiring Communications D.4.2 Indoor and Outdoor Panel-to-Panel Optical Wiring Cable Installation Precautions The handling of optical fiber cables during installation is basically the same as that of metal cables, but pay special attention to the following precautions. General Precautions •...
Name Model Electrical Specifications Usage Manufacturer Product Code − JC215-01 87215-8100 For cable size conver- For conversion of in- YASKAWA sion panel or panel-to-panel ELECTRIC cable size. CORPORA- Two junction boxes TION required for each control panel. − JC215-02 87215-8200...
Model Electrical Specifications Usage Manufacturer Product Code 75 Ω ±1%, 1/2 W, Terminating ERO- R002849 Mounted at both ends of YASKAWA Resistor SICKF75R0 100 PPm/°C transmission line. ELECTRIC Two resistors required CORPORA- for each transmission TION line. Note: Use junction terminal blocks to install terminating resistors.
Model Electrical Specifications Usage Manufacturer Product Code Terminating ERO- R002854 120Ω ±1%, 1/2 W, 100 Mounted at both ends of YASKAWA Resistor SIPKF1200 PPm/°C transmission line. ELECTRIC Two resistors required CORPORA- for each transmission TION line. Note: If no 120Ω terminating resistors are mounted in the 217IF Module, use junction terminal blocks to install terminating resistors.
Name Model Electrical Specifications Usage Manufacturer Product Code − JC215-01 87215-8100x For cable size conver- For conversion of in- YASKAWA sion panel or panel-to-panel ELECTRIC cable size. CORPORA- Two junction boxes TION required for each control panel. Terminating Resistors Name...
Page 320
D.5 Transmission Line Components CP-215 Repeater-TC Transmission Line Components Cables Name Model Electrical Specifications Usage Manufacturer Product Code − Coaxial 3C-2V Pas4: 25 dB/km For in-panel low-voltage Fujikura Corpo- Cable Z4: 75Ω ducts ration − 3C-2V(Cu, Fe)- Pas4: 25 dB/km For in-panel low-voltage Fujikura Corpo- Z4: 75Ω...
Page 321
Coaxial Cables with BNC Connector Name Model Electrical Specifications Usage Manufacturer Product Code − In-panel JZMSZ-W60-1 3C-2V cable with BNC For use in control panel YASKAWA Coaxial connectors at both ELECTRIC Cable ends, 2 m CORPORA- TION D-30...
Page 322
D.5 Transmission Line Components CP-215 Repeater-TP Transmission Line Components H-PCF Optical Fiber Cords and Cables with Optical Connector Model (Manufactured by Usage External Specifications, etc. Sumitomo Electric Industries) In-panel cord with crimp cut connec- No sheath HCB1-CD202-43-V-2HA-L tors at both ends (L = 0 to 650 m) Indoor reinforced cable with crimp Vinyl sheath...
Page 323
2. When ordering cords or cables with non-standard specifications, refer to D.6.4 Specifying Detailed Order Patterns. 3. For ordering, contact your Yaskawa representative. 4. Be sure that excessive tensile force or lateral pressure will not be applied to the cord.
Page 324
2. When ordering cords or cables with non-standard specifications, refer to D.6.4 Specifying Detailed Order Patterns. 3. For ordering, contact your Yaskawa representative. 4. Be sure that excessive tensile force or lateral pressure will not be applied to the cord.
2 kg. The applicable optical connector is FC type (complying with JIS C 5970 F01). Note: 1. For cable specifications other than those shown above, contact your Yaskawa representa- tive. 2. If cables manufactured by another company are to be used, present the above optical fiber core specifications to that company.
2 kg. The applicable optical connector is FC type (complying with JIS C 5970 F01). Note: 1. For cable specifications other than those shown above, contact your Yaskawa representa- tive. 2. If cables manufactured by another company are to be used, present the above optical fiber core specifications to that company.
Revision History The revision dates and numbers of the revised manuals are given on the bottom of the back cover. MANUAL NO. SIEZ-C887-2.6 Printed in Japan September 2000 99-02 1 Revision number Date of original publication Date of printing Date of Printing Rev.
Page 336
No.18 Xizang Zhong Road. Room 1702-1707, Harbour Ring Plaza Shanghai 200001, China Phone 86-21-5385-2200 Fax 86-21-5385-3299 YASKAWA ELECTRIC (SHANGHAI) CO., LTD. BEIJING OFFICE Room 1011A, Tower W3 Oriental Plaza, No.1 East Chang An Ave., Dong Cheng District, Beijing 100738, China...
Need help?
Do you have a question about the MP920 and is the answer not in the manual?
Questions and answers