• SAFETY PRECAUTIONS • (Always read these instructions before using this equipment.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly. The instructions given in this manual are concerned with this product. For the safety instructions of the programmable controller system, please read the CPU module user's manual.
REVISIONS * The manual number is given on the bottom left of the back cover. Print Date * Manual Number Revision Jan., 2003 SH (NA)-080393E-A First printing Jun., 2003 SH (NA)-080393E-B Partial corrections Section 6.3, Section 7.1, Section 7.2.3, Section 7.4, Section 8.2.4, Section 8.3, Section 10.3 Partial additions Section 9.2.1, Appendix 3 Feb., 2004 SH (NA)-080393E-C Function additions Creating receive (specified length) packet, Module start I/O No. setting Partial corrections Section 1.
INTRODUCTION Thank you for choosing the Mitsubishi MELSOFT series Integrated FA software. Read this manual and make sure you understand the functions and performance of MELSEC series sequencer thoroughly in advance to ensure correct use. Please make this manual available to the end user. CONTENTS SAFETY PRECAUTIONS..............................................................................................................................AREVISIONS ...........................................................
. PROTOCOL FB CREATION OPERATING PROCEDURE 6- 1 to 6-12 6.1 Protocol FB Construction Data ................................................................................................................ 6- 1 6.2 Communication Control Program Creating Procedure........................................................................... 6- 3 6.3 Operating Procedure for Use of System Project..................................................................................... 6- 4 6.
9.3 Communication Test ................................................................................................................................ 9-10 9.3.1 Communication test after direct input ............................................................................................... 9-10 9.3.2 Communication test after selection of packet data .......................................................................... 9-11 9.3.3 Transmission monitoring time designation............................
About Manuals The following lists the manuals relevant to this software package. These manuals are separately available if necessary. Related Manuals Manual Number (Model Code) Manual Name Q Corresponding Serial Communication Module User's Manual (Basics) Explains the outline, applicable system configuration, specifications, pre-operation procedure, basic data communication method with the other device, maintenance, inspection, and troubleshooting for use of SH-080006 (13JL86) the module.
How to Use This Manual The symbols used in this manual and their definitions and examples will be explained. Symbol Description Example [ ] Menu name of the menu bar [Project] << >> Tab name of the dialog box <> " " Item name of the dialog box "Name" Command button of the dialog box Setting Button PURPOSE Purpose of the operation that is explained in the corresponding chapter, section or item.
Generic Terms and Abbreviations Used in This Manual In this manual, the following generic terms and abbreviations are used to represent the GX Configurator-SC software package and PLC CPU modules. The module/ package name is given when the target model name must be pointed out explicitly. Generic Term/Abbreviation GX Configurator-SC Generic Term/Abbreviation Generic product name of the model names SWnD5C-QSCU-E and SWnD5C-QSCUEA. (n means Version 2 or later.
1 OVERVIEW MELSOFT 1 OVERVIEW GX Configurator-SC Version 2 (hereafter abbreviated to GX Configurator-SC) is the software added into GX Developer for use. Conventionally, to perform the communication processing of the serial communication module/modem interface module (hereafter abbreviated to the Q series C24 module) with a device controller, a wide variety of complicated sequence programs, e.g.
1 OVERVIEW MELSOFT 1.1 Features 1 (1) Automatic creation of communication control program (function blocks) Reduced work for creating sequence for communication control!! Since data for various device controllers are available, the user merely needs to perform FB conversion to create a communication control function block (hereafter abbreviated to a protocol FB). Output protocol FB to GX Developer.
1 OVERVIEW MELSOFT (a) No requirement of packet construction specific to device controller The protocol FB support function has preset data for various data controllers. The user merely needs to select the device controller and its processing items to create a protocol FB automatically without being conscious of dedicated instruction. (b) Desired setting of data communication procedure When the user constructs any packet originally, setting can be made easily for each device controller.
1 OVERVIEW MELSOFT (a) Circuit trace The transmission/receive packet data and communication signal wire condition between the Q series C24 module and device controller can be traced. 1) Transmission/receive packet details display The transmission/receive packet data obtained by circuit trace are displayed in detail on the basis of the packet information.
2 OPERATING ENVIRONMENT MELSOFT 2 OPERATING ENVIRONMENT This chapter explains the operating environment of the personal computer that uses the protocol FB support function. Item Peripheral device Installation (add-in) target *1 Add-in to GX Developer Version 8 (English version) or later *2 Computer Windows -based personal computer R CPU Hard disk *3 space Required memory Refer to the following table "Operating system and performance required for personal computer".
2 OPERATING ENVIRONMENT MELSOFT The functions shown below are not available for Windows XP and Windows Vista . If any of the following functions is attempted, this product may not operate normally. Start of application in Windows compatible mode Fast user switching Remote desktop Large fonts (Details setting of Display Properties) Also, 64-bit version Windows XP and Windows Vista are not supported.
3 FUNCTION LIST MELSOFT 3 FUNCTION LIST This chapter explains the functions and menu of the protocol FB support function. 3.1 Function List The functions of the protocol FB support function are listed below. (1) Protocol FB support function Function Function outline Reference Section Module setting Make the initial setting of the module used with the protocol FB support function. Used at the time of protocol FB conversion.
3 FUNCTION LIST MELSOFT 3.2 Menu List The following table indicates a menu list of GX Configurator-SC.
4 SCREEN DISPLAY MELSOFT 4 SCREEN DISPLAY This chapter explains the screen display and names of the protocol FB support function. 4.1 Screen Display The protocol FB support function consists of the project tree area, which shows a data configuration, and the function screen area. The basic screen display of the protocol FB support function is shown below. Main menu Toolbar 4 Function screens Status bar Project tree The following table indicates the names and functions.
4 SCREEN DISPLAY MELSOFT 4.2 Toolbar The toolbar consists of the tool buttons and guide tool buttons. When the cursor is moved over any of the buttons, the tool tip is displayed, and at the same time, its guidance is displayed on the status bar. The toolbar can be displayed or hidden by choosing [View] [Toolbar]. The following table lists the tool buttons. Tool Button 4 Tool Tip Guidance New project Create a new project. Open project Open the existing project.
4 SCREEN DISPLAY MELSOFT 4.3 Status Bar The status bar displays status data. The status bar can be displayed or hidden by choosing [View] [Status bar]. DISPLAY/SETTING SCREEN 1) 2) 3) 4) 5) DISPLAY/SETTING DETAILS No. 4-3 Display/Setting Details 1) Displays the guidance and packet data information item setting information. 2) Displays the model name of the Q series C24 module. 3) Displays the Caps Lock status. 4) Displays the Num Lock status. 5) Displays the Scroll Lock status.
4 SCREEN DISPLAY MELSOFT 4.4 Project Tree The project tree consists of a system project tree and user project tree. Display screen switching is executed by clicking the tab. The system project indicates the packet construction information, packet data information and sequence information for various device controllers entried at installation of GX Configurator-SC. 4.4.
4 SCREEN DISPLAY MELSOFT DISPLAY/SETTING DETAILS No. 1) 2) 3) Item Device controller name Display/Setting Details The entered device controller names are displayed. System packet information The system packet information names are displayed. name System sequence The system sequence information names are displayed. information name 4.4.2 User project tree PURPOSE The user project tree displays the packet information and sequence information of the project created by the user. BASIC OPERATION 1.
4 SCREEN DISPLAY MELSOFT DISPLAY/SETTING DETAILS No. 1) 2) 3) 4-6 Item Display/Setting Details User project name The project names set by the user are displayed. User packet information The user packet information names created by the user are name displayed. User sequence information The user sequence information names created by the user name are displayed.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION This chapter explains the methods for starting and ending the protocol FB support function and the functions required to create a project. REMARK Unless otherwise specified, a "project" indicates the "project of the protocol FB support function". 5.1 Starting the Protocol FB Support Function PURPOSE Start the protocol FB support function from GX Developer.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT When creating a new project using GX Developer, select "Use label". If "Do not use label" is selected, only the debugging support functions can be used. The protocol FB support function can be used when the project file of GX Developer Version 8 or later is used with the QCPU (Q mode).
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5.2 Exiting the Protocol FB Support Function PURPOSE End the protocol FB support function. BASIC OPERATION Click the [Project] [Exit Protocol FB Support Function] menu.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5.3 Creating a Project The following indicates a project function list. Function Function outline New project Creates a new project. Open project Opens the existing project. Close project Closes the currently open project. Save project "Saves" or "Saves as" the currently edited project. Delete project Deletes the project. Change module type Changes the object module of the currently open project.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Display/Setting Details Module type Select the module type to be used in the project. "Project name setting" Checking the check button enables input to the following items. check button Reference button Displays the project reference screen. Set the path of the new project.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5.3.2 Opening the project PURPOSE Read the existing project. BASIC OPERATION 1. Click the [Project] [Open project] menu ( ). 2. Click the project name. 3. Click the Open button. 5.3.3 Closing the project PURPOSE Close the open project file. BASIC OPERATION 1. Click the [Project] [Close project] menu. 2. If the setting has been changed, the project save confirmation screen is displayed.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5.3.5 Deleting the project of the protocol FB support function PURPOSE Delete the project file. BASIC OPERATION 1. Click the [Project] [Delete project] menu. 2. Specify the "Drive/Path" and "Project name" to be deleted. 3. Click the Delete button. 4. As the project deletion confirmation screen is displayed, click the Yes button. 5. The project is deleted. 5.3.
5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT When the module type is changed, the following data return to the default values.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 6 PROTOCOL FB CREATION OPERATING PROCEDURE 6.1 Protocol FB Construction Data The protocol FB support function creates protocol FBs for communication with the device controller. Make the following settings to create protocol FBs. (1) Module setting (2) Creation of send/receive FBs (This operation is not required when the system project is used.) The following shows the purpose and entry procedure of each data.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT (2) Creation of send/receive FBs To create send/receive FBs, it is required to set the packet construction information, packet data information and sequence information. (a) Packet construction information Entry the structure (header, fixed data, terminator, etc.) of the device controller to be communicated with. (b) Packet data information Entry the data to be transmitted (actual message) into the packet construction information entered in (a).
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 6.2 Communication Control Program Creating Procedure This section explains the procedure for creating a communication control program using the protocol FB support function. When the target device controller is in the system project, use the system project. Protocol FBs can be created easily. When the target device controller is not in the system project, protocol FBs can be created by modifying the system project or creating a new project.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 6.3 Operating Procedure for Use of System Project The operating procedure for use of the system project will be explained using the actual screen as an example. Starting the protocol FB support function selects the <> tab. 1) Make module setting. Operation: Click or choose [Edit] [Module setting]. Make the initial setting of the Q series C24 module, and click the End set up button.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT Convert into a protocol FB. Operation: or choose [Edit] Click [Sequence information] [FB conversion of sequence information]. Input the FB program name, etc. and click the OK button. REMARK This will create an FB program for the channel specified in "Channel". The protocol FB and module initialization FB are inserted into the <> tab of GX Developer. Inserted into GX Developer.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 6.4 Operating Procedure for Use of User Project When the system project does not have the target device controller, create a user program by reusing the system project or by creating all information such as packet information and sequence information. This section explains the method of reusing the system project using the actual screen as an example. 3) Crete a new user project. Operation: Choose [Project] [New project]. A new user project is created.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 5) Duplicate the packet information from the system project. Operation: Choose [Edit] [Packet information] [Duplicate Packet information]. From the system project, select the packet information similar to the protocol of the target device controller and duplicate it in the user project. Set the packet information name of the duplication destination. 6) Change the duplicated packet information into the user project.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT Set the packet data. For details, refer to "7.2 Packet Information". 7) Create new sequence information. Operation: Click or choose [Edit] [Sequence information] [New sequence information]. New sequence information is created. 8) Set the packet data to the sequence information. Double-click "Packet name". The packet information screen opens.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT Select the packet information. Select the packet to create a protocol FB. Operation: Select the packet data information. The packet data selected here is created as a protocol FB. The packet data is set to the sequence information.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 9) Convert into a protocol FB. Operation: Click or choose [Edit] [Sequence information] [FB conversion of sequence information]. Input the FB program name, etc. and click the OK button. REMARK This will create an FB program for the channel specified in "Channel". The protocol FB and module initialization FB are inserted into the <> tab of GX Developer. Inserted into GX Developer.
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 6.5 Operating Procedure for Utilization of Converted FB on GX Developer The procedure for pasting the protocol FB to a sequence program to create a communication control program will be explained using the actual screen as an example. The protocol FB is inserted into the <> tab. The inserted FB names are the FB name specified in "FB conversion of sequence information" and INITSC (initialization FB).
6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 12) Create a sequence program and paste the protocol FB. Operation: (1) Put the sequence program in the edit condition. (2) Open the <> tab and drag the desired program FB to the sequence program. (3) Create the I/O area of the pasted protocol FB to complete the communication control program. 13) Convert the sequence program. The protocol FB is pasted to the sequence program. Operation: [Convert] [Convert/Compile].
7 SETTING OF PROTOCOL FB DATA MELSOFT 7 SETTING OF PROTOCOL FB DATA 7.1 Module Setting PURPOSE Set various parameters necessary for the initial setting of the Q series C24 module. The settings are reflected on the "Module initialization FB" and "Protocol FB" at the FB conversion of sequence information. Various parameters are as indicated below.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING DETAILS No Item Display/Setting Details Set the setting items of the module. 1) Module setting items 2) Use channel The input methods are as follows. Decimal : 0 to 9 Hexadecimal : 0 to 9, A to F, a to f Set the used channels in the check boxes.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.2 Packet Information Set the packet construction information (message format) and packet data (message) for communication with the device controller. 7.2.1 Creating new packet information PURPOSE Used to create new packet construction. New packet construction cannot be created in the system project. Execute this function in the user project. BASIC OPERATION 1. Click the [Edit] [Packet information] [New Packet information] menu ( 2.
7 SETTING OF PROTOCOL FB DATA MELSOFT Specifying Receive packet/Receive (specified length) packet Specify either of the following types according to the packet construction or final data to be received. (1) Receive packet Specify this type to create a receive frame that includes header, any data and end judgment data. The following shows the construction of the receive packet supported by GX Configurator-SC.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.2.2 Opening the packet construction information PURPOSE Read the packet construction information already set. Used to change the contents of the packet construction information. The packet construction information of the system project cannot be changed. When it is desired to reuse it, make a duplicate. For details, refer to "7.2.5 Duplicating the packet information". BASIC OPERATION 1. Click the [Edit] ).
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.2.3 Setting the packet construction information PURPOSE In the packet construction information, set each item of the packet construction (message format). The protocol FB support function sets the packet on the basis of this information. The setting items are the item name, data classification, data type and data length. BASIC OPERATION 1. Click the [Edit] menu ( ). [Packet information] [Open Packet construction information] 2.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING DETAILS Item Display/Setting Details Name The name of the packet information is displayed. Title The title of the packet information is displayed. Packet type The packet type of the packet information is displayed. Number of specified length data Displays the data length set in the packet construction information setting only when the packet type is Receive (specified length) packet.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING DETAILS Item Display/Setting Details Item name setting Set the name of the item to be added or changed. The usable number of characters is within 32 characters. Data classification selection Select the data classification to be added or changed with the radio button.
7 SETTING OF PROTOCOL FB DATA MELSOFT *1: "Horizontal parity (1 byte) BIN" can be set when using the following module: QJ71C24, QJ71C24N-R2 or QJ71C24N-R4 *2: The following table explains calculation ranges for the error check code in the basic packet structure. Note that "Do not include the fixed data prior to error check code in calculation range" can be set only when "SUM (2 bytes) ASCII" is set for the error check code.
7 SETTING OF PROTOCOL FB DATA MELSOFT Restrictions on the packet construction items at the time of packet construction information setting The maximum used items are 32 items. The number of items usable for input variables is up to 8 items. The number of items usable for output variables is up to 19 items. When multiple output variables are to be set, the output variable that can be set to a variable length is only the last output variable.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.2.4 Setting the packet data information PURPOSE According to the packet construction information, set detailed data to the construction elements of the packet construction information to set the actually transmitted data. BASIC OPERATION 1. Click the [Edit] ). ( [Packet information] [Open packet data information] menu 2. The Packet data information screen is displayed. 3. Input a name into the [NAME] field of the packet data information list. 4.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING DETAILS Item Display/Setting Details Name The name set in the creation of new packet information is displayed. Title The title set in the creation of new packet information is displayed. Packet type The packet type set in the creation of new packet information is displayed. Packet data information list Set the [NAME] field to differentiate between packet data. [NAME] The usable number of characters is within 32 characters.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.2.5 Duplicating the packet information PURPOSE Duplicate the packet information. Use this function when reusing the already set packet information. When reusing the system project, execute this function after creating a user project. When this function is executed on the system project side, the packet information is inserted into the user project. BASIC OPERATION 1.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.2.6 Renaming the packet information PURPOSE Rename the packet information. BASIC OPERATION 1. Click the [Edit] [Packet information] [Rename packet information] menu. 2. Set the "Changed name" and "Title" and click the OK button. The packet information is renamed. DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Target name Changed name Title Display/Setting Details Displays the target name. Set a new name.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.3 Sequence Information In the sequence information, set the communication processing control type (send, receive, send/receive) and the packet data that matches the control type to set the information for creating a protocol FB. 7.3.1 Creating new sequence information PURPOSE Create new sequence information. New sequence information cannot be created in the system project. Execute this function in the user project. BASIC OPERATION 1.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.3.2 Setting the sequence information PURPOSE In the sequence information, set the communication processing control type (send, receive, send/receive) and the packet data that matches the control type to set the information for creating a protocol FB. BASIC OPERATION 1. Click the [Edit] [Sequence information] [Open sequence information] menu. 2. The Sequence information screen is displayed. 3. Set the "Control type", "Project selection" and "Classification". 4.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING DETAILS Item Display/Setting Details Name Displays the name set in the creation of the sequence information. Title Displays the title set in the creation of the sequence information. Control type Select the control type. Project selection Select the project for selection of the packet information. Classification Select the classification that can be set by making control type selection.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Display/Setting Details Displays the packet information that can be selected. After making selection with the Packet data information list cursor, click the Selection button. The item whose first line is blue is in the calculation range of the "error check code". Selection button Cancel button 7 - 18 Sets to the sequence information the packet data information selected with the cursor.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.3.3 Duplicating the sequence information PURPOSE Duplicate the sequence information. Use this function when reusing the already set sequence information. When reusing the system project, execute this function after creating a user project. When this function is executed on the system project side, the sequence information is inserted into the user project. BASIC OPERATION 1. Click the [Edit] [Sequence information] [Duplicate sequence information] menu. 2.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.3.4 Renaming the sequence information PURPOSE Rename the sequence information. BASIC OPERATION 1. Click the [Edit] [Sequence information] [Rename sequence information] menu. 2. Set the "Changed name" and "Title" and click the OK button. The sequence information is renamed. DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Target name Changed name Title 7 - 20 Display/Setting Details Displays the target name. Set a new name.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.3.5 Deleting the sequence information PURPOSE Delete the sequence information. BASIC OPERATION 1. Click the [Edit] [Sequence information] [Delete sequence information] menu. 2. A confirmation message is displayed before the deletion of the sequence information is executed. Click the Yes button to delete the sequence information.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.3.6 Confirming the I/O variables PURPOSE Display a list of the input/output variables used in the packet information selected in the sequence information. The input/output variables displayed here are defined as the sequence FB variables of a protocol FB. BASIC OPERATION 1. Click the [Edit] [Sequence information] [Input/Output variable] menu. 2. The Input/Output variable screen is displayed. 3.
7 SETTING OF PROTOCOL FB DATA MELSOFT 7.4 FB Conversion of Sequence Information PURPOSE Convert the sequence information into an FB program. There are three different 1 2 FB program types: initialization FB, send FB* and receive FB* . *1: Send FB: When Send or Send/Receive is selected as the control type in the sequence information *2: Receive FB: When Receive or Send/Receive is selected as the control type in the sequence information BASIC OPERATION 1.
7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY/SETTING DETAILS Item FB program name FB program title Reservation D device Module start I/O No. Display/Setting Details Set the name to the protocol FB. The name set here is used as the FB name. The usable number of characters is within 6 characters. The FBs are displayed on GX Developer as indicated below. Send FB: SReceive FB: RSet the title to the protocol FB. The title set here is used as the FB title.
8 HOW TO USE PROTOCOL FB MELSOFT 8 HOW TO USE PROTOCOL FB This chapter explains the procedure to use protocl FB with GX Developer. 8.1 Outline The procedure to create and use protocol FBs is described below. 1) Convert the sequence information into a sequence FB. 2) Set the module head I/O No. of the protocol FB created by sequence FB conversion. 3) Convert (compile) the protocol FB whose module start I/O No. has been set. 4) Paste the protocol FB to the sequence program.
8 HOW TO USE PROTOCOL FB MELSOFT 8.2 How to Use Protocol FBs on GX Developer When sequence information is converted into sequence information FBs, the following three different protocol FBs are inserted into GX Developer. 1) Module initialization FB: INITSC 2) Send FB: S3) Receive FB: Ris the name of the protocol FB set at the time of sequence information FB conversion. A communication control program can be created by creating the I/O areas of the protocol FBs inserted into GX Developer.
8 HOW TO USE PROTOCOL FB MELSOFT 8.2.2 Converting (compiling) the protocol FB whose module start I/O No. was set PURPOSE Convert (compile) the protocol FB, whose module start I/O No. was set, so that it can be used on GX Developer. BASIC OPERATION Click the [Convert] [Convert/Compile] menu of GX Developer. For details, refer to the "GX Developer Operating Manual (Function Block)". 8.2.3 Pasting the protocol FB to the sequence program PURPOSE Paste the protocol FB to the sequence program for use in it.
8 HOW TO USE PROTOCOL FB MELSOFT 8.2.4 Creating the I/O areas of the pasted protocol FBs There are the following two different I/O variable types for protocol FBs. Using these I/O variables, create a communication control program. 1) I/O variables created by the protocol FB support function 2) I/O variables used by the user in the sequence information For the I/O variables of the protocol FBs created from the system project, refer to "11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT".
8 HOW TO USE PROTOCOL FB MELSOFT The sequence program example that uses the module initialization FB is shown below. FB execution request FB abnormal end notification FB end notification The module initialization FB is the FB that initializes the module. Always execute it before using the send or receive FB. When the module is initialized directly by the sequence program, the module need not be initialized using the module initialization FB. (2) Send FB The send FB has the following I/O variables.
8 HOW TO USE PROTOCOL FB MELSOFT The sequence program example that uses the send FB and its timing chart are shown below. Set before FB execution request turns ON. FB execution request Send request FB abnormal end notification FB end notification FB execution completion flag At error occurrence, error code is output to outside. Receive FB's FB execution completion flag.
8 HOW TO USE PROTOCOL FB MELSOFT (3) Receive FB The receive FB has the following I/O variables. Data can be received using these I/O variables and the output variables set in the sequence information. No. I/O variable Description Input/Output 1 I_START FB execution request: Turn ON to start the FB. Input 2 I_REQ_RECV Receive request: Turn ON to enable receive. Input 3 O_RUN FB execution completion flag: 2 Turns on at completion of receive preparation.
8 HOW TO USE PROTOCOL FB MELSOFT The sequence program example that uses the receive FB and its timing chart are shown below. *3 FB execution request FB execution completion flag Receive request FB end notification FB abnormal end notification Receive data No. At error occurrence, error code is output to outside.
8 HOW TO USE PROTOCOL FB MELSOFT About echo data Since a two-wire transmission path receives send data by itself, the first receive data must be ignored. This processing is not performed in the protocol FBs. Therefore, perform programming so that echo data is ignored in the sequence program. Specifically, receive data can be ignored by turning ON Receive read completed (Yn1) on the first leading edge of Receive read request (Xn3) or Receive error detection (Xn4) of the Q series C214 module I/O signal.
8 HOW TO USE PROTOCOL FB MELSOFT 8.3 Sequence Program Example Using Protocol FBs This section provides the program examples including protocol FBs and the timing charts by use of the following system configuration and devices.
8 HOW TO USE PROTOCOL FB MELSOFT (1) When there is no echo data skip processing Use the sequence information "parameter read 12" of OMRON’s E5EK. Initialization Initialization ON Initialization success Initialization failure Transmission processing Sets "00" to module No. Send FB preparation completion FB normal end FB abnormal end Send FB error code storage Reception demand processing Receive request setting Reception processing Receive module No. storage Receive parameter No.
8 HOW TO USE PROTOCOL FB MELSOFT (2) When there is echo data skip processing Use the sequence information "variable area read information 3" of OMRON’s . Initialization Initialization ON Initialization success Initialization failure Sets "00" to module No. Sets "0000" to read address. Sets "0001" to number of elements.
8 HOW TO USE PROTOCOL FB MELSOFT (3) Input/output timing of the send/receive FB Receive FB execution request (I_START) Receive FB execution completion flag (O_RUN) Send FB execution request (I_START) Send FB execution completion flag (O_RUN) Send request (I_REQ_SEND) Send processing Send processing Send FB end notification (O_END) Send FB abnormal end notification (O_END_NG) Error code setting (O_ERR_CD) Error code Receive request (I_REQ_RECV) Receive processing Receive processing Receive FB end notif
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 DEBUGGING SUPPORT FUNCTIONS The debugging support functions are designed to support the debugging of communication processing between the Q series C24 module and device controller. The following functions are available to ease system startup work. Circuit trace Communication test State monitor The following outlines the debugging support functions.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.1 Module Selection PURPOSE Select the Q series C24 module to be debugged. Execute circuit trace, communication test and/or state monitor for the module selected here. BASIC OPERATION 1. Click the [Debugging support function] [Module selection] menu. 2. Select the I/O address and channel of the module to be debugged, and click the Setting button. 3. Clicking the OK button sets the module information.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.2 Circuit Trace PURPOSE Trace the communication data and communication control signals between the QJ71C24N, QJ71C24N-R2 or QJ71C24N-R4 module (hereafter abbreviated to the QJ71C24N module) and device controller. REMARK The circuit trace function displays the data accumulated in the monitor buffer of the QJ71C24N module. 9.2.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Circuit trace screen Item Object module Transmission / receive packets Display/Setting Details Displays the information of the module for which circuit trace will be performed. Send data and receive data are displayed, respectively. As the data display format, the ASCII code or hexadecimal can be selected. The RS, ER, DR, CS and CD signal statuses and receive error are displayed as described below.
9 DEBUGGING SUPPORT FUNCTIONS Item MELSOFT Display/Setting Details Stops trace. After a stop, the trace data accumulated in the monitor Stop button buffer are displayed. Select the project to be matched when the transmission/receive packet details display or transmission/receive packet list display is The project name for matching provided. For details, refer to "9.2.3 Transmission/receive packet list".
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Display/Setting Details Set the starting address of the monitor buffer area that will store the trace data. Input the setting in hexadecimal. Monitor buffer starting address Input range setting CH1: 2600H to 32FDH CH2: 3300H to 3FFDH When the user-specified area is used, set any of C00H to 1AFDH to CH1 or CH2. Set the size of the monitor buffer area that will store the trace data.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.2.3 Transmission/receive packet list PURPOSE To analyze the transmission and receive packets obtained by circuit trace, display the list of transmission and receive packets. BASIC OPERATION 1. Click the [Debugging support function] [Circuit trace] [Circuit trace] menu to display the Circuit trace screen. 2. Select the corresponding project of the device controller debugged in "Project name for matching". 3.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING DETAILS Item Display/Setting Details Displays whether the packet is a transmission packet or receive Classification packet. Packet data Displays the transmission/receive packet data. Displays the data length (byte) of the transmission/receive packet Data length data. Displays the packet names of the packet construction information that matches the corresponding packets.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.2.4 Opening the circuit trace data PURPOSE Read and display the trace data saved in the personal computer. BASIC OPERATION Click the [Debugging support function] [Open circuit trace data] menu. 9.2.5 Saving the circuit trace data PURPOSE Save the trace data obtained by circuit trace into the personal computer. BASIC OPERATION Click the [Debugging support function] 9-9 [Save circuit trace] menu.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.3 Communication Test Send any data or preset data from the QJ71C24N module to the device controller to confirm the operation. The communication data result of the communication test can be confirmed on the Circuit trace screen. The packet data to be sent can be created either by inputting send data directly or by selecting the packet data entered in the project.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Display/Setting Details Select packet from inside the project button Send data Displays the Packet data selection screen. Displays the packet data to be sent. Send button Sends the input packet data. Setting button Displays the Communication test setting screen. (Refer to Section 9.3.3.) Close button Closes the Communication test screen. 9.3.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Display/Setting Details Project name Select the project name. Packet information list Displays the packet information. OK button Selects the send packet and closes the screen. DISPLAY/SETTING SCREEN DISPLAY/SETTING DETAILS Item Display/Setting Details Project name Displays the selected project name. Packet details information Set the packet details information.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.3.3 Transmission monitoring time designation PURPOSE Set the transmission monitoring time to the QJ71C24N module. If receive is not completed within the set time, a send or receive error occurs. BASIC OPERATION 1. Click the [Debugging support function] [Circuit trace] [Circuit trace] menu to display the Circuit trace screen. 2. Click the Setting button on the Communication test screen. The Communication test setting screen is displayed.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9.4 State Monitor PURPOSE Monitor the signals, communication error information and operation setting switches of the Q series C24 module. BASIC OPERATION 1. Click the [Debugging support function] [State monitor] menu. 2. Click the Monitor start button. 3. Click the <> tab and confirm the signal statuses. 4. Click the <> tab and confirm the error information. 5.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING DETAILS <> tab Item Display/Setting Details X signal state monitor Displays the ON/OFF statuses of the X signals. Y signal state monitor Displays the ON/OFF statuses of the Y signals. RS-232 signal monitor Displays the ON/OFF statuses of the RS-232 control signals. For details, refer to the user's manual of the target Q series C24 module.
9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY/SETTING SCREEN <> tab DISPLAY/SETTING DETAILS <> tab Item Display/ Setting Details Operation setting switch Displays the operation switch setting statuses. Mode switch Displays the communication protocol setting. Station switch Displays the station number setting. For details, refer to the user's manual of the target Q series C24 module.
10 PRINT MELSOFT 10 PRINT 10.1 Start PURPOSE Print the system project, user project or trace data. BASIC OPERATION Click the [Project] [Print] menu ( ). [Setting details of each tab] <> Select the item to be printed from among the module information, project data and trace data. <> Select the details printing option when the project data is selected as the print item. <> Select the details printing option when the trace data is selected as the print item.
10 PRINT MELSOFT DISPLAY/SETTING DETAILS Item Display/Setting Details Select the item to be printed with the check button. Module information: The data set in the module setting are printed. Print item Project data: The information of the specified project is printed. Set the print item on the Project screen. Trace data: The saved trace data are printed. Set the print item on the Trace screen. Select the project data to be printed from the pull-down list.
10 PRINT MELSOFT DISPLAY/SETTING SCREEN (2) Project data screen *1 *1: When "Project data" has not been selected in the <> tab, this area is dimmed. DISPLAY/SETTING DETAILS Item Display/Setting Details Project name Displays the project name specified as the project data in the <>tab. Print item Select All items or Item selection. Item specification 10 - 3 When Item selection has been selected, select which item will be printed with the check button.
10 PRINT MELSOFT DISPLAY/SETTING SCREEN (3) Trace data screen *2 *2: When "Trace data" has not been selected in the <> tab, this area is dimmed. DISPLAY/SETTING DETAILS Item Display/Setting Details Trace data file Displays the file name specified as the trace data in the <>tab. Print item Select All items or Item selection. When Item selection has been selected, select which item will be printed with the check Item specification Transmission/receive packet list 10 - 4 button.
10 PRINT MELSOFT Error dialog Displayed dialog Error cause • After "Project data" was selected, the Print/Print preview Corrective action • Deselect the project data or create packet information. button was clicked with no packet information existing. • When the packet construction information is selected, the packet construction information exists but the construction • Deselect the packet construction information or create packet construction information items. information items do not exist.
10 PRINT MELSOFT 10.2 Operations Common to Screens PURPOSE Display the print preview. BASIC OPERATION Click the Print preview button in the Print dialog.
10 PRINT MELSOFT DISPLAY/SETTING DETAILS Item Page scrolling (first page) Display/Setting Details Jumps to the first page. Page scrolling (previous page) Scrolls to the previous page. Page Displays the previewed page. Page scrolling (next page) Scrolls to the next page. Page scrolling (last page) Jumps to the last page. Enlarge/reduce Displays the enlarged/reduced preview screen.
10 PRINT MELSOFT 10.3 Print Examples (1) Module information Project name or system name of system project is printed. Title is printed. Print date is printed. 1/1 10 - 8 Page No. is printed.
10 PRINT MELSOFT (2) Trace data (horizontal) Trace data file name is printed. Page No. is printed.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT This chapter explains the sequence information compatible with the third party commands supported by the system project and the I/O variables after FB conversion of sequence information. 11.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 11.2 Supported Device Controller List 11 The following table lists the supported device controllers. Maker Classification Model name Modular temperature controller In-panel NEO (Model E5ZN) OMRON Digital controller YAMATAKE Modular controller Thermack K (Model E5 K-AA201 ) Thermack K (Model E5 K-AA202 ) Thermack K (Model E5 K-AA203 ) DMC10 11.2.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 2) Variable area write Command correspondence list Command Sequence Information Setting area 0 (accessible) Variable area write 1 [Setting area 0 (accessible)] Setting area 1 (accessible) Variable area write 2 [Setting area 1 (accessible)] Label variable list Variable Area Write Command Data type Input variables Module No. IN_ST_NO Write address IN_RED_ADR Variable Area Write Response Module No.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT Command MELSOFT Sequence Information Write mode backup Operation command 15 [Write mode backup] Write mode RAM Operation command 16 [Write mode RAM] RAM data storage Operation command 17 [RAM data storage] Soft reset Operation command 18 [Soft reset] Setting area 1 shift Operation command 19 [Setting area 1 shift] Protection level shift Operation command 20 [Protection level shift] CH1 auto Operation command 21 [CH1 auto] CH1 ma
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT Command MELSOFT Sequence Information CH2 heater current value monitor Monitor value read 11 [CH2 heater current value monitor] CH2 manipulated value monitor Monitor value read 12 [CH2 manipulated value (Heating) monitor (heating)] CH2 manipulated value monitor Monitor value read 13 [CH2 manipulated value (Cooling) monitor (cooling)] CH2 PV hold value Monitor value read 14 [CH2 PV hold value] Label variable list Monitor Value Read
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 6) Protection level Command correspondence list Command Sequence Information CH1 operation/adjustment Protection level setting 1 [CH1 operation/adjustment] CH1 initial/communication Protection level setting 2 [CH1 initial/communication] CH1 setting change Protection level setting 3 [CH1 setting change] CH2 operation/adjustment Protection level setting 4 [CH2 operation/adjustment] CH2 initial time/communication Protection level
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 7) Set data write Command correspondence list Command Sequence Information CH1 setting area 0 Set data write 1 [CH1 setting area 0] CH1 setting area 1 Set data write 2 [CH1 setting area 1] CH2 setting area 0 Set data write 3 [CH2 setting area 0] CH2 setting area 1 Set data write 4 [CH2 setting area 1] Label variable list Set Data Write Command Data type Input variables Module No.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Label variable list Body Attribute Read Command Data type Input variables (Data length) Body Attribute Read Response Output variables Module No. OUT_ST_NO End code OUT_EXE_RESULT Module No.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT (2) Model E5 MELSOFT K series 1) Parameter read Command correspondence list Command Present value monitor Parameter read 1 [Present value monitor] Lamp target value monitor Parameter read 2 [Lamp target value monitor] Manipulated value (heating) monitor Manipulated value (cooling) monitor Parameter read 3 [Manipulated value (heating) monitor] Parameter read 4 [Manipulated value (cooling) monitor] Remote SP monitor Parameter read 5 [Rem
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT Command MELSOFT Sequence Information Input digital filter Parameter read 36 [Input digital filter] Switching hysteresis Parameter read 37 [Switching hysteresis] Alarm 1 hysteresis Parameter read 38 [Alarm 1 hysteresis] Alarm 2 hysteresis Parameter read 39 [Alarm 2 hysteresis] Alarm 3 hysteresis Parameter read 40 [Alarm 3 hysteresis] Upper limit temperature input Parameter read 41 [Upper limit temperature input compensation value
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Label variable list Parameter Read Command Parameter Read Response Data type Input variables Module No. OUT_ST_NO Parameter No. Module No.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT Command Manipulated value upper limit value Manipulated value lower limit value Operation change ratio limit value MELSOFT Sequence Information Parameter write 26 [Manipulated value upper limit value] Parameter write 27 [Manipulated value lower limit value] Parameter write 28 [Operation change ratio limit value] Input digital filter Parameter write 29 [Input digital filter] Switching hysteresis Parameter write 30 [Switching hysteresis] Al
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT Command MELSOFT Sequence Information PV dead band Parameter write 65 [PV dead band] Remote SP valid Parameter write 66 [Remote SP valid] Remote SP upper limit value Parameter write 67 [Remote SP upper limit value] Remote SP lower limit value Parameter write 68 [Remote SP lower limit value] SP tracking Parameter write 69 [SP tracking] Label variable list Parameter Write Command Input variables Module No.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 3) Special commands Command correspondence list Command Sequence Information Run/stop Special command 1 [Run/stop] Remote/local Special command 2 [Remote/local] RAM write mode Special command 3 [RAM write mode] RAM data storage Special command 4 [RAM data storage] AT execution/stop Special command 5 [AT execution/stop] SP mode Special command 6 [SP mode] Setting level 1 shift Special command 7 [Setting level 1 shift] Sof
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 11.2.
11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Label variable list Fixed-length Random Read Command Input variables Device address IN_ST_NO Data type (Data length) Data Read Response Output variables Device address Character string (2) OUT_ST_NO End code Character string (48) OUT_RESULT_CODE Data address (MAX: 12 data) IN_READ_ADR Number of data 4 Read data bytes OUT_READ_DATA Data type (Data length) Character string (2) Character string (2) Character string (48) Numbe
APPENDICES MELSOFT APPENDICES Appendix 1 Help Function The help function displays the product information. App BASIC OPERATION Click the [Help] Name [Product information] menu. Description *1 Version Displays the version of the protocol FB support function. Name Displays the name set at the time of installation. Company name Displays the company name set at the time of installation.
APPENDICES MELSOFT Appendix 2 Project Name Specifications The following table indicates the restrictions on the set names (such as the project name). Item App Project name Project comment Project path Packet information name Sequence information Display/setting Maximum number of characters: 32 characters (If the project name is created within 32 characters, setting is disabled when the total number of characters including those of the project path exceeds 150 characters.
APPENDICES MELSOFT Appendix 4 Packet setting example This section provides the GX Configurator-SC setting screens that correspond to packet examples when sending/receiving data between Q series C24 module and other node. (1) Send packet setting example Header Packet construction (Code) number of bytes ACK Station No.
APPENDICES MELSOFT (2) Receive packet setting example Header Packet construction (Code) number of bytes ACK Station No.
APPENDICES MELSOFT (3) Receive (specified length) packet setting example (Fixed data) Header Packet construction (Code) number of bytes ACK Station No.
APPENDICES MELSOFT (4) Receive (specified length) packet setting example (Variable data) Header Packet construction (Code) number of bytes ACK Station No.
APPENDICES MELSOFT Appendix 5 Newly added functions (1) Newly added functions (a) Added functions in Version 2.04E With upgrade from Version 2.03D (SW2D5C-QSCU) to Version 2.04E (SW2D5C-QSCU), following functions/setting items are newly added to GX Configurator-SC. Function/Setting item Create receive (specified length) packet Details Reference section The receive frame with fixed packet length, header and no end judgment data can be created. With this new function, module start I/O No.
APPENDICES MELSOFT (2) Checking the GX Configurator-SC software version Check the version within the GX Developer product information. ( [Help] [Product information] ) The GX Configurator-SC version is displayed in this section.
APPENDICES MELSOFT MEMO App - 9 App - 9
INDEX Ind [A] Duplicating the packet information ................7-13 Duplicating the sequence information...........7-19 Applicable modules and applicable function ........................................................................ 3- 1 [E] [C] Changing the module type............................. 5- 7 Character Strings That Cannot Be Set as Input ....................................................................App- 2 Circuit Trace ...................................................
[P] Packet data selection screen Project name.............................................. 9-12 Packet information list ............................... 9-12 Pasting the protocol FB to the sequence program ........................................................................ 8- 3 Print............................................................... 10- 1 Print Examples ............................................. 10- 8 Project Name Specifications......................App- 2 Protocol FB...................
Microsoft, Windows, Windows NT are registered trademarks of Microsoft Corporation in the United States and other countries. Adobe and Acrobat are registered trademarks of Adobe Systems Incorporation. Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox. Co., Ltd in the United States. Other company names and product names used in this document are trademarks or registered trademarks of respective owners.