Home
Protocol FB support function
Contents
1. Select communication test packet Object module E Send packet HEX 01 30 31 31 30 31 30 31 30 30 30 31 30 30 02535334343435353535373739390135 ASCI 0 01 1 o 1jo t 0 0 0 1 0 0 1 gE RecevepacketHEX T 3 0 32 tT TT PP Ty ot 6 T 66 STITT ee ee ee ee ee ASCI 02 af Send Setting XN Dt Sr ry oy oe er ER signal a rr DR signal ee BESE rrr CS signal a Bee DEOL DT rr rrr CD signal oe meee see ee peers pee mes ees rece ise oee eee ees pee es ees see ss se Ennn Reception error Zz SS 4 gt Error Display SS Overrun error The project name far matching izni Parity error z I Framing eror Transmission receive packet details display Transmission receive packet list display a Circuit trace The transmission receive packet data and communication signal wire condition between the 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 Transmission receive packet list display The transmission receive packet data obtained by circuit trace are displayed separately in lists on a packet by packet basis b Communication test Test transmission any set data can be made from the C24 module to the device controller By starting the circuit trace and the following state monitor simultaneously the p
2. E DISPLAY SETTING DETAILS Circuit trace screen Display Setting Details Object module Displays the information of the module on which circuit trace will be performed a Displays send data and receive data respectively Transmission receive packets l l For the data display format the ASCII code or hexadecimal can be selected The RS ER DR CS and CD signal status and receive error are displayed as described below RS ER DR CS and CD signals All signals are displayed with blue lines When signal is ON T When signal is OFF L Communication control signals When the obtained data does not have signal information the signal is displayed as an OFF status Receive error Three different errors of overrun error parity error and framing error are displayed Overrun error NS Green Parity error is Light blue Framing error Purple button Starts tracing Sends the specified packet Communication test button For details refer to Section 9 3 Communication Test 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT Display Setting Details button The project name for matching Transmission receive packet list display button Transmission receive packet details display button button 9 2 2 Circuit trace option PURPOSE Stops tracing After a stop the trace data accumulated in the monitor buffer are displayed Select the project to be matched when the transmission receive pa
3. 48 testproject a f Function Block H E INITSC Initial FB SC a f S R_DATA YAMATEKE E a R R_DATA YAMATEKE Project FB Structure int Precautions for creating multiple module initialization FBs At the time of FB conversion of sequence information a module initialization FB is created under the FB program name of INITSC If the module initialization FB INITSC exists in a GX Developer s project the new FB is overwritten to the existing one Therefore when multiple module initialization FBs are needed for respective applications or channels change the FB program name on GX Developer after FB conversion of sequence information 6 4 Operating Procedure for Use of User Project 6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 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 Protocol FB support function a malki Project Edit View Debug support function Window Help New project Open project Glose project save Cmts ctrl o Save as Delete project Change module type Print Ctrl P 1 test 2 C data QFBP SC FB_TEST2 Exi
4. Signal description __ Signal description ER signal TICTS x00 CH1 Transmission normal 00 CH1 Transmission request oFF completion CH1 Reception data read yo lati OFF Oy oe oo ee oa Pelee eae OFF cll Peal DR signal Cr 5 7 s a a a completion Y02 CH1 Mode switching request OFF x02 CH1 Transmission OFF YOE CH1 ERR clear request OFF Sooo So so oe oe so so so so so oo soo oo eee PieSssy Modem initialization request cs signal x03 CH1 Reception data read OFF v0 standby request oe request Y11 Connection request OFF CD signal See ee ee ee ee ee ee ee ee ee ee ee ee ee CEES CH1 Reception abnormal Modem disconnection g Ss EE a a a a B A coe detection ae vie request OFF X06 CH1 Mode switching OFF 14 Notification issued request OFF Reception error LE xOE_ CHI ERR occurrence OFF Y17 Flash ROM read request OFF x10 See EA OFF Y18 Flash ROM write request OFF compisuon Flash ROM system setting x11 Dialing OFF fi write request OFF x12 Connection OFF Swvetam eettinn default z E G elie RS 232 signal x14 Modem disconnection OFF Error Display elu pts cD S Notification normal SS Overrun error The project name for matching X15 completion OFF psr cs e Notification normal x16 F OFF Z i completion DTR RI Y Parity error 17 DAK wand namnlatinn Framing error Transmission receive packet details display Trans 1 OVERVIEW MELSOFT Communication test i x
5. BF User GE System Ready qu7iczan Nm 2 1 Make module setting g2 Module setting Operation Click el or choose Edit Module setting DTR DSA DTR DSA Make the initial setting of the C24 No control No contl module and click the End set up button Communication CD terminal check No check No check control Full duplex Full duplex RE M ARK Simultaneous Half duplex transmission 0 x100ms 0 x100ms cemmuncaion pier pn Executing FB conversion of sequence contr Retransmission time waco rian information reflects the settings of the communication Me channel which has been specified as time monitoring 1800 x100ms 1800 x100ms Transmission Transmission buffer Channel on the FB conversion check memnu head address Transmitting area screen in Module initialization FB INITSC on from the system project E loj x Project Edit View Debug support function Window Help Ope ration Deh s sels sy 9 9 Select the device controller to be a OMRON E52ZN Dual Loop Modular Temperature Ci a OMRON E5EK Digital Process Controller O Yamatake DMC1O Distributed Multi channel Control Packet information 3 A Sequence information ERD Command Read continuous address da WD Command Write continuous address dat RU Command Read random address data WU Command Write random address data
6. 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 System configuration diagram a 5 xe D Q Q 5 D D z O A SoS Q series C24 module O mT Device controller E5EK or E5ZN Used device list input output External input of C24 D6 Receive errorcode Read address Send FB abnormal end flag Read data Point 1 When using the receive FB and send FB in the sequence program create a program in which the input variable START of the receive FB turns on earlier than or at the same time as START of the send FB 2 When multiple send FBs exist do not execute 2 or more send FBs concurrently Do not create a program in which more than one _ START of send FBs will turn ON at the same time Also when multiple receive FBs exist do not execute 2 or more receive FBs concurrently Do not create a program in which more than one START of receive FBs will turn ON at the same time Doing so will result in abnormal operation and only the processing based on the send receive FB executed at the last will be executed 3 When executing receive FB and send FB concurrently execute the send processing after FB execution completion flag O_RUN of receive FB turns on Executing the send processing before FB execution completion flag of receive FB
7. 9 6 Monitor buffer size setting ceeee 9 6 REAd oroa aa ee eneaee 9 6 WAVING EE E E E EEE AE T 9 6 Circuit trace screen Transmission receive packets 9 4 Communication control signals 9 4 EE O E O E EE 9 4 The project name for matching 9 5 Transmission receive packet list display AAE E AIA tar le auc E AE 9 5 9 8 Transmission receive packet details display IEEE OE EAE EEEE enki ranean ae 9 5 9 8 Communication data monitoring function 9 3 Communication TeSt ccccccssseceeeeeeeeeees 9 10 Communication test data input screen Project NGM GC tii eit seatcai eee Ad ein 9 12 Packet details information 08 9 12 Communication test screen Select packet from inside the project 9 11 Send Allies miini 9 11 OC 1G aiae a oa ied asada nee 9 11 Communication test setting screen Transmission monitoring time 9 13 AARNE E sectioned E ANETE et cash danse llt ay mesh se 9 13 Creating new packet information 7 3 Creating new sequence information 7 15 D Debugging Support Function 3 1 Deleting the packet information 7 14 Deleting the sequence information 7 21 Index 1 Duplicating the packet information 7 13 Duplicating the sequence information 7 19 E poAo 2 ie E E T TAE 8 9 I O N 5 3 F FB C
8. 7 4 FB Conversion of Sequence Information We PURPOSE To convert the sequence information into an FB program There are three different 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 E BASIC OPERATION 1 Click the Edit Sequence information FB conversion of sequence information menu 2 The FB conversion screen is displayed 3 Set the FB program name FB program title Reservation D device and Module start I O No 4 Select the channel used for the target sequence information 5 Click the Communication setting check button and confirm the data of the object module 6 Click the button 7 The protocol FB is created and inserted into the lt lt FB gt gt tab of GX Developer DISPLAY SETTING SCREEN FE program is generated from the following contents le it OF FE program name SETE A Cancel FE program title User Project Reservation O device Joo Module start O No jo HE Object sequence information Hame User Project Title Example of setting Channel tf CH CH2 Communication setting check Project UserProject _ Classification Receive Receive packet 1 reve specified len Recervelspecihed length
9. GX Developer Change the module head I O No Refer to Section 8 2 1 Convert compile the protocol FB Refer to Section 8 2 2 Paste the protocol FB to the sequence Refer to Section 8 2 3 program he the I O area of the pasted protocol ses Refer to Section 8 2 4 Convert compile the sequence program Refer to Section 8 2 5 8 HOW TO USE PROTOCOL FB 8 2 How to Use Protocol FBs on GX Developer MELSOFT When sequence information is converted into protocol information FBs the following three different protocol FBs are inserted into GX Developer 1 Module initialization FB INITSC 2 Send FB S k x k x x 3 Receive FB R gt k K gt K k KK kx xk is the name 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 The procedure will now be explained 8 2 1 Module start I O No setting PURPOSE To set the module start I O No of the protocol FB For use at the time of changing the module start I O No after FB conversion ED BASIC OPERATION 1 Open the target FB program on GX Developer 2 Change to the write mode 3 Click the Project Function block Module start I O No setting menu 4 Input the new module start I O No on the Module start I O No setting screen Module start address setting a a x Name ERDATA Earlier
10. S IN_ST_NO M1021 S IN_READ_ADR M11 S IN_ELEM_NUM W12 B I_START 0_ERR_CD W HDS B I_REQ_SEND ee E N N N E R E5ZW FB3 B I_START OUT_ST_N0 S B I_REQ_RECY OUT_EXE_RESULT OUT_RES_CODE OUT_READ_DATA S O_RUN B O_END B O_END_NG B O_ERR_CD O_R_DATA_NO int Initialization ON Initialization success Initialization failure Sets 00 to module No Sets 0000 to read address Sets 0001 to number of elements Send FB preparation completion FB normal end FB abnormal end Send FB error code storage CH1 read completion setting CH1 read completion resetting Receive request setting Receive module No storage Receive end code storage Receive response code storage Read data storage Receive FB preparation completion FB normal end FB abnormal end Receive error code storage Receive data No storage Receive request resetting Refer to Section 8 2 4 for details of the protocol FBs used in the above sequence program examples 8 12 8 12 8 HOW TO USE PROTOCOL FB MELSOFT 3 Input output timing of the send receive FB Receive FB execution request ILSTART Receive FB execution completion flag O_RUN Send FB execution request N 5 N Send FB execution completion flag Send request I _REQ_SEND o O Send processing processing j 3 O Send FB end notification O_ END X Nase reaver Renner ans au Send FB abnormal e
11. 21 OUT_ST_NO OUT_PARAM OUT_ 22 OUT_ST_NO OUT_PARAM OUT_I ail OUT ST NO OUT PARAM a Operation Click g or choose Edit Sequence information New sequence information New sequence information is created Creates new sequence information QI71C24N eaP Num da lt 4 8 Set the packet data to the sequence information Sequence information Read command Name Read command End setup me Cancel _ Double click Packet name m Control type Send IES Bass C Receive C Send Receive The packet information screen opens m Packet selection Project selection UserProject x Classification Packet name No Classification Packet name 6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT Packet information selection Projectname UserProject Cancel Select the packet information uh Packet information list Select the packet to create a protocol FB Packet data selection x Name Operation Commands O pe rati O n Le Select the packet data information Packet data information list oe o NAME Node No Sub address SID MRC SRC Command cod Communications writing Disable IN_ST_NO oo 30 05 oo Communications writing enable oo 30 05 oo Run chi oo 30 05 or T h p k t d t t d h Stop chi a ao oe e packet data selected nere IS Run ch2 go 30 05 01 S
12. 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 Click the Transmit receive packet list button on the Circuit trace screen DISPLAY SETTING SCREEN 2 Transmission receive packet list send ii Reading parameters Receive AAEE AAAA EAE er T Reading parameters Type ASCII ES Close 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT E DISPLAY SETTING DETAILS Display Setting Details ere 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 Displays the packet names of the packet construction information that matches the corresponding packets Display 1 When there is only one packet that matches The packet name that matched is displayed 2 When there are more than one packet that matches Match with several packets is displayed 3 When there are no packets that match No matching packets is displayed Displays the details of the selected transmission receive packet Transmission receive packet details display button SENS i Sanaa ISSI Ive p configuration Display form Either ASCII or HEX can be selected as the display format button Closes the Transmit receive packet list screen Point Packet
13. Set a new name Changed name Oo The usable number of characters is within 32 characters Tit Set the title itle The usable number of characters is within 32 characters 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 3 5 Deleting the sequence information G PURPOSE To delete the sequence information E 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 button to delete the sequence information 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 3 6 Confirming the I O variables We PURPOSE To 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 The data set in the packet construction information setting are displayed in the Input Output variable list DISPLAY SETTING SCREEN Input Output variable Name Read from Variable Area 5 Title settings area Read only Input Output variable list OUT_RES_CODE Character sequencel4 OUT _ READ DATA Character sequencel4a 7 SETTING OF PROTOCOL FB DATA MELSOFT
14. Transmission speed of module information 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 FB support function Sequence program Select system project eo SS WE r ga Protocol FE support Nici lo x Dept ER EndRecice Comet Yew gie Dyosa Took Mmi te x Project Debug support incton indor Dee aj zale aaia sl aiaj Sle Sl lt ele wie mels wie ala ots A ilii e ae Lael 6 ae p PAP IES ASRS hha CERERE 7 TESA x E CI OMAONESZN Dual Loop E J OMRONESEK Ongtal Prov O Yematake DMCIO Distrib FB conversion re GX Configurator SC TEA LOE CEL EEF eS Receive packet C24 Send packet gt 1 Module setting Device controller amp Module setting Set the parameters necessary for the initial Kind fen CHI setting of the C24 module The settings are Beea bit reflected on the Send receive data and Parity bit Yes R Vee ae P Odd even parity Odd M
15. existing one Therefore when multiple module initialization FBs are needed for respective applications or channels change the FB program name on GX Developer after FB conversion of sequence information 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 if MELSOFT series GX Developer C data RS232C1 FBLD Edit mode INITSC Initial FB SG mi x Z Project Edit Find Replace Convert View Onine Diagnostics Tools Window Help la x OEO Eee The protocol FB is inserted into the Disa S alel l Aee sll ee ae el allgla hl tl delle lt lt FB gt gt t b x h RST VRUN oS ca 4 The inserted FB names are the FB f Function Block RST oeno 6 8 INITSC Initial FBC EA Header Initial FBC ace Wall a ao marco cr name specified in FB conversion of 8 S R_DATA read comma RST OLEND er some sequence information and INITSC a i initialization FB 10 Module head I O setting ie MELSO ies GX Developer C data RS232C1 FBLD Edit mode i FB SC ie SOFT series GX Developer C da FB i B SC o x E Project Edit Find Replace Convert View On
16. 48 Parameter E Device memory EL Device init Customize keys Change display color Options Structure Protocol FB support function is started Host station Ovrwrte The menu display may differ slightly depending on the version of GX Developer Point If Do not use label is selected when creating a new project with GX Developer only the debugging support functions can be used 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5 2 Exiting the Protocol FB Support Function We PURPOSE To end the protocol FB support function 3 BASIC OPERATION Click the Project Exit Protocol FB Support Function menu DISPLAY SETTING SCREEN 2 Protocol FB support function Project Edit View Debug support function Window Help New project Ctrl N Open project Ctl o Glose project Save Cil S save as Delete project Change module type PI TIE ooa Ctrl P 1 SAMPLE agg 3 test 4 C data QFBP SC FB_TEST2 Exit Protocol FB Support Function AF User Ends Protocol FB support function QI71C24N CaP NUM SCRL 5 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 outline New project Creates a new project Open project Opens the existing project Opens the existing project o Saves or Saves as th
17. Microsoft Windows XP Home Edition Operating System Generic product name of the product model names SWnD5C GPPW E SWnD5C GX Developer GPPW EA SWnD5C GPPW EV and SWnD5C GPPW EVA n means Version 8 or later Abbreviation of the function block Generic term for the Q00J QOOUJ Q00 QO0U Q01 Q01U Q02 H Q02PH Q02U Q03UD Q03UDE Q04UDH Q04UDEH Q06H QO6PH QO6UDH QO6UDEH QCPU Q mode Q10UDH Q10UDEH Q12H Q12PH Q12PRH Q13UDH Q13UDEH Q20UDH Q20UDEH Q25H Q25PH Q25PRH Q26UDH and Q26UDEHCPU LCPU Generic term for LO2CPU and L26CPU BT 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 C24 module with a device controller a wide variety of complicated sequence programs e g device specific message format creation and data communication had to be created by the user in the nonprocedural protocol On this software user created communication control programs are available as function blocks hereafter abbreviated to FBs The user can create a communication control program easily by making use of these FBs Also since the communication debugging functions necessary for system startup are provided operations from communication control program creation to syst
18. sSs s SOO CSSCS Reservation D device po o o Module stat VONo jo HEX m Object sequence information Name Read command Title Channel CHI C cH2 Communication setting check Project UserProject No Classification Packet name Send Operation Commands Command 11 Protocol FB support function Inserted into GX Developer i MELSOFT series GX Developer C MELSEC Gppw testproject LD Ec t Z Project Edit Find Replace Convert View Online Diagnostics Tools Window H osla a aele ARAA ll ae ae a testproject 8 Function Block 8 INITSC Initial FB SC El fe S R_BATA YAMATEKE 5l a R R_DATA YAMATEKE Project FB Structure int MELSOFT Operation Click ed or choose Edit Sequence information FB conversion of sequence information Input the FB program name etc and click the 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 lt lt FB gt gt tab of GX Developer Precautions for creating multiple module initialization FBs At the time of FB conversion of sequence information a module initialization FB is created under the FB program name of INITSC If the module initialization FB INITSC exists in a GX Developer s project the new FB is overwritten to the
19. specified length packet 7 4 S Saving the circuit trace file ccceeeeeeees 9 9 SCREEN DISPLAY ariennir si 4 1 SeA RB ke ee eee ear eee ee 8 5 Setting of I O variables of pasted protocol FBs se O aaa cat na ee Sah onan Moana eG 8 4 Sequence information of system project 11 1 Setting the packet construction information 7 5 Setting the packet data information 7 11 Setting the sequence information 7 16 Me EEEE E EEE E ano EE E E vena 5 2 State Monitor naannnnnnannnnnnennnnenennnrenennrnenne 9 14 State monitor screen lt lt Error information gt gt tab Communication error statuS 0008 9 15 Switch setting mode selection error 9 15 Communication resullt ccceeeeeeeeeeees 9 15 Error FOSCL s Sccheesetncoiab instead esate eeeaenencs 9 15 State monitor screen lt lt Operation setting switch gt gt tab Operation setting SWitch c eee 9 16 Mode SWIICN cccccsccccssseeeeesseeeeseaneeeees 9 16 Station SWITCH cccceeeeccceeesseeeeeeeeeeeeeeees 9 16 Index 2 Index 2 Microsoft Windows Windows NT Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries Pentium is trademark of Intel Corporation in the United States and other countries Ethernet is a trademark of Xerox Co Ltd in the United States All other company names and p
20. 1 REQ _RECV Receive processing FB end notification O_ END FB abnormal end notification OQ END _NG Receive data No O_ R_DATA_NO Error code setting O_ERR_CD 8 HOW TO USE PROTOCOL FB MELSOFT Point 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 C24 module I O signal However when the packet construction of the send data differs from that of the receive data head differs no special measures are not required since the receive of the echo data can be ignored on the C24 module side For details of Receive read request Receive error detection and Receive read completed refer to the Q Corresponding Serial Communication Module User s Manual Basic or MELSEC L Serial Communication Module User s Manual Basic 8 2 5 Converting compiling the sequence program G PURPOSE To convert compile the sequence program where protocol FBs have been pasted to make it executable E BASIC OPERATION Click the Convert Convert Compile menu of GX Developer 8 HOW TO USE PROTOCOL FB MELSOFT
21. 10 7 10 PRINT MELSOFT 10 3 Print Examples 1 Module information Project name or system name of system project is printed Title is printed E52N Comment OMRON TYPE ESZN 2003 05 22 19 20 Print date is printed Module name QJ71C24N em om ECS Data bi est To Oddleven parity Transmission contral Communieaton control communication communication Half duplex communication D ata communication Be monkorine CO S E o D ata reception Reception area Page number is printed 1 1 Module information 10 8 10 8 ee MELSOFT 2 Trace data horizontal Trace data file name is printed TraceF ile15 FBT 2004 14 19 13 14 mata E S Qwerrun erron F ar ity errori Framing error Send pad ef HE RS signal ER signal DR signal CS signal CD signal Reception error Page number is printed We C ircu it t ace 10 9 10 9 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 1 System Project Classified by Supported Device Controllers The system project defines the supported device controller compatible communication frames packet construction information packet data in
22. 4 Section 8 3 Section 10 3 Partial additions section 9 2 1 Appendix 3 Partial corrections Section 1 1 Section 7 2 1 Section 7 2 3 to 7 2 4 Section 7 3 2 section 7 4 Section 8 2 1 Appendix 1 Partial additions Appendix 4 to 5 Partial corrections Section 3 2 Section 6 2 Section 7 2 3 Section 7 2 4 Partial additions Section 8 2 4 Section 9 3 Jul 2005 NA 080393E E section 6 3 Section 6 4 Section 8 2 4 Apr 2006 080393E F SAET a Partial corrections Section 8 2 4 Section 8 3 Appendix 5 Jan 2008 080393E H Partial corrections Generic Terms and Abbreviations Used in This Manual Chapter 2 Partial corrections Section 7 3 May 2008 SH NA SH NA SH NA SH NA 080393E Jun 2009 SH NA 080393E J gt oo Model Addition QO6PHCPU Q10UDEHCPU Q20UDEHCPU Partial corrections Section 5 1 Partial additions About Manuals Generic Terms and Abbreviations Used in This Manual Chapter 2 Section 9 2 2 Section 9 4 Appendix 1 The manual number is given on the bottom left of the back cover Print Date Manual Number Jan 2010 SH NA 080393E K Model Addition LO2CPU L26CPU BT Partial corrections About Manuals Generic Terms and Abbreviations Used in This Manual Chapter 1 Section 1 1 Section 3 1 Section 4 3 Chapter 5 Section 5 1 Section 5 3 1 Section 5 3 6 Section 6 1 Section 6 3 to 6 5 Section 7 1 Section 7 2 1 Se
23. 4 4 2 User project tree PURPOSE To display the packet information and sequence information of the project created by the user BASIC OPERATION 1 Click the lt lt User gt gt tab in the project tree 2 The user project tree is displayed DISPLAY SETTING SCREEN ol x AO Sequence information ce Read from Variable Areal Settings area U Reac only Read fram Variable Area 22 Settings area O Read write Read from Varable 4rea 33 Settings area 1 Read write 3 Write to Variable Area 11 Settings area Read write ce Write to Variable Area 2e Settings area 1 Reacd write BF User 4 SCREEN DISPLAY MELSOFT E DISPLAY SETTING DETAILS Display Setting Details User project name The project names set by the user are displayed 2 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 Unless otherwise specified a project indicates the project of the protocol FB support function Point If using
24. A E a EA a lle A mpa Ele TE Z 4 i sequence program Operation Convert Convert Compile Since the sequence program has not yet been convert not yet been compiled convert compile it before use 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 SETTING OF PROTOCOL FB DATA 7 1 Module Setting PURPOSE To set various parameters necessary for the initial setting of the 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 Mode change Data communication time monitoring Transmission control Transmitting area Communication control Data reception Half duplex communication control Reception area ED BASIC OPERATION 1 Click the Edit Module setting menu 4 2 Set various parameters and used channels on the Module setting screen 3 Click the End set up button 4 The module information is set DISPLAY SETTING SCREEN g Module setting aS nae Kind m m m i 3 Databt J Paitybt No No ___Cancel_ a a a se Stop bi Sumcheckeode No No mo Transmission speed 300bps 300bps M CH2 DTA DSF contol DTR DSR DTA DSA DC1 DC3 contol Mocontol No contol ss DEtcode Oo o o Trans
25. Add in software GX Configurator SC Yersion2 04E SW2D5C OSCU E Cur iment c cous Mit oobi ELEC mc CONPURATION ALL RIGHTS RESERVED Warning This product is protected by copyright law and international treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the maximum extension possible under the law App 8 App 8 APPENDICES MELSOFT Appendix 6 Compatibility with existing applications Depending on the software versions of GX Configurator SC projects that are saved using the protocol FB support function of newer versions may not be opened with GX Configurator SC of older versions Listed below are the software versions that require attention to the compatibility between projects Pay attention to the following precautions as using projects l l J l i Precaution Version used on saving projects Version in use on opening projects 2 04E or later 2 03D or earlier 2 06G or later 2 05F or earlier Projects cannot be opened 2 21X or later 2 20W or earlier App 9 App 9 INDEX A Applicable modules and applicable function E E E A E E E eae 3 1 C Changing the module type cccccceeeees 5 8 Character Strings That Cannot Be Set as Input 2 A Saas E AN A E E T A ES App 2 Circuit Trace uisi det 9 3 Circuit trace option screen Monitor buffer head address setting
26. Communication test setting screen is displayed The currently set transmission monitoring time is displayed 3 Input the transmission monitoring time from the Communication test setting screen click the button and then click the button DISPLAY SETTING SCREEN Communication test setting x Transmission monitoring time designation i agd amp x100ms Write J gt DISPLAY SETTING DETAILS The displayed time is the transmission monitoring time set to the module Transmission monitoring time Input the transmission monitoring time in units of 100ms The setting range is 0 to 3000 x 100ms Write Write button Sets the specified transmission monitoring time to the module button Closes the screen 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 4 State Monitor We PURPOSE To monitor the signals communication error information and operation setting switches ED BASIC OPERATION 1 Click the Debug support function State monitor menu 2 Click the button 3 Click the lt lt Signal gt gt tab and confirm the signal status 4 Click the lt lt Error information gt gt tab and confirm the error information 5 Click the lt lt Operation setting switch gt gt tab and confirm the operation setting switch setting status 1 lt lt Signal gt gt tab DISPLAY SETTING SCREEN g4 State Monitor S 3 ojx Object module 1 0 Address 00 Type QJ71C24N Channel CH1
27. E T et tl a ee eh Sow Convert aM RS232C1 f Function Block f INITSC Initial FB SC Convert Compile All programs EH Header Initial FB SC E Body Initial FB SC ao 2 S R_DATA read comma e sea Since the protocol FB has not yet been por mo S convert not yet been compiled convert compile it before use 6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT 12 Create a Sequence program and paste the protocol FB i MELSOFT series GX Developer C data RS232C1 LD Edit mode MAIN 124Step o x i Project Edit Find Replace Convert View Online Diagnostics Tools Window Help E E Ope ration jita 20 c i Sa ore cova variable of j BE ECEE OEE allel siela zl ddala h isleta me S F ale als iets al E Hl Nal RS232C1 1 Put the sequence program in the edit condition 2 Open the lt lt FB gt gt 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 Function Block 8 INITSC Initial FB SC Hne ader Initial FB SC E Body Initial FB SC fe RS Project FB Structure xl Ready Q02 H Host station Ovrwrte icap NUM 5 lt b 13 Convert the sequence program pe alala crn fz ole wise sets sale alz lel el Hie Ei mij The protocol FB is pasted to the Ma ra
28. Eolas Turn ON to start the FB Receive request RENE Turn ON to enable receive nee 3 O RUN FB execution completion flag na Output Turns on at completion of receive preparation FB end notification O_END Turns ON at completion of receive Also turns ON at abnormal completion A FB abnormal end notification O END NG Turns ON at an abnormal end only Output When it has turned ON refer to the error code O_ ERR_CD O ERR CD construction size O ERR CD 0 Module detection error Refer to the Q Corresponding Serial Communication Module User s Manual Basic or MELSEC L Serial Communication Module User s Manual Basic Receive data No When the receive packet entered on the Sequence information screen CNS matches the receive data that packet No 1 to 4 is stored Ona upu mismatch 0 is stored 2 FB execution completion flag O_RUN is an output variable for interlock It is added from SW2D5C QSCU Version 2 14Q Point 1 When using the receive FB and send FB in the sequence program create a program in which the input variable START of the receive FB turns on earlier than or at the same time as START of the send FB When multiple send FBs exist do not execute 2 or more send FBs concurrently Do not create a program in which more than one _ START of send FBs will turn ON at the same time Also when multiple receive FBs exist do not execute 2 or more receive FBs concurrently Do not create a
29. 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 The following flowchart indicates the creating procedure Start GX Developer Create the project of GX Developer Start the protocol FB support function GX Developer Is there a device controller to be used with the system project Yes Protocol FB support function 9 Step 1 Make module setting a Step 5 With the sequence information being selected convert it into a protocol FB Refer to Section 6 3 pe be ee 10 Module head 0 setting 11 Convert the protocol FB 12 Create a sequence program and paste the protocol FB l 13 Convert the sequence program GX Developer Protocol FB support function Connect with the device controller _ and perform debugging No 9 Step 4 With the sequence Since FBs will be used select Label setting Use label Reusing the system project create protocol FBs 3 Create a new user project E4 7 Step 1 Make modul
30. IHD2 132 END gt Project FB str 4 gt x Ready 25H Host station lovrwrte ICAP Num SCRL 5 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 2 Communication debugging support Reduced debugging work for system startup The debugging functions required for system startup for communication of the C24 module with the device controller are available Packet data on the line can be confirmed without any other tool being used es Circuit trace TraceFile15 QJ71C24N Object module Send packet HEx 01 30 31 31 30 31 30 3 30 30 30 31 30 30 31 1F 45 ASCI Receive packet HE packet HEX BI x ASCII 0 2 a f Object module 1 0 Address 00 Type QJ71C24N Channel CH1 Monitor stop Close Signal Error information Operation setting switch RS signal mm m memm m LL LL LL LL LL LL LL LL Le LL LLL LLL Le
31. Monitoring Monitor stop Close signal Error information Operation setting switch Signal description Signal description Value yqg CHI Transmission normal OFF YOO CH1 Transmission request completion VOT CH1 Reception data read OFF gy CH1 Transmission abnormal OFF completion completion 02 CH1 Mode switching request OFF x02 CH1 Transmission OFF YDE CH1 ERR clear request OFF processing Y10 Modem initialization request OFF 03 CH1 Reception data read OFF standby request request Y11 Connection request OFF CH1 Reception abnormal Modem disconnection x04 detection OFF mie request OFF x06 CH1 Mode switching OFF 14 Notification issued request OFF XE _ CH1 ERR occurrence OFF Y17 Flash ROM read request OFF x10 aiea ails OFF Y18 Flash ROM write request OFF eee Flash ROM system setting x12 Connection OFF Quetem setina default hd x13 alia abnormal OFF RS 232 signal x14 odem disconnection OFF r complete RTS CD Notification normal as completion unr DSR ad CS ad Notification normal Ale completion ail DTR z RI v1 Clank MOhd vamal ne wnnlatiann acc DISPLAY SETTING DETAILS Display Setting Details X signal state monitor Displays the ON OFF status of the X signals Y signal state monitor Displays the ON OFF status of the Y signals RS 232 signal monitor Displays the ON O
32. based personal computer and Products compatible with Windows 7 and precautions for installation as additional information 2 OPERATING ENVIRONMENT MELSOFT Operating system and performance required for personal computer Operating system Windows 95 Service Pack 1 or later Windows Me Windows NT 4 0 Workstation Service Pack 3 or later Windows Vista Business Windows Vista Ultimate Windows Vista Enterprise Windows 7 Starter Windows 7 Home Premium Windows 7 Professional Windows 7 Ultimate Windows 7 Enterprise Point When Windows XP Windows Vista or Windows 7 is used the following new functions cannot be used If any of the following new functions is used this product may not operate normally Start of application in Windows compatible mode Fast user switching Remote desktop Big fonts Details setting of Screen properties Additionally 64 bit Windows XP Windows Vista and Windows 7 are not available In Windows Vista and Windows 7 log in as a user having User authority or higher When Windows 7 is used the following new functions cannot be used Windows XP Mode Windows Touch 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 outline Reference Section Mak
33. data matching is performed in the following order 1 The data length of the packet data is obtained the variable area has the maximum data length and whether the full data length is equal to the object packet data length or not is checked 2 The object packet data is divided in terms of the data length of each item and whether it is equal to the preset packet data or not is checked The following communication data configurations cannot match 1 The data is configured by error check codes only 2 The data starts with an error check code With the click of the mouse right button the display data of the Transmission receive packet list display screen can be copied 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 2 4 Opening the circuit trace file G PURPOSE To read and display the trace data saved in the personal computer ED BASIC OPERATION Click the Debug support function Circuit trace Open circuit trace file menu 9 2 5 Saving the circuit trace file 3 PURPOSE To save the trace data obtained by the circuit trace to the personal computer BASIC OPERATION Click the Debug support function Circuit trace Save circuit trace file menu 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 3 Communication Test Send any data or preset data to the device controller to confirm the operation The communication data result of the communication te
34. module stat address HE o Mew module stat adcdress HE 10 Device mri DDAU Input module start I O No With GX Configurator SC Version 2 03D SW2D5C QSCU or earlier versions the module start I O No is 0 if a conversion is made Change the module start I O No of the protocol FB using this function 8 HOW TO USE PROTOCOL FB MELSOFT 8 2 2 Converting compiling the protocol FB whose module start I O No was set We PURPOSE To convert compile the protocol FB whose module start I O No has been set so that it can be used on GX Developer ED BASIC OPERATION Click the Convert Convert Compile menu of GX Developer For details refer to the GX Developer Version 8 Operating Manual Function Block 8 2 3 Pasting the protocol FB to the sequence program PURPOSE To paste the protocol FB to the sequence program for use in it ED BASIC OPERATION Switch from the lt lt Project gt gt tab to the lt lt FB gt gt tab of GX Developer and drag and drop the protocol FB to be used onto the sequence program For details refer to the GX Developer Version 8 Operating Manual Function Block i MELSOFT series GX Developer Unset project LD Edit mode MAIN 124 Step E o x Z Project Edit Find Replace Convert View Online Diagnostics Tools Window Help es x A x aS m a Unset project aN eeete unction Block N kra S F INITSC
35. node 1 Send packet setting example Header Any data Terminator lt ______ __ gt 4 4________________ _ pH Packet constuction ACK Data 1 Data2 Terminator Code n number of bytes 1 2 1 4 1 I I I x v J 7 bytes Create new Packet information pess ooo l Create new Packet information screen oi s 2 Packet construction information Send packet Packet construction information screen A Header Header ASCIICode 1o S 2 Number Fixeddata Ast 1o E3 Datat Input iN_DATA1 asci 200o m Data2 InpuiN_DATA2 asi 2 S Terminator Terminater HEX DAE m a 2 Packet data Send packet Packet data screen ppp WM Send packet ACK 1 EE 0 App 3 App 3 APPENDICES MELSOFT 2 Receive packet setting example Header Any data Terminator e a d Packet eanstruction ACK Station Measured Measured Terminator No value 1 value 2 Code number of bytes 1 ts 4 1 Ka v 2 7 bytes Create new Packet information Receive packet Example of setting Create new Packet information screen 9 2 g Packet construction information Receive packet Packet construction information screen No ltem Data classification Datatype Datalenath m Header Header ASCIICode ma Number Fixed data ASCH 3 Measurements Output OUT_MEAS_1 ASCH 2 4 Measurements2 Outpu QUT_
36. program in which more than one START of receive FBs will turn ON at the same time Doing so will result in abnormal operation and only the processing based on the send receive FB executed at the last will be executed When O_END_ NG is ON either of the following error codes is stored O ERR CD 0 Receive packet size error The received packet size is outside the range of the set packet NO 3 When executing receive FB and send FB concurrently execute the send processing after FB execution completion flag O_RUN of receive FB turns on Executing the send processing before FB execution completion flag of receive FB turns on causes the error in the module Error code 7FF5x 8 HOW TO USE PROTOCOL FB MELSOFT The sequence program example that uses the receive FB and its timing chart are shown below Mi He R TESCFB1 Receive request c ELI START QUT_ST_WO ELI REG _RECY QUT_EXE_RESULT OUT _ARES_CODE FB execution request OUT _REAG_DATA O_RUH O_EWO O_EWO_WG O_ERR_CO O_R_DATA_WO At error occurrence error code is output to outside Receive data No 3 FB execution completion flag Wide W21 FB end notification Mee FB abnormal end notification 3 Variables used when output variables are specified by the user in the packet construction information FB execution request I START FB execution completion flag O_ RUN Receive request
37. the protocol FB support function select Use label when creating a new project with GX Developer 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 LCPU 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5 1 Starting the Protocol FB Support Function We PURPOSE To start the protocol FB support function from GX Developer E BASIC OPERATION 1 Select Use label with GX Developer and create a new project 2 Click the Tools FB support function Protocol FB support function menu 3 The protocol FB support function starts DISPLAY SETTING SCREEN E MELSOFT series GX Developer Unset project LD Edit mode MAIN 124 Step E Project Edit Find Replace Convert View Online Diagnostics BEW Window Help Cle B AR Check program Dism 3 amp AALl l 4 Confirm project memory size Global variables Sft Merge data Check parameter JHH PIA YT OIL i LIST KY TE AEST F5 ie F6 4 F FB F9 sF9 cF9 crIo sF lsFalarz d Transfer ROM Delete unused comments Thl E FSA Bg A S Clear all parameters IC memory car x 69 Set TEL data Unset project E Global variables Intelligent Function utility b Device comment Pre defined protocol support function
38. 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 Restrictions on the packet construction when FB conversion is performed from sequence information lt In the case of send packet gt The maximum size of the send packet is 255 bytes The number of registrations number of bytes of each item is within the following ranges A number of bytes of items other than the input variable x 3 B number of items for input variables label variables x 30 The packet cannot be created if A B exceeds 270 lt In the case of receive packet gt The packet data requires the header the error check code or terminator 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 The maximum size of the receive packet is 255 bytes The number of registrations number of bytes of each item is within the following ranges A number of bytes of items other than the output variable x 3 B number of items for output variables label variables xX 17 The packet cannot be created if A B exceeds 340 x Add all packet information set to the sequence information Rest
39. turns on causes the error in the module Error code 7 FF5x 8 10 8 10 8 HOW TO USE PROTOCOL FB 1 When there is no echo data skip processing MELSOFT Use the sequence information parameter read 12 of OMRON s E5EK Initialization MO O_END_NG B M2 O_RUN B O_END B M11 x02 0_END_NG B M12 O_ERR_CD HDS Reception demand processing N MIT M12 X 1 SET H20 l xd Rece tion processin p p x5 g M1 R E5EK FBS B I_START OUT_ST_NO HD30 B I_REQ_RECY OUT_PARAN S OUT_RESULT OUT_READ S O_RUN B O_END B M21 O_END_NG B M22 O_ERR_CD O_R_DATA_NO 8 11 Initialization ON Initialization success Initialization failure Sets 00 to module No Send FB preparation completion FB normal end FB abnormal end Send FB error code storage Receive request setting Receive module No storage Receive parameter No storage Receive end code storage Read data storage Receive FB preparation completion FB normal end FB abnormal end Receive error code storage Receive data No storage Receive request resetting 8 11 8 HOW TO USE PROTOCOL FB 2 When there is echo data skip processing MELSOFT Use the sequence information variable area read information 3 of OMRON s Initialization x50 E 5 MO M1 M2 Reception processing hi1 W2 HOY oo D10 SMOY oo00 D12 SMOY 0001 D15 S E52ZN FB2
40. 41 GX Developer Sold separately GX Developer Version 8 Operating Manual Function Block Explains the function block creation method printout method etc using GX Developer a Sold separately GX Configurator SC Version 2 Operating Manual Pre defined protocol support function Explains the features and usage of the pre defined protocol support function and the setting for ier protocols Sold separately The manuals are available separately in printed form as options Please place an order with the manual number model code in the above table How to Use This Manual The symbols used in this manual and their definitions and examples will be explained Symbol Lien Menu name of the menu bar Project lt lt gt gt Tab name of the dialog box lt lt Main gt gt Item name of the dialog box Name p Command button of the dialog box Button J PURPOSE Purpose of the operation that is explained in the corresponding chapter section or item BASIC OPERATION Operation performed until the screen for actually achieving the purpose is displayed DISPLAY SETTING SCREEN Screen used to make setting and or provide a display for the purpose DISPLAY SETTING DETAILS Explains the display setting screen items Point Explains the especially noted items of the explanation functions desired to be Known etc Gives information useful as the knowledge related to the explan
41. 4695591 3241 42434405342 E DISPLAY SETTING DETAILS Display Setting Details Select packet from inside the project Select packet from inside the project from inside the ns t button Displays the Packet data selection screen Send data a sis data Displays the packet data to be sent button Sends the input packet data Setting button Displays the Communication test setting screen Refer to Section 9 3 3 button Closes the Communication test screen 9 3 2 Communication test after selection of packet data PURPOSE To select the packet data entered in the project and send them to the device controller CB BASIC OPERATION 1 Click the Debug support function Circuit trace Circuit trace menu to display the Circuit trace screen 2 Click the button on the Circuit trace screen 3 Click the button on the Communication test screen to display the Packet data selection screen 4 After selecting the project from the Packet data selection screen select the packet to be sent and click the button The Communication test data input screen is displayed 5 Input data from the Communication test data input screen and click the button 6 Click the button on the Communication test screen 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY SETTING SCREEN Packet data selection 2 x Packet information list Read from Variable Area Command e wr
42. 5 4 9 3 Creating anew OJ OCU nerami Se nce tala ste a A E nap aoe de seaanseeueL 5 4 5 3 2 Opening the I ONC Cisse pee athe eens ood rea cece Soe oa end ie abersaatah coca nee weeny ae aaeceteae 5 6 Did Or CIOSING MGs DlO C Cleese oes eset ees ese at asccenades cee eescc ened ee ose eae ee 5 6 SoA SVN ENC FO CG asinhas ahstt bist tence eee 5 7 5 3 5 Deleting the project of the protocol FB support FUNCTION ccc cccccceesecceeeeeeeeceeeeeeeeeeeeeeeeeeeeeaaees 5 7 9 20 CHANGING the Module TY OC ices vicrstucsle ccna aauladubi airtel dti a ate a Mclachlan ld tacit 5 8 A 5 A 5 6 PROTOCOL FB CREATION OPERATING PROCEDURE 6 1 to 6 12 621 Protocol FBE GONSIUCHOM Dale sires tcstates Seace etait 35 dachotss iaaa iaa ae 6 1 6 2 Communication Control Program Creating Procedure ccccccccccccceceseeeseeeeeeeeseeeeeeseeeeeeessuaeeeeeeeeeeesaas 6 3 6 3 Operating Procedure for Use of System Project cccccccsssssseceeecceeeesseceeeecceeeauseeeeeecesseaasseeeeeeeesseaas 6 4 6 4 Operating Procedure for Use of User Project 00 00 00 cee ccccccccccesseeeeceeeeeeeaeeeeeeeeeeeeseeeeseeeeeeesssaaeeeeeeeeeeeeaas 6 6 6 5 Operating Procedure for Utilization of Converted FB on GX Developel cccccccceeeeceeeeeeeeseeeeeeaeees 6 11 7 SETTING OF PROTOCOL FB DATA T 1 to 7 24 k Mod le Seting meeesem ease tere ae te erate ra eats ate e A a ee ee ee ee eee ee T 1 h2 TP ACK SL NU MNON UM AUI ON staal teal leat Ra ae haba S
43. B may be lost do not use this FB when using the protocol FB If the module is not initialized with the module initialization FB always make module setting 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 To create new packet construction New packet construction cannot be created in the system project Execute this function in the user project ED BASIC OPERATION 1 Click the Edit Packet information New Packet information menu E 2 The Create new packet information screen is displayed 3 Set the Name Title and Packet type and click the button DISPLAY SETTING SCREEN Create new Packet information Wene Receivelspecified length packet Title Example of setting Cancel Facket type C Sendpacket Receive packet Receive specified length packet j DISPLAY SETTING DETAILS Display Setting Details Set the name of packet information Name The number of usable characters is within 32 For restrictions on name refer to Appendix 2 Set the title of packet information Title The number of usable characters is within 32 For restrictions on name refer to Appendix 2 Select the packet type from the followings Packet type Send packet Receive packet Receive specified
44. BEL VARIABLES OF SYSTEM PROJECT MELSOFT 11 2 Supported Device Controller List The following table lists the supported device controllers Classification Modular temperature controller In panel NEO Model E5ZN OMRON Thermack K Model E5 _ K AA201 L Digital controller Thermack K Model E5 K AA202 Thermack K Model E5 L K AA203 L YAMATAKE Modular controller DMC10 11 2 1 OMRON make 1 Model E5ZN series 1 Variable area read Command correspondence list Label variable list Variable Area Read Command Variable Area Read Response Data type Data type Input variables Output variables Data length Data length Module No Module No OUT ST NO Character string 2 IN ST _NO End code OUT EXE RESULT Read address Response code Character string 4 IN READ ADR aracter string 4 OUT RES CODE Data read Character string 48 OUT READ DATA Number of 1 element 8 bytes elements lt 8 bytes Character string 2 Character string 2 Number of elements Character string 4 IN ELEM NUM MAX Value 6 11 2 11 2 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 2 Variable area write Command correspondence list Command Sequence Information Setting area O 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 Comm
45. CIL 3 Horizontal parity 2byteJASCIL pa _ Horizontal parityl2byteJA SCII S5 Horizontal parityf2byteJASCIL 6 Horizontal parity 2byteJASCIL Fo Horizontal parityl2bytelA SCII Horizontal parity ZbyteA SCII Horizontal parity 2byteJASCI Horizontal parity 2byteJASCI Horizontal parity 2byteJASCI Horizontal parity 2byteJASCI Horizontal parity 2byteJASCIl Horizontal parity 2byteJASCH Horizontal parity 2byteJASCI ee Hor B z _ Horizontal parity 2byte ASCII a _ Horizontal parity 2byte ASCII 24 _ Horizontal parity 2byte ASCII Horizontal panty 2byte 45 Cl malra ee fe ee ee 2 oo oo Be aa Jo DISPLAY SETTING DETAILS Display Setting Details Displays the packet information that can be selected After making selection with the Packet data information list cursor Click the button The item whose first line is blue is in the calculation range of the error check code button Sets to the sequence information the packet data information selected with the cursor Returns to the Sequence information screen button Cancels the setting and closes the screen 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 3 3 Duplicating the sequence information We PURPOSE To 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 fu
46. Data length Module No OUT_ST_NO Character string 2 Module No Character string 2 IN_ST_NO Response code h ing 4 OUT RES CODE Character string 4 4 Monitor value read Command correspondence list Monitor value read 4 CH1 heater current value CH1 heater current value monitor l monitor CH1 manipulated value monitor Monitor value read 5 CH1 manipulated value Heating monitor heating CH1 manipulated value monitor Monitor value read 6 CH1 manipulated value Cooling monitor cooling 11 4 11 4 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Command Sequence Information Monitor value read 11 CH2 heater current value CH2 heater current value monitor 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 Command Monitor Value Read Response Data type Data type Input variables Output variables Data length Data length Module No OUT ST_NO End code Module No OUT EXE RESULT Character string 2 IN_ST_NO Response code OUT_RES CODE Monitor Value l Character string 8 OUT_MONITOR_DATA Character string 2 Character string 2 Character string 4 5 Set data read co
47. Deselect the sequence information or create sequence information does not exist information e The selected trace data file does not have e Deselect the transmission receive packet list or create transmission receive packet data transmission receive packet data 10 5 10 5 ee MELSOFT 10 2 Operations Common to Screens We PURPOSE To display the print preview BASIC OPERATION Click the Print preview button in the Print dialog box DISPLAY SETTING SCREEN x g2 Print preview Print Close sjel 1 33 pn a vamatke DMC10 Comment Distributed Multi channel Controller 2002 12 19 13 17 RD Com Read lil haa address data Padsxm CCC Cd Sear SCI ode 2 Station address InputfIN ST NO ascen O 3 Sub address Fixed data 4 Device ID code Fixed data Command Fixed data Start data word address InpuIN READ ADR Number ofdataitems np ttN DATA LEN asci 8 Checksum 2 complement O Packet construction information 10 6 10 6 aa MELSOFT E DISPLAY SETTING DETAILS item ___isplayiSetting Details a o a a Enlarge reduce Displays the enlarged reduced preview screen ae Switches to the whole page page width 2 pages thumbnail 150 100 Display switching 75 50 or 25 button Clicking the Print button ends the print preview and displays the print dialog box button Closes the print preview and displays the Print dialog box 10 7
48. Displays the data of the sequence information DISPLAY SETTING SCREEN Communication setting check Module type GIF 1024 FB program name Reservation D device Odd dd Transmission control Communication control mukana transmission Hat dupe ate10oms OOs communication control Retransmission time transmission method Do not resend Do not resend Data communication o000h 0000h time monitoring 1800 1 00rms 1800 1 00ms Toon buffer memor head ooh o o400h oe0oh Transmission Buffer memory length 0200h O200h or O1FFh O1FFh nana OD0Ah 0D0Ah Recerve buffer memon head 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 protocol FB 2 GX Developer can also be used to change the module head I O No of the protocol FB created by FB conversion 3 Convert compile the protocol FB 4 Paste the protocol FB to the sequence program 5 Create the I O area of the pasted protocol FB 6 Convert compile the sequence program The procedure of steps 1 to 6 will now be represented in a flowchart The details of 1 to 6 will be explained in the next section 1 Convert the sequence information into a protocol FB Refer to Section 7 4 Protocol FB support function 2
49. E EAT ARA Eaa KN AAEE EGE 10 6 10 SPAN EXMP OS a E E ET E atte nl an ee la Aa A 10 8 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT 11 1 to 11 16 11 1 System Project Classified by Supported Device Controllers cccccccccccecsssseeeeeeeeeseeeeseeeeeeeessaeaeees 11 1 11 2 Supported Device Controller LAST cis sashcsc octet cath ociecs eel cede ect a atl aie Be ee eet 11 2 dK era Fs A b ene ere Ne eek me eR ree ee er re ee ene eee eee 11 2 gi ee 0B 0 Sg gt ee eee eee cee ee ee ee er ee 11 15 APPENDICES App 1 to App 9 Appendix UW Help FUNCION omenie a cnet es a e e a a a App 1 Appendix 2 Project Name Specifications cccccssccccccccssessseceeccceeeaesseeeeeesceeaausseeeeeseeseaaeeceeessseesaaaaaes App 2 Appendix 3 Character Strings That Cannot Be Used as Input Variables and Output Variables App 2 Appendix 4 Pack t setung example irnia e EA E NEE NEN ARER E e a a App 3 Appendix 5 Newly added functions ccccccccccsesssseceeeceeeeassseceeecceeeaaueeeeeeceeeaaaaeeeeeeesseeaaseeeeeeeesessaaaaaes App 7 Appendix 6 Compatibility with existing applications cece eccccceecceeeseeeceeeeeeaeeeseeeeeeeesaeeaseeeeeeessaaasgeees App 9 INDEX Index 1 to Index 2 About Manuals The following lists the manuals relevant to this software package These manuals are separately available if necessary Related Manuals Model Code Q Corresponding Serial Communication Modu
50. FF status of the RS 232 control signals For details refer to the user s manual of a target module 9 14 9 14 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 2 lt lt Error information gt gt tab DISPLAY SETTING SCREEN a State Monitor Object module 170 Address 00 Type QJ 1C24N Channel CH1 Monitoring Monitor stop Close Signal Error information Operation setting switch Communications error status m Switch setting mode switching error CH1 ERR CH1 Communication protocol setting No SD WAIT SIO CH1 Communication rate setting PRO CH1 Setting change prohibit time mode i switching P S C N Setting station No NAK Linked operation setting ACK NEU Lj Communication result Error code Error contents Data transmission result 0 Data reception result 0 j DISPLAY SETTING DETAILS Display Setting Details Communication error status Displays the communication error status Switch setting mode switching error Displays the switch setting and or mode selection error status Communication result Displays the error status of the communication result buton Resets the error information when XnE on CH1 or XnF on CH2 is ON Masked in any other cases For details refer to the user s manual of a target module 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 3 lt lt Operation setting switch gt gt tab DISPLAY SETTING SCREEN
51. GX Configurator SC Version 2 MITSUBISHI Protocol FB support function i Ww oe a rogramming Mh intenance MELSOFT Integrated FA Software a SW2D5C QSCU E e SAFETY PRECAUTIONS e 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 In this manual the safety instructions are ranked as WARNING and CAUTION mm a a rr rc a a ae a ee eC Z N m N WARNING Indicates that incorrect handling may cause hazardous conditions resulting in death or severe injury Indicates that incorrect handling may cause hazardous conditions A CAUTION resulting in minor or moderate injury or property damage mc mm mm mm ms mm cs mr mc sm ms mm ms ms mc cs ms me ms mc ms ms me ms mm es ee oe ee ee ee a Note that the CAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save this manual to make it accessible when required and always forward it to the end user Startup Maintenance Precautions N CAUTIO
52. Header Header ASCIICode 1 Z 25 Number Fieddata ASCH ESE Measurements OutputfOUT_MEAS_1 ASCI mm ee eee Output OUT_MEAS_2 ASCII WE GOVT Packet data Receive specified length packet Packet data screen a A changeable length ACK 1 EE lM App 6 App 6 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 the following functions setting items are newly added to GX Configurator SC Function Setting item Description Reference Create receive specified The receive frame with fixed packet length header and no end judgment Section 7 2 length packet data can be created With this new function module start I O No can be set at the time of FB Module start I O No setting program conversion whereas module start I O No was set using GX Section 7 4 Developer after FB program is generated Point With GX Configurator SC packet construction information can be set according to the C24 module receive method as shown below Receive method Any data section eao Head frame Final frame Method 0 Method 1 O Setting available Setting not available 1 The following outlines the receive method O 1 Method 0 Method for receiving data of variable length using either both of head frame or and final frame M
53. IGHT C 2003 MITSUBISHI ELECTRIC CORPORATION ALL RIGHTS RE Sie Fy ee This product ts licensed to MITSUBISHI Company MITSUBISHI ELECTRIC CORPORATION gW aming This product ts protected by copyright law and international treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the masimum extension possible under the law MELSOFT App 1 APPENDICES MELSOFT Appendix 2 Project Name Specifications The following table indicates the restrictions on the set names such as the project name 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 The space after the project name is deleted automatically A period cannot be used at the end of the project name Special characters 2 lt gt and particular words cannot be used Maximum number of characters Within 150 characters including those of the project name Project name Project path Path The project name already existing in the path cannot be specified The space after the project name is deleted automatically Special characters lt gt and particular words cannot be used Maximum number of characters 32 characters The same name canno
54. II is set for the error check code 3 Do not include the fixed data prior to error check code in calculation range can be check marked when using the following modules QJ71C24 QJ71C24N R2 or QU71C24N R4 Use a function version B module with a serial number of which the first five digits are O6062 or higher LJ71C24 or LU71C24 R2 When a module other than the above is used messages will not be sent or received properly even if Do not include the fixed data prior to error check code in calculation range is checked The following table explains calculation ranges for the error check code in the basic packet structure Calculation range setting A header Head Do not include the frame is included fixed data prior to Basic packet structure and error check code calculation range in the calculation error check code in range calculation range C C Header I O variable Fixed Error check Terminator 4 data code Not checked Not checked Error check code calculation range Fixed Error check 2 E eee Checked Not checked Error check code calculation range OC EA Header I O variable Fixed Error check Terminator data code 3 __ Not checked Checked S Aera Total bytes of 2 data are up to 78 l Fixed Error check 4 Checked Checked l Error check code calculation range Total bytes of 2 data are up to 78 7 SETTING OF PROTOCOL FB DATA MELSOFT Point Restrictions on the packet construction items at
55. IN_F 18 IN_ST_NO IN_F 19 IN_ST_NO IN_F 20 IN_ST_NO IN_F 21 IN_ST_NO IN_F 22 IN_ST_NO IN_F 23 IN ST NO MIET 4 gt 7 SETTING OF PROTOCOL FB DATA MELSOFT E DISPLAY SETTING DETAILS Packet data information list Set the NAME field to differentiate between packet data NAME The usable number of characters is within 32 characters Set data on a construction element basis ee Set these data according to the data of the packet construction information Packet data information list l Up to 32 patterns of data can be set to one packet construction The item whose first line is blue is in the calculation range of the error check code DISPLAY SETTING SCREEN E ASCII Code input 3 x ASC Code input f DISPLAY SETTING DETAILS Display Setting Details Select the ASCII code from the combo box ASCII Code input 33 different ASCII codes have been entered NUL 0x00 to US 0x1F DEL 0x7F button Inputs the selected ASCII code into the cursor position button Deletes the ASCII code in the cursor position button Moves the cursor position left to right in the already input ASCII code list 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 2 5 Duplicating the packet information We PURPOSE To 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 pr
56. Initia EH Header Initial FB SC E Body Initial FB SC if S R_DATA EH Header Body S F R R_DATA EH Header 2a Body Project FB Structure x 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 Point For the I O variables of the protocol FBs created from the system project refer to Chapter 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT The I O variables used in the sequence information can be confirmed on the Input Output variable screen For details refer to Section 7 3 6 Confirming the I O variables How to use the I O variables of the module initialization FB send FB and receive FB will now be explained 1 Module initialization FB The module initialization FB has the following I O variables Using these I O variables make the initial setting of the C24 module VO variable Input Output FB execution request 1 JIL START ee l Input Turn ON to start the module initialization processing FB execution completion flag 2 O _ RUN Turns ON at completion of the initialization processing Output preparation j FB end notification 3 O END Turns ON at completio
57. MEAS_2 Asc 2 PS Terminator Terminater HEX WE Packet data Receive packet Packet data screen No NAME Header Number E Receive packet ACK 1 EE MT App 4 App 4 APPENDICES MELSOFT 3 Receive specified length packet setting example Fixed data Header e Packet construction ACK Station No Code number of bytes 1 1 l we y J 2 bytes Create new Packet information Receive specified length packet Example of setting1 2 9 Create new Packet information screen Packet construction information Receive specified length packet OF Xx Packet construction information screen Header ASCIICode Too ASC EREEE Oris eles i g Packet data Receive specified length packet Packet data screen No NAME Header Number AE specified length ACK 1 App 5 App 9 APPENDICES MELSOFT 4 Receive specified length packet setting example Variable data Header Any data e a OM Packet construction ACK Station Measured Measured No value 1 value 2 Code number of bytes 1 1 4 I l yY J 6 bytes z Create new Packet information Create new Packet information screen ox i ogi g2 Packet construction information Receive specified length packet OF x Packet construction information screen No Item Data classification Data type
58. N e Before starting online operations such as a communication test consider the operation of the connected device and fully ensure safety e CONDITIONS OF USE FOR THE PRODUCT e 1 Mitsubishi programmable controller the PRODUCT shall be used in conditions 2 i where any problem fault or failure occurring in the PRODUCT if any shall not lead to any major or serious accident and li where the backup and fail safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem fault or failure occurring in the PRODUCT The PRODUCT has been designed and manufactured for the purpose of being used in general industries MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY INCLUDING BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT WARRANTY TORT PRODUCT LIABILITY FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS PRECAUTIONS OR WARNING CONTAINED IN MITSUBISHI S USER INSTRUCTION AND OR SAFETY MANUALS TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT Prohibited Application Prohibited Applications include but not limited to the use of the PRODUCT in e Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs i
59. New Packet information Open Packet construction information Open Packet data information Sequence information Duplicate Packet information Rename Packet information Delete Packet information Sequence information The packet data information opens cap Num 7 Opens packet data information Q171C24N ne 6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT Packet data Reading parameters Response S h k d Name Reading parameters Response2 et t e pac et ata Title Packettype Receive packet a a Packet data information list F d t f t S t T 2 P k t or aetalliS reter tO oeCtion acKe No NAME a 1_ Reading parameters Response OUT_ST_NO wya OUT_PARAM OUT_I w 2 OUT_ST_NO OUT_PARAM OUT nfo rm ati on 3 OUT_ST_NO OUT_PARAM OUT_I 4 OUT_ST_NO OUT_PARAM OUT_I 5 OUT_ST_NO OUT_PARAM OUT_I 6 OUT_ST_NO OUT_PARAM OUT_I 7 OUT_ST_NO OUT_PARAM OUT_ 8 OUT_ST_NO OUT_PARAM OUT_ E OUT_ST_NO OUT_PARAM OUT_I 10 OUT_ST_NO OUT_PARAM OUT_I 11 OUT_ST_NO OUT_PARAM OUT_I 12 OUT_ST_NO OUT_PARAM OUT_ 13 OUT_ST_NO OUT_PARAM OUT_I 14 OUT_ST_NO OUT_PARAM OUT_ 15 OUT_ST_NO OUT_PARAM OUT_ 16 OUT_ST_NO OUT_PARAM OUT 17 OUT_ST_NO OUT_PARAM OUT_I 18 OUT_ST_NO OUT_PARAM OUT_I 19 OUT_ST_NO OUT_PARAM OUTI 20 OUT_ST_NO OUT_PARAM OUTI
60. S Circuit trace Debug support functions Save as circuit trace file Ls Circuit trace option State monitor Cascade S a y o Window Tile nonizontay Le Close all windows Product information 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 Toolbar Main menu Protocol FB support function System E o x Project Edit View Debug support function Window Help Packet construction information RD Command E JE x 9 OMRON E52N Dual Loop Modular Temperature C C OMRON ESEK Digital Process Controller 9 Yamatake DMC1 Of Distributed Multi channel Contre a Packet information S RD Command Read continuous address d A Read Response WD Command Write continuous address d fB Write response H Name RD Command Title Read continuous address data Packettype Send packet Packet construction information list RU Cormmand Read random address data f WU Command Write random address data No tern Data classification Datatype Jatalengtt Add EL Sequence information 1 STA Hea
61. Sen Communication test_ E Framing error Transmission receive packet details display Transmission receive packet list display tie Hl HW iat a i oo o s 333383 b HER Be HEH 13 3 Si5 3 2 3 ld E Receive packet Transmission test packet FF o o OFF OFF OFF OFF OFF oF OFF OFF Device controller JE DE Aaa Check communication control wires etc Refer to Section 9 4 for details Communication test 0241 4234354834355 74554544754595531 3241 4243440342 Setting Any packet data can be set and sent Refer to Section 9 3 for details 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 1 Module Selection We PURPOSE To select a module to be debugged Execute circuit trace communication test and or state monitor for the module selected here BASIC OPERATION 1 Click the Debug 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 button sets the module information DISPLAY SETTING SCREEN Module selection i x The present object module KO Address foo Module type QJ71C24N Channel cH Module selection Module list 1 0 Addre Channel specification QU71C24N Update QJ71C24N F2 JR Cancel j DISPLAY SETTING DETAILS Setting button Sets the selected mod
62. TION OPERATING PROCEDURE MELSOFT 5 Duplicate the packet information from the system project 2 Protocol FB support function L oj Project Edit View Debug support function Window Help Dal cut Cirl x O ti ng ay Copy Ctrl C pera ion a Past Chey wodiesetng Choose Edit Packet information Packet information d ew Packet information LSS a Duplicate Packet information amp Reading parameters Command 2 ISIC el ea a Ome Ome Reading parameters Command 3 f Renata PARERA amp Writing parameters Command 1 Le fB Writing parameters Response I wong part aan Lr From the system project select the sere ee aaa packet information similar to the protocol of the target device controller and duplicate it in the user project Delete Packet information ZZ Duplicate Packet information QI71C24N cap Non a x Duplicate Packet information E SS Set the packet information name of the o _ Baa duplication destination 6 Change the duplicated packet information into the user project 5 x Protocol FB support function Project Edit View Debug support function Window Help Dal cu Cirit Se w Copy GHEE Past criev Ei Module setting eet Operation Choose Edit Packet information Open packet data information Packet information g
63. a State Monitor 5 i x Object module 1 0 Address 00 Typef QJ 1C24N Channel CH1 Monitor stop Close Signal Error information Operation setting switch m Switch setting status for the operation Mode switch i i Ind dent PEE Aea GX Developer connection Data bit 8 bit Parity bit Yes Odd even parity Odd Station switch Stop bit 1 bit 0 Sum check code Yes Write during RUN Allowed Setting modification Allowed Communication rate 19200bps j DISPLAY SETTING DETAILS Display Setting Details Operation setting switch Displays the operation switch setting status Mode switch Displays the communication protocol setting Station switch Displays the station number setting For details refer to the user s manual of a target module pa MELSOFT 10 PRINT 10 1 Start ws PURPOSE To print the system project user project or trace data ED BASIC OPERATION Click the Project Print menu amp Setting details of each tab lt lt Main gt gt Select the item to be printed from among the module information project data and trace data lt lt Project data gt gt Select the details printing option when the project data is selected as the print item lt lt Trace data gt gt Select the details printing option when the trace data is selected as the print item Setting details of each t
64. ab Except the header and footer the printed data are the same as those of each function screen 1 lt lt Main gt gt tab DISPLAY SETTING SCREEN Print item Module information W Project data UserProject Trace data eterence Frint Frint preview Close ORNI MELSOFT E DISPLAY SETTING DETAILS Display Setting Details Select the item to be printed by checking the check box Module information The data set in the module setting are printed SER 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 Select the project data to be printed from the combo box Project data The projects displayed in the combo box are the currently open user project and the system project Unopened projects are not the targets Tae dii Specify the file name of the trace data to be printed Click the Reference button and select the trace data file Select the file name of the trace data to be printed button A i Click this button to display the dialog box Printer setting button Displays the printer setting dialog box button Executes printing button Displays the print preview button Closes the Print dialog box 10 2 10 2 10 PRINT MELSOFT 2 lt lt Project da
65. ables Output variables Data length Data length Module No OUT ST NO End code OUT EXE RESULT Character string 2 Response code Character string 2 OUT RES CODE Module No IN ST_NO Operating condition status OUT OPE STATUS Related information OUT_INFORMATION Character string 2 Label variable list Echo Back Test Command Echo Back Test Response Data type Data type Input variables Output variables Data length Data length Module No Module No ae OUT_ST_NO IN_ST_ NO aracter string 2 Character string 2 Response code Test data Character string 23 OUT RES CODE IN TEST_DATA 0 to 23 bytes Test data Character string 23 OUT TEST DATA 0 to 23 bytes 11 8 11 8 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 2 Model E5 O K series 1 Parameter read Command correspondence list Sequence Information Present value monitor Parameter read 1 Present value monitor Lamp target value monitor Parameter read 2 Lamp target value monitor Parameter read 3 Manipulated value heating Manipulated value heating monitor l monitor Parameter read 4 Manipulated value cooling Manipulated value cooling monitor l monitor Cooling coefficient Parameter read 18 Cooling coefficient Parameter read 19 Dead band Parameter read 20 Position proportional dead band Manual reset value Parameter read 21 Manual reset value Adjustment sensitivity heat
66. acket communication data on the line can be confirmed c State monitor The error status communication signal wire condition etc of the C24 module can be monitored 2 OPERATING ENVIRONMENT MELSOFT 2 OPERATING ENVIRONMENT This chapter explains the operating environment of the personal computer that uses the protocol FB support function Peripheral device Installation add in target 1 Add in to GX Developer Version 8 English version or later 2 3 4 Windows based personal computer Refer to the following table Operating system and performance required for personal computer Hard disk 65MB or more space 20MB or more Microsoft Windows 95 Operating System English version Microsoft Windows 98 Operating System English version Microsoft Windows Millennium Edition Operating System English version Microsoft Windows NT Workstation Operating System Version 4 0 English version Microsoft Windows 2000 Professional Operating System English version Microsoft Windows XP Professional Operating System English version Microsoft Windows XP Home Edition Operating System English version Microsoft Windows Vista Home Basic Operating System English version Operating system Microsoft Windows Vista Home Premium Operating System English version Microsoft Windows Vista Business Operating System English version Microsoft Windows Vista Ultimate Operating System English vers
67. ame is included in the calculation range Do not include the fixed data prior to error check code in calculation range lt In the case of Receive specified length packet gt 1 Header 2 Fixed data 3 Output variable Set the variable name that corresponds to the protocol FB output label after FB conversion compile Selection is disabled when the error check code is selected Select the data length of the item to be added or changed Selection is disabled when the error check code is selected When ASCII character string or ASCII Code is selected in Data type selection the data length can be set to 1 to 50 bytes However when the input variable or output variable is selected in Data type selection the data length than can be set is 1 to 49 423 Data length selection bytes Check Fixed length to achieve the data length set in Specified length after selection of the input variable or output variable When it is not checked the data length will be the variable length within the range set in Specified length However variable length setting is not available when Receive specified length packet is selected 7 SETTING OF PROTOCOL FB DATA MELSOFT 1 Horizontal parity 1 byte BIN can be set when using any of the following modules QJ71C24 QU71C24N R2 QJ71C24N R4 LJ71C24 or LU71C24 R2 2 Do not include the fixed data prior to error check code in calculation range can be set only when SUM 2 bytes ASC
68. and Variable Area Write Response Data type Data type Input variables Output variables Data length Data length Module No l Module No l IN_ST_NO Character string 2 OUT ST NO Character string 2 Write address IN_RED_ADR Number of elements Character string 4 IN_ELEM_NUM MAX Value 6 eono Write data Character string 48 OUT RES CODE Character string 4 IN_WRITE_DATA Number of E 7 1 element 8 bytes elements lt 8 bytes Character string 4 3 Operation commands Command correspondence list Command Sequence Information oo E Operation command 1 Communication write Communication write prohibited o prohibited o Operation command 2 Communication write Communication write allowed allowed Operation command 7 CH1 target value 0 CH1 target value 0 selection l selection Operation command 8 CH1 target value 1 CH1 target value 1 selection l selection Operation command 9 CH2 target value 0 CH2 target value 0 selection l selection Operation command 10 CH3 target value 1 CH3 target value 1 selection l selection 11 3 11 3 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Operation command 18 Soft reset Setting area 1 shift Operation command 19 Setting area 1 shift Operation command 21 CH1 auto Label variable list Operation Command Operation Command Response l Data type l Data type Input variables Output variables Data length
69. ar a T 3 7 2 1 Creating new packet information cccccccccseseeeccceeecaaeeseeceeeeeeseeeeseeeeeessaaeeeeeeeeeessaeaeeeeeeeseesssaaaeess T 3 7 2 2 Opening the packet construction INFOFMATION ccccseeeeeccceececeeeeeseeeeeeeeaaeeeeceeeeeeseaaeeeeeeeeessaaaeeeess 7 5 7 2 3 Setting the packet construction information cccccceeeeeeccccececaeeeeeeeeeeeesaeeeseeeeeeeessaaaeseeeeesessaaaeaeess 7 6 7 2 4 Setting the packet data information cccccccecccceesssseceeecceeceeaesseeeeeeceeeaaueeeeeeeeeeeaseeeeeesseeesaaaaaes 7 11 7 2 5 Duplicating the packet information c cccssccccccceeesssseceeeecceeessseeeeeecessausseeceeeseeeeaaseeeeeeseeeesaaaaaes 7 13 7 2 6 Renaming the packet information ccccccsssssseceeecccecessseceeecceeeaesseeeeeeseesaauseeeeeesesseaaseeseeeseeeesaaaaaes 7 14 7 2 1 Deleting the packet information 4 sh cscs see seercste oe seayouencdidoeseseaeewor ob utus alyoaun seleetsahvoues sels teneecancedcecaeee 7 14 TD SCQUCICS Noma x geiic cg sede aae e e aea Sactiacadaahicec Secu badeditne A E EA 7 15 7 3 1 Creating New sequence information cccccseecceeccceeessseceeecceceauseeeeeecessaasseeeeeeseseaasseseeesessaneaaaaes 7 15 7 3 2 Setting the sequence information cccccssessseceecccceeesseceeeececeauseeeeeeceeeaauseeeeeeseseaaaseeeeeeseesssaaaaaes 7 16 7 3 3 Duplicating the sequence information 1 0 0 ceeeeccccccceceeeeeeeceeeeceeaeeseeeeeeeeesaee
70. ation 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 Generic product name of the model names SWnD5C QSCU E and SWnD5C QSCU GX Configurator SC l EA n means Version 2 or later QJ71C24N QLJ71C24N R2 QLJ71C24N R4 LJ71C24 and LJ71C24 R2 Generic term for the external devices that communicate with the C24 modules FB that receives data from the device controller among the protocol FBs I O variable Label used in an FB FB variable Generic term for the following Microsoft Windows 7 Starter Operating System iaaseo Microsoft Windows 7 Home Premium Operating System Microsoft Windows 7 Professional Operating System Microsoft Windows 7 Ultimate Operating System Microsoft Windows 7 Enterprise Operating System Generic term for the following Microsoft Windows Vista Home Basic Operating System Microsoft Windows Vista Home Premium Operating System Windows Vista Microsoft Windows Vista Business Operating System Microsoft Windows Vista Ultimate Operating System Microsoft Windows Vista Enterprise Operating System Generic term for the following Windows XP Microsoft Windows XP Professional Operating System
71. ation Module User s Manual Basic 1 FB execution completion flag O_RUN is an output variable for interlock It is added from SW2D5C QSCU Version 2 14Q 8 HOW TO USE PROTOCOL FB MELSOFT The sequence program example that uses the send FB and its timing chart are shown below FB execution Set before FB execution FB abnormal end completion flag request turns ON notification FB end notification S ESZNCFBA SIIN_ST_WO Hide S 1H_READ_AOR 0_END E M11 SIIH_ELEM_ HUH 0_EHDO_HG E Miz O_ERR_CO W B21 _REQ_ SEND At error occurrence error code is output to outside FB execution request Send request Receive FB s FB execution completion flag FB execution request I_START Ri FB execution completion flag O_ RUN Send request REQ_SEND IN_ST_NO Set data Po Input variable setting lt IN_READ_ADR Set data Po IN_ELEN_NUM Set data o Send Send processing ay A FB end notification O_ END eee ee oe a FB abnormal end notification O_END NG 1 1 11 1 1111111111111111 11111 td ee Error code setting O_ERR_CD ic Error code a i gs MA EEE AAEE AAE ggg ee A E eee A EA A E A A A 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 V0 variable Input Output FB execution request
72. ation for various device controllers registered at installation of GX Configurator SC 4 4 1 System project tree AF User GE System PURPOSE To display the packet construction information packet data information and sequence information of various device controllers already entered ED BASIC OPERATION 1 Click the lt lt System gt gt tab in the project tree 2 The system project tree is displayed DISPLAY SETTING SCREEN FL OMRON E52N Qual Loop Modular Temperature Controller Ao OMRON ESER Digital Process Controller EX Yamatake DMC1O Distributed Multi channel Controller FL Packet information 2 a RO Command Read continuous address data 2 7 Read Response m a WO Command Write continuous address data 2 1 fh Write response AB RU Command Read random address data AB WU Command Write random address data El sequence information fe f AD Command Read continuous address data Ee WD Command Write continuous address data f RU Command Read random address data WL Command Write random address data 3 4 SCREEN DISPLAY MELSOFT J DISPLAY SETTING DETAILS Device controller name The entered device controller names are displayed 2 System packet information The system packet information names are displayed name 3 System sequence The system sequence information names are displayed information name
73. ble the user merely needs to perform FB conversion to create a communication control function block hereafter abbreviated to a protocol FB 2 Protocol FB support function E s a ed FEZ Project Edit View Debug support function Window Help alx amp Sequence information Write to Variable Area 11 Name z Write to Variable Area 11 End setup Title Settings area 0 Read write Cancel 3 A Unset project a Packet information Read from Variable Write to Variable Are 3 A Sequence information Read from Variable m Control type Read from Variable Read from Variable C Send Write to Variable Are C Receive Write to Variable Are Operation Commanc Send Receive Packet selection Project selection OMRON E5ZN Mf Packet name Write to Variable Area Command 1 1 Send 2 Receive Wrrite to Variable Area Response 1 3 4 Output protocol FB to GX Developer loj x Z Project Edit Find Replace Convert View Online Diagnostics Tools Window Help lej x osla a sele EE Ips A E HIS tel Paste protocol FB x R E52N FB3 x drag and drop fe T_ oUT_sT_No s p20 SA _ f8 INITSC pe T_REQ OUT_RES_CODE sHD25 R ESZN ef S ESZN OUT_READ_DATA S D30 M21 M22 0_ERR_CD IHD1 0_R_DATA N0
74. cket details display or transmission receive packet list display is provided For details refer to Section 9 2 3 Transmission receive packet list Matches the packets displayed in Transmission receive packets with the packet information of the currently open project and displays the details of the matched packets For details refer to Section 9 2 3 Transmission receive packet list Displays the list of packets displayed in Transmission receive packets on a packet basis For details refer to Section 9 2 3 Transmission receive packet list Closes the Circuit trace screen To set the monitor buffer area starting address and size of a module that stores the circuit trace data cy BASIC OPERATION 1 Click the Debug support function Circuit trace Circuit trace menu to display the Circuit trace screen 2 Click the Debug support function Circuit trace Circuit trace option menu to display the Circuit trace option screen 3 Set the Monitor buffer starting address and Monitor buffer size and click the button 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY SETTING SCREEN Circuit trace option x KO Address fon Module type ou7ic2an Channel JCH Monitor data area specification for Circuit trace Monitor butter starting adcdress HE Read VWirite Monitor buffer size HE f DISPLAY SETTING DETAILS Display Set
75. communicated with from among the sequence information in the system project tree AF User EE System Ready qu7iczan Nm 2 6 PROTOCOL FB CREATION OPERATING PROCEDURE MELSOFT Convert into a protocol FB ee i x Operation FB program is generated from the following contents Is it OK i FB program name R_DATA Cancel Click or choose Edit gt FB program title RD Command Reservation D device po Module start 1 0 No fo HEX m Object sequence information Sequence information FB conversion of sequence Name RD Command inform ation Title Read continuous address data Channel le on C Conmazain sating chek Input the FB program name etc and Project YYamatake DMC10 cl ick the button a Packet name No Classification 5 RD Command 1 Receive Read Response 1 This will create an FB program for the channel specified in Channel Protocol FB support function am The protocol FB and module initialization i Registration of a function block of sequence information was completed FB are inse rte d in to the lt lt FB gt gt tab O f GX Developer Inserted into GX Developer i MELSOFT series GX Developer C MELSEC Gppw testproject LD E Z Project Edit Find Replace Convert View Online Diagnostics Tools Window t osla a salele ARAA l ae ae xj i
76. ction 7 2 3 Section 7 4 Section 8 1 Section 8 2 Section 8 2 1 Section 8 2 4 Chapter 9 Section 9 1 Section 9 2 1 section 9 2 2 Section 9 3 Section 9 3 3 Section 9 4 Appendix 1 Appendix 2 Appendix 4 Appendix 5 Partial additions CONDITIONS OF USE FOR THE PRODUCT Appendix 6 Sep 2010 SH NA 080393E L Partial corrections Generic Terms and Abbreviations Used in This Manual Chapter 2 Section 3 1 Section 7 2 1 Section 7 2 3 Section 9 1 Section 9 4 Section 11 2 2 Japanese Manual Version SH 080377 N This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual 2003 MITSUBISHI ELECTRIC CORPORATION 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 programmable controller thoroughly in advance to ensure correct use CONTENTS SAFETY PRECAVTIONS asset Heat at oe nate eae cee ast sae ase ase E ah ens hee ase eect ee A 1 CONDITIONS OF USE FOR THE PRODUCT ccc oui oa ai a See A 2 BEVI SION Seriei oaoaraa ab se Sesh tp eats ak ds Scand Sh cacti ofa as she sasd ab a Lacccetanaaecad Lance A 3 ETNIES OIC TOON tose eats Pace a noe gaia nd
77. der ASCIICode 1 RD Command Read continuous address d 2 Station address Input IN_ST_NO ASCII 9 m z WD Command Write continuous address d 3 Subaddress Pic deta ASCII 9 Si RU Command Read random address data 4 Device ID code Fixed data ASCII 1 Edit ce WU Command Write random address data 5 Pommard Fixed data ASCII 5 z 6 Start data word address Input IN_READ_ADR ASCII 4 ee Numberofdataitems Input IN_DATA_LEN ASCII 4 8 ETX Fixed data ASCIICode 1 a 9 Checksum 2 s complement ASCII 2 eei 10 Terminai Terminater ASCIICode 2 Brennen Packet data information list AF User GE System Ready 1C24N CAP Num ISCRL 5 Project tree Status bar The following table indicates the names and functions Module setting packet construction information setting packet data Function screen information setting sequence information setting screens etc are available Displays various status Status bar Move the cursor over any of the buttons to display its guidance 4 SCREEN DISPLAY 4 2 Toolbar MELSOFT 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 The guide tool buttons display
78. e currently edited project Point Module information packet information and sequence information are saved into the project 5 3 1 Creating a new project PURPOSE To create a new project of the protocol FB support function The created project is inserted into the user project tree E BASIC OPERATION Click the Project New project menu Di Select the Module type on the New project screen Set the Project path Set the Project name Set the Title Click the button Anew project is created Project file name specification can be done either before or after program creation NOOR WD gt 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT DISPLAY SETTING SCREEN Create new project o g x Module type QJ71C2AN 7 setup project name i Setup project name Project path CAMELSEC OFEP SC Reference Project name TEST_PROGRAM Title fcommunicationtes cal _ f DISPLAY SETTING DETAILS Display Setting Details Select the module type to be used in the project Any of the following modules can be selected For QCPU Q mode Module type QU71C24N QU71C24N R2 QU71C24N R4 QJ71C24 QU71C24 R2 For LCPU LJ71C24 LJ71C24 R2 Project name setting Checking the check box enables input to the following items check box button Displays the project reference screen Set the path of the new pro
79. e setting Is there similar packet information in the system project No Create a new user project Step 2 With the packet information being selected create new packet Yes information 2 Duplicate the similar packet information from the system project Change the contents of the duplicated packet information into the user project Step 3 With the packet information being selected open the packet data information Set the packet data information information being selected create new sequence information 8 Select the packet data to be set to the sequence information 9 Step 5 With the sequence information being selected convert it into a protocol FB Refer to Section 6 4 Refer to Section 6 5 Refer to Chapter 9 The numbers 1 to 13 in the flowchart correspond to 1 to 13 shown in section 6 3 to 6 5 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 Protocol FB support function 3 i ioj x eae ae een k Starting the protocol FB support function Dah m e i BEEE selects the lt lt System project gt gt tab OMRON E5ZN Dual Loop Modular Temperature Ci a OMRON E5EK Digital Process Controller O Yamatake DMC10 Distributed Multi channel Control
80. e the initial setting of the module used with the protocol FB support Module setting function Section 7 1 Used at the time of protocol FB conversion Packet construction Set the packet construction elements message format of the device Section 7 2 3 information setting controller Packet data information Set detailed data to the construction elements of the packet construction Section 7 2 4 setting information to set the data for actual communication Set the communication processing control type send receive communication and the packet data that matches that type to set the Section 7 3 information for creation of a protocol FB Sequence information setting Convert the specified sequence information into a protocol FB The created protocol FB is inserted into the lt lt FB gt gt tab of GX Section 7 4 Developer FB conversion of sequence information 2 Debugging support functions Function outline Reference Section Traces the transmission receive packet data and communication signal wire condition Transmission receive packet details display The packet information is collated with the transmission receive data obtained by circuit trace and the details of each packet are displayed Transmission receive packet list display The obtained transmission receive packet data are displayed separately in lists on a packet by packet basis Save read of trace data Section 9 2 5 Saves reads the data obtained by circuit
81. e va ssh O hake ba obica a a A 5 CONTENTS iseseisana aa a eae lt as saa eset sabia lana dys aa A 5 AODOU CN Fe pW ke Sannin ne ane ete ae ere oe Re ee oe ger ne ee eee ee er ee are ren eee ve eee ee A 8 HOWO USS TIS Manuals aioe ata are co viele a oa whe waisd Solid cat dlc Seid oad hl inal Dai gadbabt N NEA A 9 Generic Terms and Abbreviations Used in This Manual ccccccccccescseeseeeeeeeeeeeeeeeeeeeeeeeesaaeeeseeeeeeeeaaaas A 10 1 OVERVIEW 1 1to1 4 OVS LS cacti Saat la Der te ek eee hats ecto Asta aaa ens a 1 2 2 OPERATING ENVIRONMENT 2 1to2 2 3 FUNCTION LIST 3 1to3 2 SEN TUE MO MN USNS eroian a onde aan eins nde boas altel nates in aban le atle fetched a au Sead 3 1 6 A MeMa LIS ca ee ne Oe eee nO nee ee Se ae re eee etre eee ae ee 3 2 4 SCREEN DISPLAY 4 1to4 6 72 Males gt ai Blo play ene eet en eon men nee ee nn en een ee eon eee ee eae E ne een ee ee 4 1 A2 MOOI albedo eae te aeeeagatesae a e e a tec aeae etc tage a ae e ea a a A 4 2 Ao SUS BAT eain EE E EE E E 4 3 A Ari NO EC O O sozioa eaaa a aaia aaia iaaa aai 4 4 4 4 1 System project Tee een eer ee ee eee 4 4 AZ USer project TEE reuera a a N eee 4 5 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION 5 1to5 8 5 Starting the Protocol FB S pport FUNCION srecna nea A A AG EE GS 5 2 5 2 Exiting the Protocol FB Support FUNCTION irasan a a a aaa i 5 3 co ro Creatng a el 7 Rene meee ae ne a oe roe a ee Ue ae oe eee ae ee
82. ee 9 15 Project NAME cccccsesseeeeceeeaseeeeeesenseess 9 12 Y signal state monitor cc eeeeee cece 9 15 Packet information list cccccceeeeeeeees 9 12 RS 232 signal monitor cc eeeeeeeeeee eee ees 9 15 Pasting the protocol FB to the sequence program SUS BAM see tuver vied bhcutathiannedeutasieiotenansbrateueriik 4 3 EEL E T AE A AE A A E ETT 8 3 Supported Device Controller List 11 2 Pra N A 10 1 System project tree ccccccsssssssssseeeeeeeeees 4 4 Print Examples cccccssssseeeeeseeseeeeeees 10 8 Project Name Specifications App 2 T FPFOLOCOWE DB scscsherhstasichsiant tisteaistsecnitabecsaaiahcees 1 2 POOH UTM 2 222c5 ce2ec8 staccrttat ce Sci iaren 4 2 Protocol FB support function Function List 0 cccsccscessseseeesesseeeeeeeees 3 1 U Project function list eee eeeceeeeeeeeee eens 5 4 User project tree ccccccccssseeeeeseeseeeeeeeeees 4 5 Creating a new project ccceceeeeeeeeeeees 5 4 Opening the project s 5 6 V Closing the project ccccccesssssssseeeeees 5 6 VErSIO Mea tae icsnaaaaee davai App 8 Saving the project ccccccceecssssssseeeeees 5 7 Delete project cccccccccccccsssseeeeeseeseeeeeees 5 7 R RECEIVE FD aeia aa gee 8 7 Renaming the packet information 7 14 Renaming the sequence information 7 20 Receive
83. eeeeeeeeesaaaas 8 10 Oo WOGUIC S ClOCION 425 uated aes ai ie ae ec a ee eee ee 9 2 XZ CINCOM TACO 22a srccccsink cet cstsh cose ol cata aecs sed at oc Sastahse Stal ot cr Sasa a hes catd hob scas Saal ah desesl ob ac Sal Shee te 9 3 9 2 1 Starting the circuit Tace etiss oe cies ces dee eonielcoes acdsee a a EO EEEa OEE EAA EEA a aa 9 3 9 22 CIC A ACCC OM M tasisi a a a aa 9 5 9 2 3 Transmission receive packet liSt c ccccsssssccceccceeessseeceeecceeeesseeceeeccseaaaeeceeeceesaeaaseseeeessseeeaasseeeeess 9 7 927A Opening the Circuit Trace Meric a a idee id ee es 9 9 92o SAVING iNe CINGUIL Tace ME sizien nni EE E a aaa ea 9 9 A 6 A 6 QS COMMUNIC ATIORY Ue Ss rccsac eta aes a a snore ance nonce avec raters havoc ane NNA aide ave tins aoe aeiana sae tens 9 10 9 3 1 Communication test after direct INDUt cece cccccccccssssseceeecceeeessseeeeeecceesaasseceeeeseeseaaeeeeeeseseesaaaaees 9 10 9 3 2 Communication test after selection of packet data ccccccccecseececeeeeeeeeeseeeeeeeeesaeeseeeeeeeesaaaaseeees 9 11 9 3 3 Transmission Monitoring time designation cccccceeeeeeccceeecceeeeeeeeeeeeeeeseeeeeeeeeesssseaaeeeeeesessaaaaaeees 9 13 AE ANS MONO seas at alst ate pacer atec a a feta e aaae S A eee va esac snus neck segacemnenees 9 14 10 PRINT 10 1 to 10 9 TO E cer rete resem i en ose E noe ceo oe Pen ot OR oa ee eno ee eon 10 1 10 2 Operations COMMON 10 SCLEONS isidis aa ec dan a cid an KN EAE eas E
84. em startup time debugging can be performed with this software only FB support function Sequence program Select system project poeme pora neat Sa Por DiS 8 1lael L Calas lt a ale Ged Y EFE wi wl mien Elo gly S e Hele s Ha mhla HARA hal B reterropc tm SBA reson to gre FB conversion Ssss TESSE Receive packet C24 Send packet gt Device controller Circuit trace E 2 Circ Object module 1 0 Address 00 Type QJ71C24N Channel CH1 Monitor stop Close Object module 170 Address 00 Type QJ71C24N Channel CH1 Signal Error information Operation setting switch ASCI Receive packet HEX 40 30 30 32 30 32 30 44 30 34 ASC 0 0 2 0 2 0 0D 0 4 CH1 Mode switching request r request RS signal ER signal 14 Notification issued request _ DR signal Flash ROM read request Flash ROM write req CS signal CD signal Reception error m RS 232 signal ats psR pTR The project name for matching Transmission receive packet details display 1 OVERVIEW MELSOFT 1 1 Features 1 Automatic creation of communication control program function blocks Reduced work for creating sequence for communication controll Since data for various device controllers are availa
85. esseeeeeessseaaeseeeeeeessaaaageees 7 19 7 3 4 Renaming the Sequence INfOrMALION ccccccccccceessseeeeeeccceesseeeeeeceseeaaseeeeeeseeeeaaseeeeeeesseaeaaaaaes 7 20 7 3 5 Deleting the sequence information cccseesseeeeecceeeessseceeecceseaauseeeeeeceseaauseeeeeesssseaaseeeeeesseeseaaaaees 7 21 723 0 COnmmminG Te WO VWanlaDleS aiia cee cece er aed cee lees eee acide 1 22 7 4 FB Conversion of Sequence Information ccccccsssssseeeeeccceeecsseeeeeeceeeaaseeeeeeceseeaaseeeeeeesseaaaseeeeeneesseaas 7 23 ol CONG eaeeeere eter remotes Ue re TC a y ere eer Reno ee Seer rere eae teeter menerer ete torr 8 1 8 2 How to Use Protocol FBs on GX DeVelOpe ru cceececcccceeccaeeeeeeeeeeeecaeeeeeeeeeeeseaaeeeseeeeeeeseaeaeeeeeeeeeeeeaas 8 2 9 2 Module Start TO NO GETING eoa a a E cast paasanes oneal N A 8 2 8 2 2 Converting compiling the protocol FB whose module start I O No was Set ccccceeeseseeeeees 8 3 8 2 3 Pasting the protocol FB to the SEQUENCE program cccccccseesseecceeeeceaeeeeeeeeeeeesaeeseeeeeeesssaaaaeeeeeees 8 3 8 2 4 Creating the I O areas of the pasted protocol FBS cc ccccecccccceccceeeeseeeeeeeeeeaeeseeeeeeesesaaaaeeeeeeeees 8 4 8 2 5 Converting Compiling the SEQUENCE program cccccccccssseseeeceeeeeceueeseeeeeeeeesseaseeeeeeeessuaaaeeeeeeeees 8 9 8 3 Sequence Program Example Using Protocol FBS ccccccccccecccceeeeeaeeeeeeeeeeeeeeeeeeeeeeeeeeessaae
86. eter write 68 Remote SP lower limit value SP tracking Parameter write 69 SP tracking Label variable list Parameter Write Command Parameter Write Response Data type Data type Input variables Output variables Data length Data length dodici Module No ae R odule No aracter strin Character string 2 OUT_ST_NO g 2 IN_ST_NO Parameter No OUT PARAM End code Character string 4 OUT _EXE_ RESULT Write data OUT _WRITE_DATA Write data IN WRITE_DATA Character string 4 11 13 11 13 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 3 Special commands Command correspondence list 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 Soft reset Special command 8 Soft reset Special command 9 Status Label variable list Special Command Special Response l Data type l Data type Input variables Output variables Data length Data length Module No Character string OUT_ST_NO 2 Module No Character string IN_ST_NO Parameter No Character string OUT_COMMAND 2 End code Character string OUT_EXE_RESULT 2 Command code Character stri
87. ethod 1 Method for receiving data of fixed length using head frame For details refer to the Serial Communication Module User s Manual Application b Added functions in Version 2 14Q With upgrade from Version 2 13P SW2D5C QSCU to Version 2 14Q SW2D5C QSCU the following functions are newly added to GX Configurator SC Output variable O_ RUN for interlock which prevents the send execution Output variable is added to protocol FB before completing the preparation for module initialization FB send FB Section 8 2 4 and receive FB is added App App 7 APPENDICES MELSOFT c Added functions in Version 2 21X With upgrade from Version 2 20W SW2D5C QSCU to Version 2 21X SW2D5C QSCU the following functions are newly added to GX Configurator SC Addition of applicable CPU Now compatible with LO2CPU and L26CPU BT Addition of target modules Now compatible with LJ71C24 and LJ71C24 R2 Section 3 1 2 Checking the GX Configurator SC software version Check the version within the GX Developer product information Help Product information GE Programming and Maintenance tool Pd Gx Developer Version 8 12N S W8D5C GPPW E COPYRIGHT C 2002 MITSUBISHI ELECTRIC CORPORATION ALL RIGHTS RESERVED This Product is licensed to Name MITSUBISHI Company MITSUBISHI ELECTRIC CORPORATION The GX Configurator SC version PoduttD IS displayed in this section EH List of version information on
88. formation and their transmission procedures Sequence information In the sequence information the data compatible with the commands of the supported models have been set Also the label variables necessary for achieving various commands in FBs have been set When a communication control program is created on the GX Developer side the values that match the application and purpose must be set to the label variables The next section gives the supported model list the tables that indicate correspondences between the supported model commands and sequence information and the label variable lists The following denotes how to use the lists in the next section Function name 1 1 correspondence Pp Command Sequence Information List of the I O variables used with the function All sequence information in the function uses the same I O variables Variable Area Read Command Variable Area Read Response Datatype Datatype Input variabil Output bariabl Data length Data length Module No Character string 2 ModuleNo OUT STNO Character string 2 IN_ST_NO MA endieode OUT EXE RESULT Read address Response code IN READ ADR OUT RES CODE Character string 2 Character string 2 Character string 4 Data read Character string 48 OUT _READ_ DATA Number of 1 element 8 bytes elements x8 bytes Number of elements Character string 2 IN ELEM NUM MAX Value 6 11 1 11 1 11 SEQUENCE INFORMATION AND LA
89. ify the final data of each packet when the C24 module receives and processes the packet data array sent from other node The following shows the combination of end judgment data e Terminator only e Fixed data only e Fixed data error check code For example CR code ODH and ETX code 03H data can be used as end judgment data 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 2 2 Opening the packet construction information We PURPOSE To 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 Section 7 2 5 Duplicating the packet information ED BASIC OPERATION 1 Click the Edit Packet information Open Packet construction information menu E 2 The Packet construction information screen is displayed 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 2 3 Setting the packet construction information We PURPOSE To 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 _ Click the Edit Packet information Open Packet construction information menu 7 The Packe
90. ing Parameter read 22 Adjustment sensitivity heating Adjustment sensitivity cooling Parameter read 23 Adjustment sensitivity cooling Position proportional dead band Error time manipulated value Parameter read 32 Error time manipulated value l a Parameter read 33 Manipulated value upper limit Manipulated value upper limit value ue value l an Parameter read 34 Manipulated value lower limit Manipulated value lower limit value Jue value Parameter read 35 Operation change ratio limit Operation change ratio limit value value 11 9 11 9 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT compensation value compensation value compensation value compensation value Decimal point position Parameter read 63 ST settling band width a Parameterread esp o Remote SP lower limit value Parameter read 75 Remote SP lower limit value SP tracking Parameter read 76 SP tracking 11 10 11 10 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 11 11 Label variable list Parameter Read Command Parameter Read Response Data type l Data type Input variables Output variables Data length Data length Module No OUT_ST_NO Character string 2 Parameter No Module No l OUT_PARAM Character string 2 IN_ST_NO End code OUT_EXE_RESULT Read data OUT_READ Character string 2 Character string 2 Character string 4 2 Parameter write Com
91. ion Microsoft Windows Vista Enterprise Operating System English version Microsoft Windows 7 Starter Operating System English version Microsoft Windows 7 Home Premium Operating System English version Microsoft Windows 7 Professional Operating System English version Microsoft Windows 7 Ultimate Operating System English version Microsoft Windows 7 Enterprise Operating System English version 1 Install GX Configurator SC in GX Developer Version 8 or higher in the same language GX Developer English version and GX Configurator SC Japanese version cannot be used in combination and GX Developer Japanese version and GX Configurator SC English version cannot be used in combination 2 The protocol FB support function cannot be used if it is added into GX Developer Version 7 or earlier 3 To use LCPU and L Series C24 use GX Developer Version 8 89T or later 4 To install GX Configurator SC to a Windows 7 based personal computer use GX Developer Version 8 91V or later 5 Resolution of 1024 x 768 dots or more is recommended for Windows Vista or Windows 7 Point For precautions in installation of GX Configurator SC for each operating system refer to Method of installing the MELSOFT Series included in the utility package For Windows Vista and Windows 7 refer to the technical bulletin Installation procedure precautions and corrective actions for problems regarding Windows Vista
92. ite to Variable Area Command Operation Commands Command T Read Monitor value Command T Read Setting Data Command Write Protect Level Command Write Setting Data Command T Read Attribute Command Read Controller Status Command A Echoback Test Command f DISPLAY SETTING DETAILS Display Setting Details Select the project name Packet information list Displays the packet information button Selects the send packet and closes the screen DISPLAY SETTING SCREEN Communication test data input a x Projectname OMRON ESZN Name Read Setting Data Command Cancel Comment Packet details information SRC Variable type Address Bitposition No of elements ETX BCC ais AB 1000 45 4561 ET Horizontal parity 1 byte BIN Ki gt E DISPLAY SETTING DETAILS Display Setting Details Displays the selected project name Packet details information Set the packet details information button Determines the setting and closes the screen 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 3 3 Transmission monitoring time designation We PURPOSE To set the transmission monitoring time to a module If receive is not completed within the set time a send or receive error occurs BASIC OPERATION 1 Click the Debug support function Circuit trace Circuit trace menu to display the Circuit trace screen 2 Click the button on the Communication test screen The
93. ject Project path The usable number of characters is within 150 characters including those of the project name Set the name of the new project The usable number of characters is within 32 characters Note that the project name cannot be set if the number of characters including that of the project path exceeds 150 Set the title of the new project Project name Refer to Appendix 2 for the restrictions on the names such as the project name to be set 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5 3 2 Opening the project We PURPOSE To read the existing project EL BASIC OPERATION 1 Click the Project Open project menu E 2 Click the project name 3 Click the button 5 3 3 Closing the project 5 PURPOSE To 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 Click the button to save and close the project Click the button to close the project without saving it 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5 3 4 Saving the project We PURPOSE To save the currently edited project file E BASIC OPERATION 1 Saving the project over the old one 1 Click the Project Save menu E 2 The current
94. lated is displayed when stopping Display setting button The circuit trace is stopped and the data already accumulated are read and displayed button The dialog box closes However the trace is in the execution status 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY SETTING SCREEN Circuit trace sample QJ71C24N Object module I O Address 00 Type QJ71C24N Channel CH1 40 30 30 32 30 32 30 30 36 34 3 32 2A OD Send packet HEX ASCII 0 0 2 0 2 0 0 6 4 7 2 Receive packet HEX 40 30 30 32 30 32 30 44 30 34 ASCII 0 0 2 0 2 0 D0 4 RS signal mn m nam mn m mam mn m mam mm m mam mm ma mam m m ma m ma ma m ma ma mn a ma ma m ma m m ma m m man m a ma m m ma m a m m m a m a ma m m ma m m ma m m a mn a ma ma a ma m m ma a a a m O ER signal mn m nam n m mam am m mam mm m mam m m mam mn m mam n m ma m m ma m a ma mn m ma m m ma m m ma mn m ma m m ma m m ma s m ma m a ma mn m ma m m ma m m ma m a m m a ma m m ma m a a m M DR signal mn m mam mn m mam mm m mam mm ma mam mm ma mam m a ma m ma ma m m a ms m ma m a ma m m ma m m a m a ma m a m m m m m m a n a M m m m m m m a a a man a m ma n m ma m m a a a m I CS signal SS ial signal Ne a a Reception error Error Display SS Overun eror The project name for matching Start Communication test Parity error Framing error Transmission receive packet details display Transmission receive packet list display
95. le User s Manual Basic Explains the outline applicable system configuration specifications pre operation procedure basic data SH 080006 communication method with the other device maintenance inspection and troubleshooting for use of 13JL86 the module Sold separately MELSEC L Serial Communication Module User s Manual Basic ee SH 080894ENG Explains the specifications and usage of the module s special functions the settings for use of the 13JZ40 special functions and the method of data communication with the other device Sold separately Serial Communication Module User s Manual Application OE SH 080007 Explains the specifications and usage of the module s special functions the settings for use of the 13JL87 special functions and the method of data communication with the other device Sold separately MELSEC Communication Protocol Reference Manual SH 080008 Explains how the other device performs read write etc of PLC CPU data by making communication in 13JF89 the MC protocol using the serial communication module Ethernet module Sold separately GX Developer Version 8 Operating Manual Startup SH 080372E 7 Explains the system configuration installation method and startup method of GX Developer 13JU40 Sold separately GX Developer Version 8 Operating Manual l l SH 080373E Explains the program creation method printout method monitor method debugging method etc using 13JU
96. length packet The packet type cannot be changed after packet information creation 7 SETTING OF PROTOCOL FB DATA Point 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 e Header Any data End judgment data MELSOFT Receive packet example Header Any data Sna luagment data Terminator fixed data or fixed data error check code For setting restrictions refer to Point in Section 7 2 3 Q series C24 Other node module 2 Receive specified length packet Specify this type to create a receive frame with fixed packet length header and no end judgment data The following shows the construction of the receive specified length packet supported by GX Configurator SC e Header Any data i Receive specified length packet example Specified length byte Q series C24 module Other node 1 Any data indicates the data located behind header of the packet sent from other node or between the header and end judgment data This data can be omitted Fixed data and output variables are used as any data when receiving data 2 End judgment data is used to ident
97. line Diagnostics Tools Window Help la x 1 ero a onal al Operation a Close project S 3 elel mlel H 45 H 4 g H Fo ste fs ES d 4 pi aa as ods zo Fe E i zo Terrero Choose Project Function Block gt Delete project j a _ 6 ee FB Change module address Edit Data LSTAPT Sa sT Change PLC type ay fee Import file J a poorte pe amase The protocol FB has been created with Printer setup Print Ctrl P the C24 module installed on Slot O If it is not installed on Slot 0 change the module head O 1 C data RS232C1 2 C data FBTestProject_ESZN 3 testproject 4 Ci dataRS Start new GX Developer session Exit GX Developer TT Module start address setting e x Operation OK FBName fNiTSC TE Input the module head I O where the Cancel E Earlier module start address HEX o E C24 module is installed New module start address HEX 10 The example assumes that the module It changes the module start address of Function Block definition Device X V DX DY U is installed on Slot 1 11 Convert compile the protocol FB if MELSOFT series GX Developer C data RS 232C1 FBLD Edit mode INITSC Initial FB SC o x Project Edit Find Replace Convert View Online Diagnostics Tools Window Help 5 x O pe rati on allaltal ir c BE PL Je 1 Convert compie l z HAE al coea tempi All aeai edited Alt ctrl F4 T x iia tk tk m 4p
98. ly edited project file is saved over the old one 2 Saving the project with a name 1 Click the Project Save as menu 2 Set the Project path and Project name 3 Click the button 4 The currently edited project file is saved with a name 5 3 5 Deleting the project of the protocol FB support function 4 PURPOSE To 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 button 4 As the project deletion confirmation screen is displayed click the button 5 The project is deleted 5 START AND END OF PROTOCOL FB SUPPORT FUNCTION AND PROJECT CREATION MELSOFT 5 3 6 Changing the module type We PURPOSE To change the type of the preset C24 module E BASIC OPERATION 1 Click the Project Change module type menu 2 Select a new module type 3 After the setting is completed click the button The module type is changed DISPLAY SETTING SCREEN Change module type On x Module type QJ71C24N O71 C24h J gt DISPLAY SETTING DETAILS Select a new module type Any of the following modules can be selected For QCPU Q mode Module type QJ71C24N QJ71C24N R2 QJ71C24N R4 QJ71C24 QJ71C24 R2 For LCPU LJ71C24 LJ71C24 R2 When the module type is changed the following data return to the default values
99. mand correspondence list Dead band Parameter write 13 Dead band Parameter write 14 Position proportional dead band Manual reset value Parameter write 15 Manual reset value Parameter write 16 Adjustment sensitivity Position proportional dead band Adjustment sensitivity heating heating Error time manipulated value 11 11 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Command Sequence Information a Parameter write 26 Manipulated value upper limit Manipulated value upper limit value ue value Parameter write 27 Manipulated value lower limit Manipulated value lower limit value value Parameter write 28 Operation change ratio limit Operation change ratio limit value value Upper limit temperature input Parameter write 34 Upper limit temperature input compensation value compensation value Lower limit temperature input Parameter write 35 Lower limit temperature input compensation value compensation value ST Parameter write 55 ST STO a Parameter write S7t p S AT hysteresis Parameter write 61 AT hysteresis Parameter write 64 Travel time 11 12 11 12 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT 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 Param
100. mission Dege 13h 1h DCZDC4 contol Nocontrol No contol DCZcode imn ihn DC4eode im im Communication CO terminal check Nocheck Mocheck control Communication system Full duplex Full duplex Simultaneous Half duplex transmission e 0 7 00m 0 7 00m communication Priority non priority control Retransmission time Rane Eon Do not resend Do not resend Bete m monitorin i nooo 0000h communicator ton time montornng e 1800 1 00m 1800 1 00rms Transmission buffer caooh o800h memar head address Mode switching 2 Transmitting area 7 SETTING OF PROTOCOL FB DATA MELSOFT E DISPLAY SETTING DETAILS Display Setting Details Set the setting items of the module The input methods are as follows Decimal 0 to 9 Hexadecimal 0 to 9 Ato F a tof Set the used channels in the check boxes The module can be initialized using either of the module initialization FB and module initialization by intelligent function utility hereafter abbreviated to the module initialization by utility Note the following points since the initialization timing differs Module initialization FB Initializes the module when the module initialization FB is executed Use this FB to initialize the module during program execution Module initialization by utility Initializes the module when the CPU is reset Since matching with the protocol F
101. mmand Cancel Title Read continuous address data j DISPLAY SETTING DETAILS Display Setting Details Displays the target name Set a new name Changed name oe The usable number of characters is within 32 characters Title Set the title i The usable number of characters is within 32 characters 7 2 7 Deleting the packet information 3 PURPOSE To delete the packet information When the packet information to be deleted is used in the sequence information the data entered in the sequence information is deleted Execute this function after changing the data of the sequence information BASIC OPERATION 1 Click the Edit Packet information Delete packet information menu 2 A confirmation message is displayed before the deletion of the packet information is executed Click the button to delete the packet information 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 ey PURPOSE To create new sequence information New sequence information cannot be created in the system project Execute this function in the user project BASIC OPERATION 1 Select Sequence information in the project t
102. mmands Command correspondence list Label variable list Set Data Read Command Set Data Read Response Data type Data type Input variables Output variables Data length Data length Module No Module No m r OUT ST NO Character string 2 IN_ST_NO aracter string 2 Address Response code Character string 4 OUT _ RES CODE Set data OUT _ SET DATA IN READ_ADR Character string 8 11 5 11 5 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 6 Protection level Command correspondence list Sequence Information CH1 operation adjustment Protection level setting 1 CH1 operation adjustment CH1 initial communication Protection level setting 2 CH1 initial communication Label variable list Protection Level Command Protection Level Response Data type Data type Input variables Output variables Data length Data length Module No Module No ae PO J OUT ST NO Character string 2 IN_ST_NO aracter string 2 Protection level set data Character string 8 Response code IN PROT LEVEL OUT RES CODE Character string 4 11 6 11 6 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 7 Set data write Command correspondence list 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 a
103. n of the initialization processing Also turns ON at abnormal completion FB abnormal end notification O END NG Output Turns ON at abnormal completion only 1 FB execution completion flag O RUN is an output variable for interlock It is added from SW2D5C QSCU Version 2 14Q 8 HOW TO USE PROTOCOL FB MELSOFT The sequence program example that uses the module initialization FB is shown below FB abnormal end notification FB execution FB end notification request INITSC FBI OQ RUN B O FND B O END_NG E 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 Data can be sent using these I O variables and the input variables set in the sequence information Description Input Output fs foe Se Sid p sana arson of send preparation FB end notification O END Turns ON at completion of send Also turns ON at abnormal completion Apu FB abnormal end notification O_END_NG Turns ON at abnormal completion only sai a Error code The error code at abnormal completion is stored O ERR_CD For details of the error codes refer to the Q Corresponding Serial Communication Module User s Manual Basic or MELSEC L Serial Communic
104. n the PRODUCT e Railway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User e Aircraft or Aerospace Medical applications Train equipment transport equipment such as Elevator and Escalator Incineration and Fuel devices Vehicles Manned transportation Equipment for Recreation and Amusement and Safety devices handling of Nuclear or Hazardous Materials or Chemicals Mining and Drilling and or other applications where there is a significant risk of injury to the public or property Notwithstanding the above restrictions Mitsubishi may in its sole discretion authorize use of the PRODUCT in one or more of the Prohibited Applications provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail safe redundant or other safety features which exceed the general specifications of the PRODUCTs are required For details please contact the Mitsubishi representative in your region REVISIONS The manual number is given on the bottom left of the back cover Print Date _ Manual Number Jan 2003 SH NA 080393E A First printing Jun 2003 SH NA 080393E B Feb 2004 SH NA 080393E C Sep 2004 SH NA 080393E D Partial corrections Section 6 3 Section 7 1 Section 7 2 3 Section 7 4 Section 8 2
105. nction is executed on the system project side the sequence information is inserted into the user project ED BASIC OPERATION 1 Click the Edit Sequence information Duplicate sequence information menu 2 Set the Reproduction name and Title and click the button The sequence information is duplicated DISPLAY SETTING SCREEN Duplicate Sequence information 3 a x Target name Read from Variable Area Reproduction name Read from Variable Area Cancel Title settings area U Readc only j DISPLAY SETTING DETAILS Display Setting Details Displays the target name Set the reproduction name Reproduction name nn The usable number of characters is within 32 characters Title Set the title i The usable number of characters is within 32 characters 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 3 4 Renaming the sequence information We PURPOSE To rename the sequence information E BASIC OPERATION 1 Click the Edit Sequence information Rename sequence information menu 2 Set the Changed name and Title and click the button The sequence information is renamed DISPLAY SETTING SCREEN Change the sequence information n x Target name Read from Variable Area 5 Changed name Read from Variable Area 1 Cancel Title Setings area MRead onk E DISPLAY SETTING DETAILS Display Setting Details Displays the target name
106. nd notification nee eececee ec eeeeeceeeececeeeeeeeeeteteeeeeeeeeeeeeed ciate See O_END_NG O Erorcodeseting O ERRCD ne Error coe JF Receive request REQ _RECV it Receive processing ea ing Ne Receive FB end notification OQ_END Receive FB abnormal end notification oo cece nee nnnneennnceeceeeeceeccccccccccsssnneeseneeeeeeeeeeed h MENAR tousetoaeane O_END_NG i Receive data No setting Receive division No O_R_DATA_NO Error code setting O_ERR_CD ae Error code oe ETE E E E E E E E E E sim T oh T T AT T a E E ml oy lye wp 8 wef O Send FB processing Receive FB processing 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 DEBUGGING SUPPORT FUNCTIONS The debugging support functions are designed to support the debugging of communication processing with 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 Sequence program a _ an a GX Configurator SC C24 State monitor a a Trace data accumulated in buffer memory are displayed a Refer to Section 9 2 for details Buffer memory Transmission receive packet data and communication control signal status are accumulated in buffer memory Monitor data area Data are read from buffer memory Circuit trace i Qvermun error The project nome for matching
107. ng IN_COMMAND_CODE 4 Command code Character string OUT_COMMAND_CODE 4 11 14 11 14 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT 11 2 2 YAMATAKE make 1 DMC10 series Command correspondence list Command Sequence Information Fixed length continuous data read Fixed length continuous data read RD command command RD command Fixed length continuous data write command WD command Fixed length continuous data write WD command Fixed length random data read Fixed length random data read RU command command RU command Fixed length random data write Fixed length random data write WU command command WU command Label variable list Fixed length Continuous Data Read Data Read Response Command Data type Data type Input variables Output variables Data length Data length Device address Device address IN ST_NO Character string 2 OUT ST NO Character string 2 Head data Word address Character string 4 IN READ ADR End code OUT RESULT CODE Read data Character string 48 OUT READ DATA Number of data x4 1 data 4 bytes bytes Number of data Character string 4 IN DATA_LEN MAX 12 data Label variable list Fixed length Continuous Data Write Data Write Response Command Data type Data type Input variables Output variables Data length Data length Device address ae erel Device address IN_ST_ADR AAEE SENGE OUT_ST_NO Head data W
108. nto the NAME field of the packet data information list 4 Set the detailed data of the construction elements set in the packet construction information When the data type is ASCII Code the ASCII Code input dialog box is displayed The grayed areas need not be set since the data of the input output variables input output variables of FB set in the packet construction information setting are inserted 5 Click the button to entry the data DISPLAY SETTING SCREEN Packet data Read from Variable Area Command Se Read from Variable Area Command Name Title Read continuous address data Packet type Send packet Packet data information list No NAME STX SRELERT 1 BIER EaisCieeenigee oT IN_ST_NO L 2 Settings area 0 Read write STX IN_ST_NO oo o or 0 CI IN_F 3 Settings area 1 Read write STX IN_ST_NO oo o j o1 01 C3 IN_F El IN_ST_NO IN_F 5 IN_ST_NO IN_F 6 IN_ST_NO IN_F IN_ST_NO IN_F 8 IN_ST_NO IN_F 9 IN_ST_NO IN_F 10 IN_ST_NO IN_F 11 IN_ST_NO IN_F 12 IN_ST_NO IN_F 13 IN_ST_NO IN_F 14 IN_ST_NO IN_F IE IN_ST_NO IN_F 16 IN_ST_NO IN_ lif IN_ST_NO
109. odule initialization FB Mode switching Stop bit 1bit Sum check code No Transmission speed 300bps For details refer to Section 7 1 Module DTR DSR control DTR DSR Setting DC1 DC3 control No control e INQ T TAR DC1 code 11h ransmission DC3 code 13h control DC2 DC4 control No control DC2 code 12h DC4 code 14h Communication CD terminal check Check control Communication system Full duplex Simultaneous Half duplex transmission 0 x100ms communication priority non priority control Retransmission time D oe onotresend C transmission method 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 c Sequence information Entry the data to be transmitted By performing the FB conversion of this sequence information a protocol FB for communication of the entry data is created The following shows the set data that comprise send and receive FBs Sequence information FB formation seem FB afe f o f e oo io l Sr noman Jy Fa 6 PROTOCOL
110. oject When this function is executed on the system project side the packet information is inserted into the user project ED BASIC OPERATION 1 Put the packet information to be duplicated in a selected condition and click the Edit Packet information Duplicate packet information menu 2 Set the Reproduction name and Title and click the button The packet information is duplicated DISPLAY SETTING SCREEN Duplicate Packet information o x Target name Read from Variable Area Command Reproduction name Read from Variable Area Command Cancel Title Read continuous address data f DISPLAY SETTING DETAILS Display Setting Details Displays the name of the target packet Set the name of the reproduction packet Reproduction name R The usable number of characters is within 32 characters Title Set the title i The usable number of characters is within 32 characters 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 2 6 Renaming the packet information We PURPOSE To rename the packet information ED BASIC OPERATION 1 Click the Edit Packet information Rename packet information menu 2 Set the Changed name and Title and click the button The packet information is renamed DISPLAY SETTING SCREEN Change the pakcket information a 4 x Targetname Pead trom Variable Area Command Changed name Read from Variable Area Co
111. onversion of Sequence Information 7 23 G Guide tool DUttONS ec ececceseeeeeeeeeeeeees 4 2 H HEID FUNCUON erdre eienen iaieiaientestvaus App 1 How to input ASCII code cceeeecceeee ee eeees 7 12 I Input Output variable ce eeeeeceeeeeeeeeeeees 7 22 L Label variables of system project 11 1 M VIG IS aioin a egotacendsesace 3 2 Module initialization FB ccceccceeeeeeeeees 8 4 Module mounting I O No setting 8 2 Module selection for debugging support functions EEEE EEE E PE E santa aoe E anata e nie 9 2 Module selection screen The present object module 06 9 2 Module Selection ccccsccccessseeeeeeseeeees 9 2 MOGUIG NSE scant tatu eie 9 2 Channel Specification cccccceeeseeeeeees 9 2 Module Setting cccccccssssssseeeeeeeeesssseeeeees 7 1 O Opening the circuit trace file ccee 9 9 Opening the packet construction information EAE aac aunt E OA EAE cana oan anita 7 4 Operating procedure Use of System project cc cceeeeeeeeeeeeeeeees 6 4 Use of user project cccccccsssssseeeeeeeeeees 6 6 Creating communication control program on GX Developer ssicsstadiasciechidapsusth aba nace handutundant Debts 6 11 Index 1 P State monitor screen lt lt Signal gt gt tab Packet data selection screen X signal state monitor ce eeeecee e
112. ord address Character string 4 IN_WRITE_ADR End code Character string 48 OUT_RESULT_CODE MAX 12 data 1 data 4 bytes Character string 2 Character string 2 Write data IN WRITE_DATA 11 15 11 15 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Label variable list Fixed length Random Read Command Data Read Response Data type Data type Input variables Output variables Data length Data length Device address Device address Character string 2 IN ST_NO Character string 2 OUT_ST_NO End code Character string 48 OUT_RESULT_CODE Data address MAX 12 data IN_READ_ADR Number of datax4 Read data Character string 48 Number of data x 4 bytes OUT READ DATA bytes Label variable list Fixed length Random Data Write Command Data Write Response Data type Data type Input variables Output variables Data length Data length Device address Device address Character strin Character strin IN_ST_NO ngia OUT_ST NO ing 2 Character string 48 Write data MAX 12 data End code IN_WRITE_DATA Number of datax4 OUT RESULT CODE bytes Character string 2 11 16 11 16 APPENDICES APPENDICES Appendix 1 Help Function App 1 The help function displays the product information BASIC OPERATION Click the Help Product information menu Product information Ge Configurator SC Versione COPYR
113. packet 1 7 SETTING OF PROTOCOL FB DATA MELSOFT J gt 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 S k K K K K k Receive FB R k K x K x x Set the title to the protocol FB FB program title The title set here is used as the FB title The usable number of characters is within 32 characters Set the D device to be used in the protocol FB to be output Since the specified D device 2 words is used in the FB it cannot be used in the sequence program Make the settings within the range from DO to D12287 Set the head address of the module used in the FB program to be output The FB program will be generated depending on the head address set here The setting range varies with the PLC CPU used Therefore make the settings within the following range Module start O No Oto EO QOOJCPU QOOUJCPU 0 to 3E0 QOOCPU Q01CPU QOOUCPU Q01UCPU LO2CPU 0 to 7EO QO2UCPU 0 to FEO Other QCPU Q mode L26CPU BT Specify the target channel of the sequence information protocol FB communication Setting chock bul Displays the communication settings The display data are the settings made on Communication setting check button the Module setting screen Classification Displays the data of the sequence information
114. rea 1 Set data write 4 CH2 setting area 1 Label variable list Set Data Write Command Set Data Write Response Data type Data type Input variables Output variables Data length Data length Module No Module No IN ST_NO Character string 2 OUT ST NO Address IN READ ADR Character string 2 Character string 4 End code OUT EXE RESULT Number of elements Character string 4 IN ELEM NUM MAX Value 6 Set data Character string 48 Response code IN WRITE_DATA Number of OUT_RES_CODE 1 element 8 bytes elements lt 8 bytes Character string 4 8 Others Command correspondence list Command Sequence Information Body attribute read Format and communication Body attribute read l buffer size Controller status read Controller status Operating condition read Echo back test Echo back test 11 7 11 7 11 SEQUENCE INFORMATION AND LABEL VARIABLES OF SYSTEM PROJECT MELSOFT Label variable list Body Attribute Read Command Body Attribute Read Response Data type Data type Input variables Output variables Data length Data length Module No OUT_ST_NO End code OUT EXE RESULT Module No Response code Character string 2 IN ST_NO ing 2 OUT RES CODE Character string 2 Format OUT ATTRIBUTE Buffer size h tring 2 OUT BUFF SIZE Character string 2 Label variable list Controller Status Read Command Controller Status Read Response Data type Data type Input vari
115. ree and click the Edit Sequence information Create new sequence information menu Ba 2 The New sequence information screen is displayed Set the Name and Title and click the button 3 New sequence information is created DISPLAY SETTING SCREEN Create new sequence information e o Tie RO Cancel EE f DISPLAY SETTING DETAILS Display Setting Details Hame Set the name of the sequence information The usable number of characters is within 32 characters Title Set the title for the sequence information i The usable number of characters is within 32 characters Refer to Appendix 2 for the restrictions on the set names etc 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 3 2 Setting the sequence information We PURPOSE To 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 gt Sequence information Open sequence information menu 2 The Sequence information screen is displayed Set the Control type Project selection and Classification 4 Double click the Packet name cell to display the Packet information selection screen 5 Make setting and click the button 6 The settings are entered OO DISPLAY SETTING SCREEN ae Sequence information User project lUseProject ooo Receive packet 1
116. reve specified lenf Recervelspecitied length 7 SETTING OF PROTOCOL FB DATA MELSOFT E DISPLAY SETTING DETAILS Click the Classification cell and make selection from the combo box After moving the focus to the specified cell double click it 1 The Packet information selection screen is displayed Packet name Select the packet information 2 The Packet data selection screen is displayed Select the packet data DISPLAY SETTING SCREEN Packet information selection q X Froject name UserFroject l Cancel Facket type Receive packet Packet information list Packet information name Example of setting f DISPLAY SETTING DETAILS Display Setting Details Displays the packet information that can be selected After making selection with the Packet inf ion li acket information list cursor click the Selection button Displays the packet information selected with the cursor Selection button ia loenet te sotingandcosesteseeen the Packet data selection screen Cancel button button Cancels the Cancels the setting and closes the screen and closes the screen 7 SETTING OF PROTOCOL FB DATA MELSOFT DISPLAY SETTING SCREEN Packet data selection E X Hame Receive Title Example of setting Cancel Packet type Receive packet Packet data information list No NAME Header DITA 1 i EE 1 Horizontal parity 2byte ASCI 2 Horizontal parity 2byteJAS
117. rictions on the order of packet construction information on a data classification basis lt Header gt Always set the header at the beginning of the packet data No other data can be inserted before the header lt Terminator gt Always set the terminator at the end of the packet data No other data can be added after the terminator lt I O variable gt Set it between a header and error check code For a receive packet I O variable cannot be set at the top or end of packet data For a receive specified length packet I O variable cannot be set at the top of packet data lt Fixed data gt Set it between a header and terminator lt Error check code gt When a terminator exists set an error check code before the terminator When setting an error check code at the end of packet data set fixed data immediately before the error check code Restrictions on the variable name of the input variable output variable Refer to Appendix 3 for details 7 SETTING OF PROTOCOL FB DATA MELSOFT 7 2 4 Setting the packet data information We PURPOSE To set detailed data to the construction elements of the packet construction information to set the actually transmitted data according to the packet construction information BASIC OPERATION 1 Click the Edit Packet information Open packet data information menu ES 2 The Packet data information screen is displayed 3 Input a name i
118. roduct names used in this manual are trademarks or registered trademarks of their respective companies SH NA 080393E L GX Configurator SC Version 2 Operating Manual Protocol FB support function SXCONSC OFBE 13JU46 SH NA 080393E L 1009 MEE a MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
119. ruction information setting a x ltem name setting Name feommand O Cancel Data classification selection Header Terminator f Fired data Set numerical value fixation Input variable Input variable of FE E Gutout yareble Mutout variable of FE Wetable name Eror check code amp headenHead frame te included in the calculation range P Gonetinclude the fired data prior to enor check code in Calculation range Data type selection f ASCH String C ASCII Code C HES Data length selection e 1 byte Specification length 1 Byte tC 2 byte I Fired length t 4 byte 7 SETTING OF PROTOCOL FB DATA MELSOFT E DISPLAY SETTING DETAILS Display Setting Details The usable number of characters is within 32 characters Select the data classification to be added or changed with the radio button lt In the case of Send Receive packet gt 1 Header 2 Terminator 3 Fixed data 4 I O variable Set the variable name corresponding to the I O label of the protocol FB after FB conversion compile 5 Error check code Set the error check code type and calculation range a Error check code type Horizontal parity 2 bytes ASCII Horizontal parity 1 byte BIN Data classification selection 2 s complement 2 bytes ASCII SUM 1 byte BIN SUM 2 bytes BIN SUM 1 byte ASCII SUM 2 bytes ASCII b Calculation range A header Head fr
120. st 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 Point Before performing the communication test set 0 to the following items on the tested channel in CHL Non procedure system setting of the intelligent function module utility 1 If any other than 0 is set the communication test will not be performed normally e Output head pointer designation e Output count designation 1 The setting can be written into the buffer memory from the sequence program Write 0 into the following 2 areas in the buffer memory e Output head pointer designation buffer memory address 184 B8x 344 158H e Output count designation buffer memory address 185 B9x 345 159H 9 3 1 Communication test after direct input Y PURPOSE To send any data to the device controller BASIC OPERATION 1 Click the Debug support function Circuit trace Circuit trace menu to display the Circuit trace screen 2 Click the button on the Circuit trace screen to display the Communication test screen 3 Input data directly to the combo box of the Communication test screen in hexadecimal 4 Click the button 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT DISPLAY SETTING SCREEN Communication test eoo x select communication test packet 0241 4234954854955 74554544 75
121. t Protocol FB Support Function lt b 4 Make module setting Module setting 15 x Item Data bit Parity bit Cancel Odd even parity Odd Odd eee Sait bit Tbit o Sum check code No No M CHI Transmission speed 300bps 300bps V CH2 DTR DSR control DTR DSR DTR DSR DC1 DC3 control No control No control oe DCI code 11h 11h aa eo 13h 13h DC2 DC4 control No control No control DC2 code 12h 12h DC4 code 14h 14h Communication CD terminal check Check Check control Communication system Full duplex Full duplex Simultaneous Half duplex transmission 0 x100ms 0 100ms communication priority non priority conve Retransmission time Do notresend Do notresend transmission method ee monitoring 0000h 0000h Data ee Response monitoring communication time 50 x100ms 50 x100ms time monitoring Transmission 1800 x100ms 1800 61 00ms monitoring time UZ w Transmissinn huffer Aa Operation Choose Project New project A new user project is created Operation Click E or choose Edit Module setting Make the initial setting of the C24 module and click the End set up button Executing FB conversion of sequence information reflects the settings of the channel which has been specified as Channel on the FB conversion check screen in Module initialization FB INITSC 6 PROTOCOL FB CREA
122. t be set within the same project Case independent The spaces before and after the name are deleted automatically Packet information name Maximum number of characters 32 characters The same name cannot be set within the same project Case independent The spaces before and after the information are deleted automatically Sequence information 1 The following words cannot be used COM1 to COM9 LPT1 to LPT9 AUX PRN CON NUL CLOCK Appendix 3 Character Strings That Cannot Be Used as Input Variables and Output Variables When the protocol FB support function is used the following character strings cannot be used as input and output variables The following character strings are used by the protocol FB function in the system The following character strings are set as labels when FBs are created with the protocol FB function and read to GX Developer Unusable character strings REQ RECV REQ SEND I START O END O ERR_CD O END NG O R_DATA_NO V_COMP V_CTRL_DATA V_LEN MAX V_P1 V_P2 V_R_RESULT V_RUN V_S_ RESULT V WK_B DATA V_WK_DATA V_WK_RECV V_WK_LEN V_WK_RECV_B V WK R O LEN V_WK_SEND V_WK_ W_LEN V_WK_PTR V_LEN_IDATA V_PLEN V_PLEN_END V_FOR_COUNT V_DUMMY V_I_ RESULT App 2 App 2 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 C24 module and other
123. t construction information screen is displayed Click the or button to display the Packet construction information setting screen 4 After the setting of the Packet construction information setting screen is completed click the button 5 The data are set to the Packet construction information screen 6 Click the button on the Packet construction information screen GO N DISPLAY SETTING SCREEN g Packet construction information Recetye specified lengthjpacket No Item Data classification Biria clei 7 SETTING OF PROTOCOL FB DATA MELSOFT E DISPLAY SETTING DETAILS Number of specified length data Displays the data length set n the packet construction information setting only when the packet type is Receive specified length packet Packet construction Displays the packet construction elements set in the packet construction information information list setting Adds the item of the packet construction ution Displays the Packet construction information setting screen and sets the packet construction information Data are inserted into the position one line lower than the cell containing the focus Inserts the item of the packet construction button Displays the Packet construction information setting screen and sets the packet construction information Data are inserted into the position one line higher than the cell containing the focus DISPLAY SETTING SCREEN Packet const
124. ta gt gt tab DISPLAY SETTING SCREEN Main Project data Trace data Project name UserProject Print iter All item kem specification 4 Vv Packet construction information W Packet data W Sequence information Printer setting Frint Print preview Close 1 When Project data has not been selected in the lt lt Main gt gt tab this area is dimmed E DISPLAY SETTING DETAILS Display Setting Details Displays the project name specified as the project data in the lt lt Main gt gt tab Print item Select All items or Item selection ae When Item selection has been selected select which item will be printed by checking the Item specification re check box 10 3 10 3 ee MELSOFT 3 lt lt Trace data gt gt tab DISPLAY SETTING SCREEN Main Projectdata Trace data Trace data file ESEK Pala FBT Print tern C All item tem specification Transmission receive packet list 2 W Circuit trace BIN display C ASCI display Vv Transmission recenve packet list Printer setting Frint Frint preview Close 2 When Trace data has not been selected in the lt lt Main gt gt tab this area is dimmed E DISPLAY SETTING DETAILS Display Setting Details Trace data file Displays the file name specified as the trace data in the lt lt Main gt gt tab Select All items or Item selection When Item selection has been selected select which item
125. the protocol FB creating procedure in Step 1 to Step 5 A protocol FB can be created by making setting in order of Step 1 to Step 5 The following table lists the guide tool buttons Guide Tool Button Tool Tip Open Module Setting Open the module setting screen 2 New Packet information Create new packet information Open packet data Serea m the packet data information j how soguer omaxon OO BE New sequence New sequence information Create new sequence information new sequence information FB conversion of Convert the sequence information to generate sequence information the user FB 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 Header ASCTICode 1 Q37 lagh CaP NUM SCRL y Paes 1 2 3 4 5 f DISPLAY SETTING DETAILS Display Setting Details Displays the guidance and packet data information item setting information 2 Displays the model name of the C24 module Displays the Caps Lock status 4 Displays the Num Lock status 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 inform
126. ting Detail Monitor buffer starting address setting Monitor buffer size setting button button 1 The maximum address for the trace data storage space is calculated by the following formula Set the starting address of the monitor buffer area that stores the trace data Input the setting in hexadecimal Input range CH1 CH2 2600H to 3FFDH COOH to 1AFDu for the user specified area Set the size of the monitor buffer area that stores the trace data Input the setting in hexadecimal Input range CH1 CH2 3 to 1A00 words 3 to FOO words for the user specified area Set the maximum address for the trace data storage space to be in the range between 2602H to 3FFFH CO2H to 1AFFu for the user specified area Note that the range of this value is checked at the start of the circuit trace when using the user specified area Reads the monitor buffer starting address and size from the selected module Writes the setting values of the Monitor buffer starting address and Monitor buffer size to the selected module Maximum address for trace data storage space Monitor buffer starting address Monitor buffer size 1 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 2 3 Transmission receive packet list We PURPOSE To display the list of transmission receive packets to analyze the transmission receive packets obtained by the circuit trace BASIC OPERATION 1 Click the Debug support function Circuit trace
127. top ch2 go 30 05 g t d t F B Select SP0 for ch1 go 30 05 g2 crea e as a p ro OCO Select SP1 for chi oo 30 05 g2 Select SPO for ch2 STX f IN_ST_NO gg gg Select SP1 for ch2 go 30 05 02 Stop chl AT gg 3g o5 93 Execute chl AT oo 30 05 93 Stop ch2 AT oo 30 05 ga Execute ch2 AT oo 30 05 93 Write mode Backup gg 3g o5 ugg Write mode RAM go 3g o5 ga RAM data save go 30 o5 gg Software reset go 3g o5 OB Move to setting area 1 oo 30 05 07 Move to protect level oo 30 05 98 Auto for ch1 gg 30 o5 gg Manual for ch1 gg 3g o5 gg Auto for ch2 oo 30 05 gg Manual for ch2 gg nag o5 gg co y o on a w v 2 Sequence information R_DATA oa Saul ae packe data is set to the sequence Te cancel information m Control type Send C Receive C Send Receive m Packet selection Project selection UserProject Packet name Operation Commands 11 6 PROTOCOL FB CREATION OPERATING PROCEDURE 9 Convert into a protocol FB FB conversion check xj FB program is generated from the following contents Is it OK FB program name JRDATA tt Cancel FB program title COMMAND is
128. trace E Conmineaioniesi Performs a communication test on any packet data from the C24 Section 9 3 module to the device controller Satamien aia the error status communication signal wire etc of the C24 Section 9 4 The following table shows the modules to which the protocol FB support functions can be applied and their function ranges Section 9 2 Circuit trace Applicable modules and function ranges Protocol FB Debugging Support Function Applicable module support function Communication test State monitor aca anaona o x l o modules QJ71C24N QJ71C24N R2 QJ71C24N R4 LCPU LJ71C24 LJ71C24 R2R 0o 0O 3 FUNCTION LIST MELSOFT 3 2 Menu List The following table indicates a menu list of GX Configurator SC coseproect OOO o Dasep O OOOO OO Cmangemooueype o oS Ctrl P Exit protocol FB support function se Ctrl X Modueseting OOOO o O New Packet information o Open Packet construction information Los racket information OPen Packet data information Duplicate Packet information Rename Packet information informat Ls informat es Edit Open Sequence informaton Sequence information FB conversion Sequence information Duplicate Sequence nomaton Rename Sequence informaton Delete Sequence informaton input and Output variable check ober SSCS Sws OOOO O Ce E Moaes J Circuit trace fT o Open circuit trace file L
129. ule and channel to the Object module Update button Displays the latest module list button Sets the data displayed in The present object module as the object module data button Cancels the setting 9 DEBUGGING SUPPORT FUNCTIONS MELSOFT 9 2 Circuit Trace We PURPOSE To trace the communication data and communication control signals with device controller The circuit trace function displays the data accumulated in the monitor buffer of a module 9 2 1 Starting the circuit trace 3 PURPOSE To trace the communication data and communication control signal status store the trace data in the monitor buffer ED BASIC OPERATION 1 Click the Debug support function Circuit trace Circuit trace menu 2 Click the button to start trace 3 When the monitor buffer becomes full or the button is clicked the trace data are displayed 4 Confirm the transmission receive packets and communication control signals from the displayed trace result Point When the circuit trace or communication data monitoring function has already been executed the following confirmation message is displayed For details of the communication data monitoring function refer to the MELSEC Q L Serial Communication Module User s Manual Application Protocol FB support function ltiz already under the circuit trace under transceiver monitoring execution Do vou stop The data which has been accumu
130. will be printed by checking the ae check box Item specification Circuit trace The circuit trace image is printed Transmit receive packet list The transmit receive packet list is printed a __ When printing the transmit receive packets specify either the BIN or ASCII print format Transmission receive packet list l l l a Valid only when Transmit receive packet list is selected 10 4 10 4 ee MELSOFT Error dialog box Displayed dialog box Protocol FB support function Printing data is abnormal The following causes are though Facket information does not exist Packet construction information item does not exist Packet information data is not set up Sequence information does not exist Transmission receive packet data does not exist Error cause Corrective action e After Project data was selected the Print Print preview e Deselect the project data or create packet information button was clicked with no packet information existing e When the packet construction information is selected the Deselect the packet construction information or create packet construction information exists but the construction packet construction information items information items do not exist e When the packet construction information is selected there Deselect the packet data information or create packet data are no contents of packet data information information e When the sequence information is selected sequence e
Download Pdf Manuals
Related Search
Related Contents
Samsung CLX-3300 Εγχειρίδιο χρήσης HP Universal CMDB Configuration Manager Crystal Touch Manager取扱説明書 RLM License Administration Manual Copyright © All rights reserved.
Failed to retrieve file