
Ethernet course(Q-series)Mitsubishi Programmable Logic Controller Training ManualEthernet course(Q-series)Ethernet course(Q-series)Mitsubishi Program
A - 8 MEMO
5 - 32 (1) Flowchart (a) cmdOpen_Click() (Operation by clicking the Open button) Refer to Section 5.4.1 (1) (a). (b) cmdOpen_Click() (Operation
5 - 33 (e) lblON_OFF_DblClick() (Operation when double-clicking a label) STARTENDYesNoDisplay of labelChange to " "Is the display of labe
5 - 34 5.5.2 Operation of demonstration machine The program is executed, and the device value of the PLC CPU is changed. (1) Program screen The fol
5 - 35 Continued from the previous page 4) Click the Open button to open the communication line. When opening normally, "Communication line
5 - 36 Continued from the previous page 9) Check the written numerical value in the MX Component. (*1) Refer to Section 5.4.2 (3), start up &qu
5 - 37 Continued from the previous page 13) Click the Exit button to complete the program. Reading the following project file is enabled. *1
5 - 38 MEMO
6 - 1 CHAPTER 6 ASSIGNMENT II (FIXED BUFFER COMMUNICATION BETWEEN PLC CPUS (PROCEDURE EXIST)) In this assignment, the exercise of the fixed buffer co
6 - 2 (2) Exercise description Display the information about X0 to X7 and about X20 to X2F of the PLC CPU on the sending side on Y70 to Y77 and Y40 t
6 - 3 6.2 Ethernet Module Settings on the Sending Side The Ethernet module settings on the sending side are performed. 6.2.1 Setting parameters wi
1 - 1 Chapter 1 BASICS OF ETHERNET NETWORK Note This textbook mainly describes how to use MELSEC-Q Series Ethernet module. For details of general c
6 - 4 Continued from the previous page 4) Set the following contents of the Network parameters Setting the number of MNET/10H Ethernet cards scr
6 - 5 Continued from the previous page 9) Click the Endbutton to close the Network parameter Ethernet open settings screen. 10) Click the End
6 - 6 6.2.2 Sequence program Create a sequence program to send data to the PLC CPU on the receiving side. Perform the open processing for the connect
6 - 7 (2) Sequence program For details on dedicated instructions, refer to Chapter 10 of Q Corresponding Ethernet Interface Module User's Manual
6 - 8 Send completionSend error completionSend error completionError LED offError clear switchCOM. ERR LED on confirmationCOM. ERR LED off requestCOM
6 - 9 6.3 Ethernet Module Settings on the Receiving Side The Ethernet module settings on the receiving side are performed. 6.3.1 Setting parameter
6 - 10 Continued from the previous page 4) Set the following contents of the Network parameters Setting the number of MNET/10H Ethernet cards sc
6 - 11 Continued from the previous page 9) Click the Endbutton to close the Network parameter Ethernet open settings screen. 10) Click the E
6 - 12 6.3.2 Sequence program Create a sequence program that performs the receive processing for the data sent from the external device. When the dat
6 - 13 (2) Sequence program For details on dedicated instructions, refer to Chapter 10 of Q Corresponding Ethernet Interface Module User's Manua
1 - 2 1.2 Addresses The devices and computers connected to Ethernet must have their own addresses to communicate on the network. For Ethernet, the a
6 - 14 6.4 PING Test Using GX Developer (Via CPU) Execute the PING test using the GX Developer. The PING test is performed to check that the initial
6 - 15 Continued from the previous page 4) Click the PING test button. 5) The PING test screen appears. Set as follows. Network No. : 1
6 - 16 REMARK The following example illustrates how to confirm the completion of the initial processing by issuing the PING command to the local stat
6 - 17 6.5 Operation of Demonstration Machine Operate the demonstration machine to confirm that data is sent from the PLC CPU A (sending side) to th
6 - 18 Continued from the previous page OFFX8ON 7) After the check on the I/O panel is completed, turn OFF "X8" of the PLC CPU A and co
7 - 1 CHAPTER 7 ASSIGNMENT III (FIXED BUFFER COMMUNICATION BETWEEN PLC CPUS (NO PROCEDURE)) In this assignment, the exercise of fixed buffer communic
7 - 2 (2) Exercise description Display the information about X0 to X7 and about X20 to X2F of the PLC CPU A on Y70 to 77 and Y40 to Y4F of the PLC CP
7 - 3 7.2 Ethernet Module Settings (PLC A1 to A5) The Ethernet module settings on PLC A1 to A5 side are performed. 7.2.1 Setting parameters with G
7 - 4 Continued from the previous page 4) Set the following contents of the "Network parameters Setting the number of MNET/10H Ethernet card
7 - 5 Continued from the previous page 8) Set the following contents. Protocol : TCP Open system : Active Fixed buffer communication procedure
1 - 3 1.2.2 IP address The IP address (Internet Protocol Address) is an identification number assigned to identify each device or computer connected
7 - 6 7.2.2 Sequence program Create a sequence program. Perform the open processing (Paring open specification) for connection 1 and connection 2 wit
7 - 7 (1) List of devices to be used Device name Description Device name Description SM400 Normally ON X20 to X2F Data to be sent to the PLC C
7 - 8 (2) Sequence program For details on dedicated instructions, refer to Chapter 10 of Q Corresponding Ethernet Interface Module User's Manual
7 - 9
7 - 10
7 - 11 7.3 Ethernet Module Settings (PLC B1 to B5) The Ethernet module settings on the PLC B1 to B5 side are performed. 7.3.1 Setting parameters wi
7 - 12 Continued from the previous page 4) Set the following contents of the "Network parameters Setting the number of MNET/10H Ethernet
7 - 13 Continued from the previous page 8) Set the following contents. Protocol : TCP Open system : Unpassive Fixed buffer communication p
7 - 14 7.3.2 Sequence program Create a sequence program. Establish a connection with Active open of the PLC CPUs on the A1 to A5 side, and then send
7 - 15 (1) List of devices to be used Device name Description Device name Description SM400 Normally ON Y40 to Y4F Stores the information of X2
1 - 4 The address management was once carried out in this class unit. Nowadays the class address with the variable-length border bit number is used f
7 - 16 (2) Sequence program For details on dedicated instructions, refer to Chapter 10 of Q Corresponding Ethernet Interface Module User's Manual
7 - 17
7 - 18 7.4 PING Test Using GX Developer (Via CPU) Execute the PING test using the GX Developer. The PING test is used to check that the initial proc
7 - 19 7.5 Operation of Demonstration Machine By operating the demonstration machine, confirm that data is sent and received between the PLC A and t
7 - 20 Continued from the previous page OFFX8ON 7) After checking the I/O panel is completed, turn OFF "X8" on the I/O panel on the se
8 - 1 CHAPTER 8 ASSIGNMENT IV (FIXED BUFFER COMMUNICATION BETWEEN PLC CPUS VIA ROUTER (NO PROCEDURE)) In this assignment, data communication via rout
8 - 2 8.2 Ethernet Module Settings (PLC A1 to A5) The Ethernet module settings on the PLC A1 to A5 side are performed. 8.2.1 Setting parameters wi
8 - 3 Continued from the previous page 4) Set the following contents of the "Network parameters Setting the number of MNET/10H Ethernet card
8 - 4 Continued from the previous page 8) Set the following contents. Protocol : TCP Open system : Active Fixed buffer communication procedu
8 - 5 Continued from the previous page 12) Click the End button to close the "Network parameters Setting the number of MNET/10H Ethernet
1 - 5 REMARK Special IP addresses (1) All bits are 0 or 1 The IP address 0.0.0.0 is used when you do not know your own IP address or it is not nece
8 - 6 8.3 Ethernet Module Settings (PLC B1 to B5) The Ethernet module settings on the PLC B1 to B5 side are performed. 8.3.1 Setting parameters wi
8 - 7 Continued from the previous page 4) Set the following contents of the "Network parameters Setting the number of MNET/10H Ethernet car
8 - 8 Continued from the previous page 8) Set the following contents. Protocol : TCP Open system : Unpassive Fixed buffer communication proc
8 - 9 Continued from the previous page 13) Click the button. (Overwriting the project) 14) Set Drive/Path and Project name, then click the Sav
8 - 10 8.4 PING Test from Personal Computer The PING test is performed from the personal computer that executed the exercise of the MX Component to
App - 1 APPENDIX Appendix 1 Visual Basic® Version 6 Appendix 1.1 Startup of Visual Basic® [Startup] 1) Click [Start] – [All Programs] – [Microsoft
App - 2 [Visual Basic® screen] 6) Code window2) Toolbox 1) Toolbar 3) Form window 4) Project window5) Properties window 1) Toolbar The commands
App - 3 [Display of Form window] Select the form module file from the Project window and click the [Form] button. [Display of Code window] Double
App - 4 Appendix 1.2 Outline Command For...Next statement Functions The flow control statement which repeats a series of statements for the d
App - 5 Explanation For the argument step, positive values and negative values can be designated. Depending on the designated value in the argu
1 - 6 1.3 Communication Protocol The MELSEC-Q Ethernet module described here supports two communication protocols, TCP/IP and UDP/IP. 1.3.1 Communic
App - 6 Hex function Functions Returns a character string which indicates the designated value in hexadecimal. Format Hex(number) For an a
App - 7 If...Then...Else statement Functions The flow control statement which performs the execution with condition based on thevalue of an exp
App - 8 Caution Though the first syntax can describe several statements for one condition, it is necessaryto describe it in one line dividing with
App - 9 Appendix 1.3 Term Form A window which forms the basis of an application interface An application consists of at least one form. Control
App - 10 Appendix 1.4 Toolbox List When arranging a control to a form, the buttons on the toolbox can be used. Control Function Pointer Moves a
App - 11 The control that is not provided for the standard toolbox is called the ActiveX control. The custom control can add/delete a control usin
App - 12 Appendix 1.5 Toolbar List The following buttons are provided to easily call out frequently-used commands. Button Name Function Standar
App - 13 Button Name Function Start Executes the application that has been created at design. Break Cancels the execution of the program, and
App - 14 Appendix 1.6 Property List Property Description Action Operation to be executed by the OLE client ActiveContol Control with focus Activ
App - 15 Property Description Default Command button used by default DisplayType Sets an object display form. DownPicture Sets a picture to be
1 - 7 <Ethernet module and communication model> The following shows the software configuration of the Ethernet module corresponding to the &quo
App - 16 Property Description Instancing Sets the instance operation of the ActiveX class module. IntegralHeight Automatically changes a list he
App - 17 Property Description ObjectAcceptFormats Data format list that can be accepted in an object ObjectAcceptFormatsCount Number of factors i
App - 18 Property Description SizeMode Sets the display methods of a OLE container size or image when an object is in. SmallChange Amount of a s
App - 19 Appendix 1.7 Method List Method Description AddItem Adds items to the list box, grid, etc. Arrange Aligns windows and icons on the MDI
App - 20 Method Description ReadFromFile Reads an object from the data file created with the SaveToFile method. Refresh Updates a form or contro
App - 21 Appendix 1.8 Function List Function Description Abs Returns the absolute value of mathematical expression. Array Returns the variant va
App - 22 Function Description Exp Exponential function FileAttr Returns the file handle information of OS or the file mode. FileDateTime Returns
App - 23 Function Description IsObject Returns whether an object is actually referred by an expression or not. Join Returns the character string
App - 24 Function Description Rnd Generates a random number. Round Returns a numerical value rounded at the designated decimal point RTrim,RTrim
App - 25 Appendix 2 MX Component Appendix 2.1 Functions of MX Component The MX Component is used to access to the PLC CPU via various communicatio
1 - 8 1.3.2 IP protocol (1) Role of IP IP is a network layer protocol which is processed by all devices connected to an IP network. The most importan
App - 26 (2) Substantial improvement in user's development efficiency The MX Component comes with the wizard type communication setting util
App - 27 (6) Read and write of PLC CPU clock data You can read and write the clock data of the PLC CPU connected to the DOS/V personal computer.
App - 28 (9) A wide variety of programming languages MX Component supports VBScript and VBA as well as Visual Basic® and Visual C++®. (a) Creati
App - 29 (b) VBA-driven data collection and monitoring function Programming using VBA (*1) allows Excel or Access functions to be utilized to cre
App - 30 Appendix 2.2 Function List The following shows the function list of the MX Component. (1) to (4) indicate the details of the functions us
App - 31 (1) Open (Open of communication line) (a) Function Opens a communication line. (b) Format Visual Basic®, Visual C++®, VBA: lRet = objec
App - 32 (3) ReadDeviceRandom (Random read of devices) (a) Usable ACT control Usable for all ACT controls. (b) Function Randomly reads devices
App - 33 (e) Device designation The following explains how to designate devices. (Example 1) When designating as follows (three device points) Wh
App - 34 (4) WriteDeviceRandom (Random write of devices) (a) Usable ACT control Usable for all ACT controls. (b) Function Randomly writes devi
App - 35 (e) Device designation The following explains how to designate devices. (Example 1) When designating as follows (three device points) Whe
1 - 9 1.3.3 TCP and UDP TCP and UDP are protocols which are processed by the devices and PCs on the both ends of communication (Transport layer). (1
App - 36 Appendix 2.3 Error code List The following explains the error codes to be returned by the ACT control and by the PLC CPU, intelligent fun
App - 37 Error code Description of error Corrective action 0x01801007 Designated CPU error Check the station No. designated at ActCpuType. Con
App - 38 Error code Description of error Corrective action 0x01802016 Station No. designation error The method does not support the operation fo
App - 39 Error code Description of error Corrective action 0x01808009 COM port handle error The handle of COM port cannot be acquired. The COM p
App - 40 Error code Description of error Corrective action 0x01808304 Insufficient size of the receive buffer The receive data is greater than t
App - 41 Error code Description of error Corrective action 0x01808502 USB driver connection error The USB driver connection has failed. Complete
App - 42 Error code Description of error Corrective action 0x10000033 Designated device range error Review the contents of the designated devic
App - 43 Error code Description of error Corrective action 0x1000005 Size error The size designated in the read/write method is error. The read/
App - 44 (2) Error codes returned from PLC CPU, intelligent function module and network board. The following explains the error codes returned fr
App - 45 2) When using AJ71E71, AJ71QE71 If the lower two bytes error code that is occurred during the E71 and QE71 communications are not listed
1 - 10 (2) Comparison between TCP and UDP The request level for the network differs depending on the user application. However, it is difficult to c
App - 46 Appendix 3 Connecting GX Developer to PLC CPU via Ethernet This section describes how to operate GX Developer to access a PLC CPU via an
App - 47 1) Connect the GX Developer and Ethernet module to the Ethernet. 2) Click the [Online] [Transfer setup] menu. 3) Select "E
App - 48 Continued from the previous page 5) Select "Other station (Single network)". 6) Click the Connection test button to
App - 49 Appendix 4 Troubleshooting This section explains the contents of the errors that may occur during communications between the Ethernet mod
App - 50 Appendix 4.1 How to Check Errors Using LED Displays This section describes the errors that can be checked with the LED displays on the fr
App - 51 (From the previous page) LED name Status to check Cause/corrective action 5 [RD] [RD] LED stays off and data cannot be received. 1)
App - 52 Appendix 4.1.2 How to turn off COM.ERR. LED and to read/clear error information This section explains how to turn off the [COM.ERR.] LED
App - 53 Appendix 4.2 How to Check an Error Through GX Developer The status of the various settings for the Ethernet module can be checked using t
App - 54 Appendix 4.2.1 Ethernet diagnostics [Purpose] The module status of the Ethernet module, parameter settings, communication status, error l
App - 55 Appendix 4.2.2 System monitor The module status of an Ethernet module can be checked from the system monitor. (1) Checking the module s
1 - 11 1.4 MELSEC-Q Ethernet Module 1.4.1 Role of Ethernet module The Ethernet module supports the data communications between external devices and
App - 56 (2) Checking the LED on/off status and operation mode number on the H/W information screen of the diagnostic functions [Start Procedure
App - 57 Appendix 5 DEDICATED INSTRUCTIONS Dedicated instructions are used to simplify the programming for using the functions of the intelligent
App - 58 Appendix 5.2 OPEN Instruction This instruction establishes a connection (open processing) with an external device to perform the data com
App - 59 Control data Device Item Setting data Setting range Set by (*1) (S2)+0 Execution type/complete type • Designate which settings to us
App - 60 Functions (1) This instruction performs the open processing for a connection specified by (S1) for the module designated by Un. The sele
App - 61 Program example A program that opens the connection 1 for the TCP/IP communication (Active open): When the input/output signals of the Et
App - 62 Appendix 5.3 CLOSE Instruction This instruction disconnects (closes) a connection by which data was communicated with an external device.
App - 63 Functions (1) This instruction closes the connection specified by (S1) for the module designated by Un. (Disconnection) (2) Whether or
App - 64 Program example A program that closes the connection number 1: When the input/output signals of the Ethernet module are X/Y00 to X/Y1F
App - 65 Appendix 5.4 BUFSND Instruction This instruction sends data to an external device through thefixed buffer communication. Applicable devi
1 - 12 1.4.2 Outline of Ethernet module (1) Supporting the TCP/IP and UDP/IP communications The Ethernet module supports the TCP/IP and UDP/IP co
App - 66 Functions (1) This instruction sends the data designated by (S3) to the external device of the connection specified by (S1) for the modu
App - 67 Program example A program that sends data from the fixed buffer of the connection number 1: When the input/output signals of the Ethernet
App - 68 Appendix 5.5 BUFRCV Instruction This instruction reads data received from an external device through the fixed buffer communication. This
App - 69 Functions (1) This instruction reads receive data (for the fixed buffer communication) from the connection specified by (S1) for the mod
App - 70 Errors (1) When a dedicated instruction ends with an error, the abnormal completion signal, (D2) + 1, turns on and the error code is sto
MEMO
Microsoft, Windows, Microsoft WindowsNT are registered trademarks of Microsoft Corporation in the United S
Ethernet course(Q-series)Mitsubishi Programmable Logic Controller Training ManualEthernet course(Q-series)Ethernet course(Q-series)Mitsubishi Program
2 - 1 CHAPTER 2 BEFORE USING ETHERNET MODULE 2.1 Two Data Codes The Ethernet module can exchange data with external devices using binary or ASCII co
2 - 2 (2) Communication using the ASCII code The Ethernet module sends/receives 1-byte data as data equivalent to two characters in the ASCII code.
2 - 3 2.2 Types of Data Communication Functions The Ethernet module has three types of communication functions: "Communication using MC protoco
2 - 4 (b) Reading/writing file in PLC CPU This function reads and writes files such as sequence program files or parameter files that are stored in
2 - 5 (3) External devices capable of exchanging data The communication using the MC protocol can be performed from the following external devices
2 - 6 2.2.2 Fixed buffer communication A PLC CPU can communicate with other PLC CPUs or a personal computer using the fixed buffers in the buffer me
2 - 7 As shown in the diagram below, set IP addresses and usage conditions (e.g. sending/receiving, with/without procedures) of external devices to r
A - 1 SAFETY PRECAUTIONS (Always read these instructions before the exercise.) When designing the system, always read the relevant manuals and gi
2 - 8 (4) Outline of data sending/receiving procedures Data sending/receiving is performed as shown in the following figure. (a) At TCP/IC communic
2 - 9 2.2.3 Communication using random access buffer A PLC CPU can communicate with a personal computer using the random access buffer in the buffer
2 - 10 (3) Outline of data sending/receiving procedures Data are sent or received as shown in the following figures. (a) TCP/IC communication PLC C
2 - 11 2.3 Open/Close Processing For data communication with external devices using the Ethernet module, a connection must be established (connection
2 - 12 (In TCP/IP communication) • The connection is established when the open processing is completed normally. • When the close processing perform
2 - 13 *1 For the open and close processing on the Ethernet module side shown below, there are two methods:performing from the PLC CPU and by the Et
2 - 14 (2) If the following 1) or 2) are set in the previously mentioned parameter settings, the open and close processing of the corresponding conn
2 - 15 (2) Open processing (a) The open processing is a processing which enables data communication with external devices. 1) In TCP/IP communicati
2 - 16 (3) Close processing (a) The close processing is a processing which disables data communication with external devices. 1) In TCP/IP communic
2 - 17 2.3.1 Active open/close processing The Active open executes the connection processing to the external device, which TCP/IP connection is in t
A - 2 REVISIONS * The text number is given on the bottom left of this textbook. Print date * Textbook number Revision Jan., 2006 SH-080618ENG-A F
2 - 18 Open statusOpen ready status (closed)Closed statusInitial normal completion X19OPEN instructionOPEN instruction complete deviceOPEN instruct
2 - 19 2.3.2 Passive open/close processing The Passive open puts the open request (connection request by Active open) from an external device of the
2 - 20 (2) When "Do not wait for OPEN" is set in the operational settings The open and close processings are performed using the sequence
2 - 21 Open statusOpen ready status (closed)Closed statusInitial normal completion X19OPEN instructionOPEN instruction complete deviceOPEN instruct
2 - 22 2.3.3 UDP/IP open/close processing The open and close processing in UDP/IP is internal processing of the Ethernet module. The processing of t
2 - 23 Open statusOpen ready status (closed)Closed statusInitial normal completion X19OPEN instructionOPEN instruction complete deviceOPEN instructi
2 - 24 MEMO
3 - 1 CHAPTER 3 SYSTEM CONFIGURATION 3.1 Applicable Systems The Ethernet modules can be used in systems to which the following descriptions apply.
3 - 2 3.2 Devices Required for Network Configuration This section explains the devices that are required to configure a network. Network installatio
3 - 3 (b) Connection using 10BASE-T Ethernet moduleExternal deviceTwisted pair cableHub* Up to 4 stages are allowed for cascade connection Use
A - 3 INTRODUCTION This textbook explains how to use the Ethernet module QJ71E71 of MELSEC-Q series and its programming. Use a personal computer app
3 - 4 MEMO
4 - 1 CHAPTER 4 SPECIFICATIONS OF ETHERNET MODULE & SETTINGS AND PROCEDURES PRIOR TO OPERATION 4.1 Performance Specifications The following expla
4 - 2 *1 The e-mail transmission and reception function of the PLC CPU and the random access buffer communication function cannot be used together. O
4 - 3 4.2 Ethernet Module Function List This section shows a list of Ethernet module functions. (1) Basic functions of the Ethernet module The Eth
4 - 4 (2) Additional functions of the Ethernet module The following table lists the additional functions of the Ethernet module that can be used. F
4 - 5 4.3 Settings and Procedures Prior to Starting the Operation The following shows the Ethernet module settings and a flow of the operation proce
4 - 6 Important (1) Do not write any data in the "System area" of the buffer memory of the intelligent function module. (2) Do not out
4 - 7 4.4 Components of the Ethernet Module This section shows the names of the Ethernet module components. Name Description 1) LED display Ref
4 - 8 4.5 Connecting to the Network The following explains how to connect the Ethernet module to the 10BASE-T/ 100BASE-TX network. <Operating pr
4 - 9 4.6 Settings from GX Developer To use the Ethernet module, parameters must be previously set from GX Developer. For the parameter settings of
A - 4 CONTENTS SAFETY PRECAUTIONS...
4 - 10 (2) "Network parameters Setting the number of MNET/10H Ethernet cards" Settings for the Ethernet module to use as a network module
4 - 11 (a) Operational settings Set the communication data code, the timing to start the OPEN processing, and the local station Ethernet module IP ad
4 - 12 (b) Open settings Set the protocols and the connection open systems for a data communication. Item Setting details Protocol Set the commun
4 - 13 (c) Router relay parameter (Routing information) This is the setting for the data communication with external devices via a router. The routi
4 - 14 4.7 Self-Diagnostic Tests 4.7.1 Self refrain test The self refrain test is used to check whether the Ethernet module transmits a test message
4 - 15 Continued from the previous page 4) The Network parameters Setting the number of MNET/10H Ethernet cards screen is displayed. 5) Se
4 - 16 (3) Writing the parameters to the PLC CPU The set parameters are written to the PLC CPU. For designating the connection destination, refer to
4 - 17 4.7.2 Hardware test The hardware test is performed to confirm that RAM and ROM of the Ethernet module are normal. The operation procedure of t
4 - 18 4.8 Mounting and Dismounting the Module This section explains the procedures when mounting/dismounting the Ethernet module. (1) Operation p
5 - 1 CHAPTER 5 ASSIGNMENT I (MC PROTOCOL COMMUNICATION BETWEEN PLC AND PLC CPU) In this assignment, the exercise of the MC protocol communication
A - 5 4.8 Mounting and Dismounting the Module... 4-18 C
5 - 2 (2) I/O assignment X0 to X3F Y40 to Y7FQX42(64 points)QY42P(64 points)Q64AD(16 points)QCPU(No.2)XA0XBFYA0YBFQ61P-A1(Power supply)QCPU(No.1)*Q6
5 - 3 (3) Exercise description Monitors and writes a device in the program using the MX Component. <Device read (Section 5.4)> <Device wri
5 - 4 5.2 Parameter Settings and TCP/IP Settings for PC The parameters of the Ethernet module on the PLC CPU side are set using the GX Developer bef
5 - 5 Continued from the previous page 4) Double-click "PLC parameter" from the project data list. 5) After the "Qn(H) Paramet
5 - 6 5.2.2 Network parameters setting the number of MNET/10H Ethernet cards Ethernet parameter setting is performed for connecting to Ethernet.
5 - 7 Continued from the previous page 6) Set the following contents, click the End button, and then close the "Ethernet operations" d
5 - 8 Continued from the previous page 11) Click the button. (Overwriting the project) 12) Set Drive/Path and Project name, then click the Sav
5 - 9 5.2.3 Transfer setup Transfer setup is performed to write a parameter to the PLC CPU. 1) Click the [Online] [Transfer setup] menu. 2) C
5 - 10 5.2.4 Parameter write The set parameters are written to the PLC CPU. 1) Click . (Write to PLC) 2) Click the Param+Prog button on the &q
5 - 11 5.2.5 TCP/IP settings for PC TCP/IP settings for PC are performed. This textbook explains using a PLC operated with Microsoft® Windows® XP pr
A - 6 8.2.1 Setting parameters with GX Developer... 8- 2 8.2.2 Se
5 - 12 Continued from the previous page 4) Select "Use the following IP address" and make the setting for the following contents. IP
5 - 13 5.3 Operation of MX Component This section explains the operation of the MX Component. This textbook explains the functions when creating app
5 - 14 Continued from the previous page 3) Click the Wizard button. 4) After the screen shown on the left appears, set "Logical station
5 - 15 Continued from the previous page 7) As the communication setting is performed, set the following contents and click the Next> button
5 - 16 5.3.2 Communication diagnostics Execute the communication diagnostics and confirm whether or not the logical station number is properly set.
5 - 17 5.4 Visual Basic Program (Device Read) The contents of ON/OFF status for PLC CPU bit device X0 to X7 (eight points) and of word device D0 to
5 - 18 Private Sub cmdMonitor_Click() If tmrTime.Interval = 0 Then 'Confirm whether it is in process of monitoring or not
5 - 19 'Execute the random read lRet = ActEasyIF1.ReadDeviceRandom(szDeviceList, lSize, lData(0)) If lRet <> 0 Then
5 - 20 (1) Flowchart (a) cmdOpen_Click() (Operation by clicking the Open button) STARTIs the open normal?Open of communication line(Open())"C
5 - 21 (b) cmdClose_Click() (Operation by clicking the Close button) STARTIs the close normal?Close of communication line(Close())"Communicati
A - 7 About Generic Terms and Abbreviations Unless otherwise stated, this textbook uses the following abbreviations and terms for the explanation of
5 - 22 (c) cmdMonitor_Click() (Operation by clicking the Monitor start button) STARTIs the timer operating?"Monitoring"StatusStart monito
5 - 23 (e) tmrTime_Timer() (Operation during monitoring) STARTStore the device to be monitoredto DevboxENDYesNoStore the device list toszDeviceList
5 - 24 5.4.2 Operation of demonstration machine The program is executed, and the device of PLC CPU is monitored. (1) Program screen The following i
5 - 25 Continued from the previous page 4) Click the Open button to open the communication line. When opening normally, "Communication line
5 - 26 (3) Check of device status of D0 to D4 The numerical value changed by the MX Component is checked in a program. (*1) *1 The following can be
5 - 27 Continued from the previous page 5) After the "Device write" screen appears, input any numerical value to "Setting value&q
5 - 28 Continued from the previous page 8) To end monitoring, click the Monitor stopbutton. 9) Click the Close button to close the communic
5 - 29 5.5 Visual Basic Program (Device Write) The contents of PLC CPU bit device Y70 to Y77 (eight points) and of word device D0 to D4 (five words)
5 - 30 Private Sub cmdMonitor_Click() Dim i As Integer 'Variable 1 for loop Dim j As Integer 'Variable 2 for loop
5 - 31 'Execute the random write lRet = ActEasyIF1.WriteDeviceRandom(szDeviceList, lSize, lData(0)) If lRet = 0 Then txt
Komentarze do niniejszej Instrukcji