Home

IMO GM7 Series

image

Contents

1. Keyword Type pata seting Name Description range GM1 0 GM2 1 GM3 2 GM4 3 _CPU_TYPE Unit 0016 System type FSM 5 6 VER_NUM Unit 0 5 version No System 0 5 version No _MEM_TYPE Unit 105 2 one Type of program memory module 0 Unloading state type 0 to 5 Represent ative be igde and System operation mode and operation state information operation status keyword Bit 0 Operation mode change is possible only by mode change switch or GMWII Bit1 STOP Bit 2 RUN PAUSE CPU module operation state Bit 4 DEBUG Bit5 Operation mode change by mode change switch change factor Operation mode GMWIN 5 5 STAT Bit 6 change fecior Operation mode change by Bit7 Operation mode change by remote GMWIN change factor Bit8 o peranan moge Operation mode change by communications change factor Bit 9 STOP by STOP Operation in the RUN mode is stopped by STOP function after the scan function has finished Bit 10 Force input Input junction force On Off is being executed Bit 11 Force output Output junction force On Off is being executed STOP by wm m f Bit 12 ESTOP function Operation in the RUN mode is directly stopped by ESTOP function Bit 13 Bit 14 During monitoring External monitoring is being executed for programs or variables Bit 15 Remote mode ON Operation in the remote mode Representa GMWIN ti
2. Chapter 6 Input and Output Modules 3 40 point base unit G7M DT40A PROGRAMMABLE our LOGIC 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 CONTROLLER ERD Out 24VDC D 5A P 2 06 008 010 012 Q14 4 007 009 011 015 015 66 100 240 000 002 004 50 60HZ FG COMO Q01 Q03 00 h LETTE LY FUP PLP LN LP TL IET EH IE L LY IL PL 4 60 point base unit G7M DT60A PROGRAMMABLE DUE LOGIE 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 CONTROLLER ERO Out 24VDC 0 5A P 2 H BBVA 100 240 QOO 002 004 006 x Q1O
3. Header STX TX RX Send Segment 1 Type CONST field RCV_FRAME select button for ASCII input Segment 2 Type ARRAY field 10 size 4 bytes Tailer ETX 9 After setting click OK of Frame 1 to register as follows User Defined 0 Receive 2 Not defined 3 Not defined 6 Not defined 7 Not defined 8 Not defined 9 Not defined 10 Not defined 11 Not defined 12 Not defined 13 Not defined 14 Not defined 15 Not defined 10 Click OK to exit communication parameter setting and click OK to complete setting 8 65 Chapter 8 Communication Function 11 Setup a program like the following figure and download to the slave station GM7 For the detailed program setting and downloading refer to GMWIN manual Function block is used in the program Before using function block double click Current included Libraries to open the following window Click Add to add COMM 7FB and click OK Include Library Include Library cAgmwinlibicomm 7fb 8 66 Chapter 8 Communication Function GMWIN for Windows c tgmwinttsourcettuser_define_sly prj Iof Xx 31 mje Sela 1 E E e e o n 2 ifthe frame 0 is received save it in 0 of the slave refer to frame 0 setting Output value saved in MBO to direct variable 10 and again save the value in 0 0 0 0 in 10 If this execution is done witho
4. contens Executing request region of function block REQ BOOL If condition which is connected this region is completed then 0 becomes 1 and function block gets executed location no of slot Input SLOT USINT Region to write slot no which analog timer module is installed Setting range 1 to 3 Designating region of using channel CH USINT Designating region for no of using timer Setting range 0 to 3 Complete status of function block execution DON BOOL When input condition of function block is 1 if it is completed to execute then E 9 1 is output But when input condition is 0 and output changes to 1 0 then related timer becomes operating stop status Output Indication region of error status STAT USINT Region for output of error no when error occurs while function block execution USINT Digital value output of timer Output range 0 to 200 2 Error list which is occurred on output variable STAT Contents Setting range excess of slot location no Designate right slot no which is installed with analog timer module Empty analog timer module of designated slot Installing analog timer module to designated slot Another module is installed which is different 5 Installing analog timer module to designated slot from analog timer module 6 Setting region excess of channel Correct using channel no designation 4 Variable resistance handling 1 Set up extension G7F AT2A to CPU module and
5. 8 51 8 2 3 Function Block 1c cLee ccce rcecc cec 8 58 8 2 4 Example of Use 1 8 59 8 2 5 Example of Use 2 1 1 eene enne nnne 8 76 8 3 Modbus Protocol Communication eese 8 85 8 3 1 Introduction cere i a 8 85 8 3 2 Basic Size eicere Lett 8 85 8 3 3 Parameter 8 89 8 3 4 Function Block 1 icai REAA ARA 8 91 8 3 5 Example of 8 108 Chapter 9 Installation and Wiring 9 1 Installatlon 9 1 9 1 1 Installation nnne 9 1 9 1 2 Handling Instructions 9 4 9 1 3 Connection of expansion module 9 7 9 2 WAPI DD 9 8 9 2 1 Power supply 9 8 9 2 2 VO devices Wiring 9 10 9 2 3 Grounding 1 2 eid nell iiec eec 9 10 9 2 4 Cable Specifications for Wiring
6. R8 C7 Edit Creates a new project Off line 8 68 Chapter 8 Communication Function 3 If you double click the communication parameter window GMWIN you can see the following window of the communication parameter Communicaton Parameter Setparameters as the following table Communication Method Protocol and Mode Station Baud Data Parity Stop No Rate Bit Bit Bit Communication Channel User Defined 0 9600 8 None 1 RS232C null modem or R 422 485 Master 8 69 Chapter 8 Communication Function 4 Click List to activate frame list window D Hal defined 1 Hat defined 14 Not defined 18 Not defined 5 Double click Frame list 0 to activate Frame 0 window and set as follows othe TET 8 70 Chapter 8 Communication Function Header ENQ TX RX Send Segment 1 Type CONST field SND FRAME select button for ASCII input Segment 2 Type ARRAY field 0 size 4 bytes Tailer EOT BCC 6 IBCC is set in tail after setting click BCC Setting to activate BCC setting window set as follows and click OK to close BCC Setting Data Type C Hex r Check Rule C Default C SUM 1 gu C XOR 1 XOR 2 MUL 1 C MUL2 Range H 0 T 0 ex H 0 T 0 Complement None FF ex FF FF amp FF Cancel Data Type ASCII Check Rule SUM
7. ated r For DIRECT H variables declared PAR amp HETERS Bibi PARRHETERS COHHIHTCATION PARSHETER INCLUDED LIBHRELES 8 46 E B P E 9 e E E E F E Chapter8 Communication Function 11 Variable of the program DATA is WORD type and its first value is H FF 12 Click Communication Enable to start 1 1 built in communication between GM7 Base Units on line 13 Remove RS 232C communication cable for GMWIN and connect GM7 Base Units for 1 1 built in communication between GM7 Base Units 8 47 Chapter8 Communication Function 8 1 8 Error code Error code Error type Error condition and causes Treatment 0001 PLC system error Interface with PLC is impossible On Off the power Check if other letters than capitals small Errors occurred when exchanging ASCII H0011 error letters numbers and in variable data to numbers and data correct and execute again Seta wrong device memory that is to H0021 Command error use commands other than w W x X Check commands s 5 Wrong command type that is to use H0031 type error characters like wSS wSB using other letters Check command type from SS or SB Set wrong device memory other than m M H1132 Device memory error Check device type q Q 1 I at
8. 2 RTU mode 1 Itcommunicates using hex data 2 There s no header and tail It starts with address and finishes frame with CRC 3 Ithas atleast 3 5 character times between two frames 4 Itignores the current frame when 1 5 character times elapse between characters 5 Itchecks errors using 16 bit CRC 6 Frame structure hex data Item Address Function code Data CRC Size 1 byte 1 bytes n bytes 2 bytes REMARK 1 The size constituting 1 letter is 1 character So 1 character is 8 bits thatis 1 byte 2 1 character time means the time lapsed for sending 1 character Ex Calculation of 1 character time at 1200 bps 1200 bps means thatit takes 1 sec to send 1200 bits To send 1 bit 1 sec 1200 bits 0 83 ms Therefore 1 character time is 0 83ms 8 bits 6 64ms 3 584 984 executes frame division using intervals of more than 1 sec without LRC in processing internally 8 85 Chapter 8 Communication Function 3 Address area 1 Setting range is available from 1 to 247 but GM7 supports from 0 to 31 2 Address 0 is used for broadcast address Broadcast address is all slave device recognize and respond to like the self address which can t be supported by GM7 4 Function code area 1 GM7 supports only 01 02 03 04 05 06 15 and 16 among Modicon products function codes 2 If the response format is confirm ACK it uses the same function code 3 If the response format is confirm NCK it r
9. LED is on aton status of output 2 Circuit It s the same with the output circuit of the base unit 3 Output wiring DC5V DC24V AC110 220V REMARK 1 Refer to 7 2 Special Functions for the special function units Chapter 7 Usage of Various Functions Chapter 7 Usage of Various Functions 7 1 Built in Functions 7 1 1 High speed counter function This chapter describes the specification handling and programming of built in high speed counter of GM7 The built in high speed counter of GM7 Hereafter called HSC has the following features 3 counter functions as followings 1 phase up down counter Up down is selected by user program 1 phase up down counter Up down is selected by external B phase input 2 phase up down counter Up down is automatically selected by the phase difference between A phase and B Multiplication 1 2 or 4 with 2 phase counter 2 phase pulse input multiplied by one Counts the pulse at the leading edge of A phase 2 phase pulse input multiplied by two Counts the pulse at the leading falling edge of A phase 2 phase pulse input multiplied by four Counts the pulse at the leading falling edge of A phase and B 1 Performance Specifications Items Specifications Types A phase B phase Preset Input signal Rated level 24VDC 15 Signal type Voltage input Counting range 0 16 777 215
10. 1 0 module or another module PLC program 1L2 Troubleshooting This section explains the procedure for determining the cause of troubles as well as the errors and corrective actions p Flowchart used when the POWER LED is turned OFF owchart used when the ERR LED is flickering 5 owchart used when the RUN turned OFF owchart used when the output load of the output module proper doesn t turn on Program cannot be written 5 owchart used when a program can t be written to the PLC 11 1 m m m Chapter 11 Troubleshooting 11 2 1 Troubleshooting flowchart used when the POWER LED turns OFF The following flowchart explains corrective action procedure used when the power is supplied or the power led turns off during operation Power LED is turned OFF 15 the power supply operating Supply the power Does the power led turn on See the power supply be within AC 110 240 V Does the power led turn on Is the fuse blown Replace the fuse Does the power led turn on Yes 15 the voltage within the rated power Is the power supply cable connected Connect the power cable correctly Does the power led turn on Yes Over current protection device 1 Eliminate the excess current activated 2 S witch the input power OFF then ON Yes Does the power led turn on Write down the troubleshooting questionnaire and contact the n
11. eene 9 11 Chapter 10 Maintenance 10 1 Maintenance and Inspection 10 2 Daily Inspection 10 3 Periodic Inspection 10 2 Chapter 11 Trouble Shooting 11 1 Basic Procedures of Troubleshooting eese 11 1 11 2 11 1 11 2 1 Troubleshooting flowchart used when the power LED turns off 11 2 11 2 2 Troubleshooting flowchart used when the error LED is flickering11 3 11 2 3 Troubleshooting flowchart used when the RUN LED turns off 11 4 11 2 4 Troubleshooting flowchart used when the devices doesn t operate normally 215 22 22 nl REENA E EE EE 11 5 11 2 5 Troubleshooting flowchart used when a program can t be written to the 2 11 7 11 3 Troubleshooting Questionnaire eere 11 8 11 4 Troubleshooting eere 11 9 11 4 1 Input circuit troubles and corrective actions 11 9 11 4 2 Output circuit troubles and corrective actions 11 10 11 5 Error code list A ees AEE a E 11 12 Appendix 1 System definitions 1 1 Appendix 2 Flag 11 2 1 Appendix
12. 5 E ANNUN WR 1 WARIO 10 If the user program had detected a system fault and set ANCWB 10 to ON ANC WAR I 20 the states of ANNUNWR and WAR 0 7 will be shown as left after the WAR 2 0 scan has been finished WAR 3 20 WAR 4 20 WAR 5 20 WAR 6 20 WAR 7 20 ANNUN 1 After the next scan has been finished if the numbers 1 2 3 10 15 40 50 60 WAR 0 10 and 75 of ANC WB n are tuned on will be shown as left WAR I 21 ANC WARD 2 As the number 10 has turned on has occurred in the previous scan though WAR 3 23 _ANC_WAR 4 15 WAR 5 40 the number 10 has lower priority than the numbers 1 2 and 3 it will be the lower element of ANCWAR n The ANC WB 75 is not indicated as it is WAR 6 250 turned on and the warning that occurred before has written to the WAR 7 60 _ANCWARIN1 _ANNUN_WR 1 After the next scan has been finished if the numbers 1 2 3 10 15 40 50 60 _ANC_WAR 0 1 and 75 of ANC_WB n are tuned on ANC WAR n will be shown as left _ANC_WAR 1 22 ANC WAR 2 3 The No 10 warning has been released the content of ANCWAR 0 will be ANC WAR 3 z 15 cleared and the contents of ANC WART L 7 will shift into the lower elements WAR 4 40 ifti th ANC 5 50 The content of AN amp WAR 7 will has been cleared by the shifting and the ANC WAR 6 60 c
13. G7E DR10A 1 1 built in communication between GM7 s This communication cabling map is the same for 3 1 1 Connecting between GM7 s in 8 1 2 System configuration method using built in communication 8 30 Chapter8 Communication Function 2 Parameter setting 1 Communication Parameter Setting Open a new project file from GMWIN GM7 must be selected as PLC type Open a new project file for each of the master and the slave After selecting communication parameter from GMWIN and clicking twice this window comes up Chapter8 Communication Function Set according to the following table Item Contents Station No Sets one of station from 0 to 31 Baud rate Sets one of 1200 2400 4800 9600 19200 38400 57600 bps Data bit Sets one of 7 or 8 Bits Parity bit Sets one of none Even Odd Stop bit Sets one of 1 or 2 Bit s Communication channel e RS232C null modem or RS 422 485 be selected as a communication channel when communication is processed by built in functions of GM7 Base Unit or Cnet I F module G7L CUEC e RS232C dedicated modem can be selected when communication is processed by Cnet I F module G7L CUEC 5 232 dial up modem can be selected when common modem communication calling the opponent station is processed by Cnet I F module G7L CUEC Notes RS232C dedicated modem and RS232C dial up modem communication can be processed only by Cnet I F module
14. OD Online Wale 8 35 Chapter8 Communication Function 4 Flag related with operating status 1 Sending receiving error count for each station total 32 stations Flag name MRS ERR n n 0 31 Data type array byte Contents each station can renew number of errors Namely the number of s r errors of the station no lis renewed at MRS ERR CNT 0 and the number of the station no 31 at MRS ERR CNT 31 2 Sending receiving error contents of each station total 32 stations Flag name MRS ERR n n 0 31 Data type array byte Contents Error code 1 error of time overrun responding time for s r Error code 2 error of NAK time 3 Slave PLC mode and error contents of each station total 32 stations Flag name SRS STATE n n 0 31 Data type array byte Contents 0 bit error status of the slave PLC 1 error 0 normal 1 3 bit reserved 4 7 bit operating mode of the slave PLC 4 Bits STOP 5 Bits RUN 6 Bits PAUSE 7 Bits DEBUG 4 Status flag of the master PLC Flag name MRS STATE n n 0 31 Data type array byte Contents 2 Bit overextending M area when setting communication parameter 5 Max min current sending receiving cycle of set parameter Flag name Time Type MRS SCAN MAX Time Type MRS SCAN MIN Time Type MRS SCAN CUR Contents the interval between a
15. RSB command _ Offfon the power to restart H6010 Syntax error OVER RUN FRAME error Be familiar with the manual Confirm the setting of the communication H6020 Syntax error TIME OUT error ports of RS 232C Offlon the power to restart H6030 Syntax error Syntax error in commands Check if each sends frame has ENQ EOT Rearrange send frame not to go over 256 H6040 Syntax error When a FRAME text exceeds over 256 bytes bytes H6050 Syntax error BCC error Check if BCC is right 8 49 Chapter 8 Communication Function 8 2 User Defined Protocol Communication 8 2 1 Introduction User Defined Protocol Communication allows users who do communication between GM7 Basic Unit and other kind of device to define the other company s protocol atG SERIES PLC There re a number of kinds of protocols made by many companies that it s difficult to have all protocols in it So if a user defines a protocol that can be applied to his her purpose GM7 Basic Unit executes the communication with the other kind of device through the defined protocol For this protocol frame must be defined in GMWIN Version 3 3 or higher And exact knowledge about the contents of the protocol defined by the user is vital in making the communication possible GMWIN Version 3 3 or higher can download a user defined protocol frame into GM7 Basic Unit and itis saved it is not erased by power s off on But protocol frames are damaged to
16. 00 1 01 Byte Logical H02 Offset Byte Physical H03 PLC status data Byte CPU TYPE H04 Byte VER NUM H05 WORD SYS STATE H Byte PADT CNF H08 Byte Domain ST WORD CNF ER H WORD CNF WR H WORD Reserved H WORD Reserved H WORD Reserved H 1 For the details of each flag refer to GM7 User s Manual Appendix 2 list of flag 2 PC DEVICE IDENTIFIER Logical and Physical are dedicated to be used only for system that it should not be processed 4 Response Format NAK response Error code Format name Header Command Command type Frame check Hex 2 Byte Frame Example NAK ST H1132 BCC ASCII value 15 31313332 Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error codes Error code 8 28 Chapter8 Communication Function 5 Example This example supposes that the status of GM7 Base Unit of station NO 1 is read Computer request Format PC 7 Base Unit Format name Header Station No Command Command type Frame check Frame Example ENQ 01 5 ASCII value Format name 05 Header Comm
17. 2E map request has occurred for the same task indicates the errors on a bit map This flag detects task collision occurrence time for each task when Task collision m _TC_CNT n UINT n 0to7 ae executing a user program indicates the task collision occurrence time _BAT_ER_TM DATE 6 e Batter voltage drop The first detection date and time of battery voltage drop are written TIME time to this flag It will be reset if the battery voltage has been restored Momentary power fail ti AC CNT UINT Oto 65535 failure occurrence he accumulated momentary power allure occurrence times during operation in the RUN mode is written to this flag TM n PATE amp n 0to 15 Momentary The times of the latest sixteen momentary power failures are written failure history The times and error codes of the latest sixteen errors are written to this flag bk _ERR_HIS n n 0to15 Error history Stop time DATE amp TIME 8 bytes e Errorcode UINT 2 bytes The times operation modes and restart modes of the latest sixteen operation mode changes are written to this flag Sido ud n 0to 15 E e Change time DATE amp TIME 8 bytes 9 Operation mode UINT 2 bytes Restart UINT 2 bytes Marked flags are loaded while RTC option module is used App2 4 Appendix 2 Flag List 5 System Operation status Information Flag List
18. le F pipa Tore Frontpage 8 Choose an item to be saved in the flash memory and press OK 8 Turn the power of the base unit off 10 Remove the external memory module Through the above steps a user can save a program into the external memory module 2 Run the PLC with a program of external memory module 1 Tum the power of the base unit off 2 Install the memory module When only base unit is used connectto the expansion connector of the base unit And when expansion unit is used connectto the expansion connector of the last connected expansion unit 3 Setthe dip switch for ROM mode setting of the base unitto OFF position This switch is for Cnet ROM MODE 5 41 Chapter 5 CPU Module 4 Turn on the power of the base unit 5 As RUN LED and ERR LED are on the contents of the memory module is transferred into the program area of the base unit and ROM operation area of the flash memory It may take about 15 sec 6 Operate according to the set operation mode 7 Turn off the power of the basic unit 8 Remove the memory module 9 Turn the power on Through the above steps the user can operate the PLC with program stored in the external memory module REMARK 1 When the PLC is operated with the external memory module it always operates with cold restart 2 Remove after the program transfer 5 4 2 Chapter 5 CPU Module 5 11 Battery 1 Specifications Item Specificatio
19. response after execution of command PC GM7 Base Unit Format name Header Command Command type Error code Frame check Ex of frame NAK r SS Error code 2 BCC ASCII value H15 H72 H5353 Error code 4 Frame check BCC is automatically calculated internally 8 13 Chapter8 Communication Function 2 Continuous reading RSB of direct variable 1 Introduction This is a function that reads the PLC device memory directly specified in accord with memory data type With this data is read from specified address as much as specified continuously 2 PC request format Command Number of Number of data Format name Header Staton Command Variable length type blocks Max 128 Bytes Ex of frame ENQ H10 SB H06 MW100 H05 ASCII value H05 H5342 H255744313030 1 Number of data specifies the number according to the type of direct variable Namely if the data type of direct variable is double word and number is 5 it means that5 DOUBLE WORDS should be read 2 Max of MB in number of data can be used up to 128 MW up to 64 and MD 32 3 Protocol of RSB doesn t have number of blocks Explanation When command is one of lower case r only one lower byte of the value resulted by adding BCC 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC Variable This indicates the number of name s characters t
20. For detailed information refer the user s manual of GMWIN 5 4 7 Chapter 5 CPU Module The second one is write sequence program By executing a F B RTC_SET user can replace the current RTC data with the preset data stored in a specified variable The following is an example program Example The preset RTC data 1999 1 17 11 53 24 Sunday When the TIME PRESET bitis switched on the new data in SET TIME will be moved to TIME SET TIME Variable Setting Initialze Array SET_TIME ar Error code of F B Thef ol owi ng tabl e shows error codes appear at the STAT output Error cade Description 00 No error 01 RTC Modul ei s not f ou nd Insert the RTC module into the expansion connector 02 A improper RTC data is written Ex 14 Month 32 Date 25 Hour Please write a correct RTC data 5 48 Chapter 6 Input and Output Modules Chapter 6 Input and Output Modules 6 1 Input Output Specifications Digital input that offers to IMO GM7 series are made to use both of electric current sink and electric current source To keep use coil load as an output module maximum opening and shutting frequency is 1 second on and 1 second off The following diagram shows maximum life relay for relay output AN 1 NH E ERR HE N ANT EEE
21. G7M DR40A DC G7M DR60A DC Output point 4 points 8 points 12 points 16 points 24 points Insulation method Relay insulation Rated load voltage current DC24V 2A rlload AC220V 2A COS P 1 1 point 5A 1COM in load Voltage current DC5V 1mA ax load voltage current AC250V DC110V Current leakage when off 0 1mA AC220V 60Hz ax On off frequency 1 200 hr Surge Absorber None Mechanical More than 20 000 000 Rated on off voltage current load 100 000 or more Life AC200V 1 5A AC240V 1 COS 2 0 7 100 000 or more Electrical AC200V 1A AC240V 0 5 COS 0 35 100 000 or more DC24V 14 DC100V 0 14 L R 7ms 100 000 or more Response off 2 On 10 ms or less time 0n gt Off 12 ms or less Common method 1 point ICOM 2 points 1COM 4 points ICOM Operation indication LED is on aton status of output 2 Circuit Internal circuit Chapter 6 Input and Output Modules 3 Output wiring 1 10 points base unit 2 20 points base unit FPOGPAUUAPLE COWPILLER m DCS Ye DC24V AC 10 2204 2 30 point base unit G7M DRIOA PROCRANN ABLE Loac COKTPOALIP li PERE DCSYe DC24 220 6 6 8 ut Out put Modules n 6 Chapter 3 40 point base unit G7M DRAQA
22. IMO GM7 Series Chapter 1 General 1 1 Guide to Use this Manual 1 1 V2 TUI CIERTO RE ch EIE 1 2 1 3 Terminology eene rennen tane reum tre Exe e ax uolo E 1 4 Chapter 2 System Configuration 2 1 Overall 2 1 2 1 1 BASIC System nennen enu 2 1 2 1 2 Cnet l F System gc ade dde 2 2 2 2 Product functional model esee 2 4 2 2 1 Product function Block nee 2 4 2 2 2 GM7 Series System Equipment Product 2 5 Chapter 3 General Specification 3 1 General 3 1 Chapter 4 Names of Parts Base Unit uei 4 1 4 1 1 10 point base 1 1 1 1 1 1 eene nnne nnns 4 3 4 1 2 20 point base 4 3 4 1 3 30 points Base 1 111 1111 enne 4 3 4 1 4 40 Points Base 1 4 4 4 1 5 60 Points Base 1 4 4 4 2 Expansion 1 4 5 4 2 1 Digital
23. If you check the SFC Auto Scroll it scrolls automatically with monitoring position Debug Option When you debug LD you can select the Point or Line in Debug Option menu If you select Point option the debugging for the program is executed by one point If you select Line option the debugging for the program is executed by one line 1 4 Appendix 1 System Definitions 5 Make option It allows you to select compile type to select output file and to set the size of M area in Make option Select the Project Option Make Option in menu Option 1721010 P icine Connie gt EXCenLConinien Compile Type Select allows you to set the method of compile for the source program If you select the Compile All in the Compile Type Select GMWIN compiles again from the first line regardless editing a source program If you select the Part Compile in the Compile Type Select GMWIN compiles the updated part You can select making variable table or upload program for the output file in Output File Select You can select the size of M in the M Area Size Set App1 5 Appendix 1 System Definitions 2 Basic Parameters Basic Parameter mi m m m m m The basic parameters are necessary for operation of the PLC and used to allocate memory set the restart mode and set the scan watch dog time etc 1 Configuration PLC Name e t is a representative name for the PLC system
24. In GM7 only the following 4 operation modes are available Other operation modes such as PD or I are not permitted No EN_P EN I EN D Operation 1 1 enable 0 disable 0 disable P operation 2 1 enable 1 enable 0 disable operation 3 1 enable 1 enable 1 enable PID operation 4 0 disable 0 disable 0 disable On Off operation The GM7 can handle only integer not the floating point type Therefore to enhance the accuracy of PID operation the PID6CAL function block is designed to input the P GAIN data as the 100 times scaled up For example if the designated P GAIN is 98 actual input data of P GAIN should be 9800 If the designated P GAIN is 10 99 input 1099 to the P GAIN TIME and D TIME are 10 times scaled up For example input 18894 if the designated TIME value is 1889 4 The range of actual input is 0 20000 S TIME is the period of reading data sampling and also 10 times scaled up Generally it should be synchronized with external trigger input EN input of function block to perform proper PID operation The range of sampling time is 0 1 10 seconds and actual input range is 0 100 REF may be useful parameter according to the control system type especially velocity pressure or flux control system The REF input is also 10 times scaled up and the actual range is 0 10 TT tracking time constant parameter is used to cancel anti windup operation The ran
25. e f the wire duct is mounted on the upper part of the PLC make the wiring duct clearance 50 less for good ventilation Also allow the distance enough to press the hook in the upper part from the upper part of the PLC f the wire duct is mounted on the lower part of the PLC make optic or coaxial cables contact it and consider the minimum diameter of the cable 5 To protect the PLC from radiating noise or heat allow 100 more clearances between it and parts Left or right clearance and clearance from other device in the left or right side should be 100 more Other High voltage device device 100 Heat generating device Fig 9 2 PLC mounting 6 GM7 has hooks for DIN rail in the base unit and expansion modules DIN rail Fig 10 3 9 6 Chapter 9 Installation and Wirin 9 1 3 Connection of expansion module The following explains the Connection of expansion modules to the base unit 1 Open the connector cover of the base unit 2 Insert the connector of the expansion module to the connector of the base unit Base unit Connector cover expansion module expansion cable 9 7 Chapter 9 Installation and Wiring 9 2 Wiring The followings explains the wiring instructions for use of the system 9 2 1 Power Supply Wiring 1 Use AC 100 240V 50Hz 60 2 as the main power
26. pulse catch pulse width 0 2ms 4 points external contact point interrupt 0 4ms 8points input filter 0 15ms all input PID control function RS 232C communication 2 5 Section Items Models Description Remark G7M DR40A G7M DR40A DC G7M DT40A 1 0 Points 24 DC inputs 16 relay outputs G7M DR40A G7M DR40A DC 24 DC inputs 16 transistor outputs G 7M DT40A e Program capacity 68k bytes Built in function High speed counter Phase1 16 kHz phase2 8 kHz 1channel pulse output 1 x2 kHz pulse catch pulse width 0 2ms 4 points external contact point interrupt 0 4ms 8points input filter 0 15ms all input PID control function RS 232C communication G7M DR60A G7M DR60A DC G7M DT60A 1 0 Points 36 DC inputs 24 relay outputs G7M DR60A G7M DR60A DC 36 DC inputs 24 transistor outputs 7M DT60A e Program capacity 68k bytes e Built in function High speed counter 1 16 kHz phase2 8 kHz 1channel pulse output 1 x2 kHz pulse catch pulse width 0 2ms 4 points external contact point interrupt 0 4ms 8points input filter 0 15ms all input PID control function RS 232C communication Expansion module Digital 1 0 module G7E DR 10A e 1 0 points 6 DC inputs 4 relay outputs A D D A Composite module G7F ADHA e A D 2 channel D A 1 channel Analog timer module G7F AT2A e Points
27. 0 0 0 becomes 2000 5V is output When 961X0 0 1 becomes 2400 6V is output When 1 0 0 2 becomes 2800 7V is output When 1 0 0 3 becomes On 3200 8V is output When 1 0 0 4 becomes On 3600 9V is output b System configuration Base Unit ND D A mixture module Digital extended module guai 7 49 Chapter 7 Usage of Various Functions 7 2 2 Analog timer 1 Performance specification The performance specification of the analog timer module are following Item Specification Number of channels 4 Output value range 8 Bit Digital output range 0 200 Setting type Setting by variable resistance Accuracy of timer 2 0 Accuracy about max value Operation method Reading by means of using executive function block AT2RD Internal current 50 consumption Number of module Max 3 modules installment Weight 200g 2 Names of parts and functions No Name Contents Indicate the operating status the G7F AT2A RUNLED On normal operating Off DC 5V power off or the g7f at2a module fault Setting up the length of timer through variable resistance to every Channel channel Extension cable Extension cable connection terminal 7 50 Chapter 7 Usage of Various Functions 3 Function block 1 Function of the function block
28. 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error codes Error code 8 21 Chapter8 Communication Function 5 Example This example supposes that 4 byte HAA15056F is written in QD0 0 0 of station NO 1 and BCC value is checked Computer request Format PC GM7 Base Unit Command Formatname Header Command Variable Length Variable Name Number of data Data type Frame Example ENQ SB 08 QD0 0 0 01 15056 254442302 30 414131353 2 30 0353646 ASCII value H05 For ACK response after execution of command PC GM7 Base Unit Format name Header Command Command type Frame check Frame Example ACK W SB BCC ASCII value H06 H77 B For response after execution of command PC GM7 Base Unit Format name Header Command Command type Em Frame check Frame Example NAK W SB Error BCC ASCII value H15 H77 H5342 Error 8 22 Chapter8 Communication Function 5 Monitor register X 1 Introduction Monitor register can separately register up to 10 in combination with actual variable reading command and carries out the registered one through monitor command after registration 2 PC request Format Format name Header Command Registration No Registrati
29. 4 In case of selection Reset command in the GMWIN it restarts in accordance with setting in parameter and in case of selection Overall Reset command it restarts as cold restart mode 2 Warm Restart 1 Itis executed when the restart mode parameter has been set to the warm restart mode 2 A data which set as retain amp initial will be retain and a data which set as initial value will be set with default value during the warm restart All other data will be cleared with 0 3 Though the parameter has been set to the warm restart mode cold restart will be executed at the first execution of a program after it has been stopped due to its down load and error 4 Though the parameter has been set to the warm restart mode cold restart will be executed if data contents are abnormal i e the data does not remain at a power failure 5 28 Chapter 5 CPU Module Restart mode is executed as the figure given below when the power has been re applied during execution of the CPU module R UN Check operation mode gt T OP y cr mode operation abnormal Retain variables are Timeout Cold restart Restart mode 15 Warm restart Execute warm restart Execute cold restart RUN mode operation 4 Data initialization according to the restart mode The variables relating to the restart mode are classified into three types i e default variable initialization variable and r
30. 4points Digital output range 0 200 Cnet I F module G7L CUEB e RS 232C 1 channel G7L CUEC e RS 422 1 channel Not available for 10 poiunt units Chapter 3 General Specifications Chapter 3 General Specifications 3 1 General specifications The following shows the general specifications of the GM series Specifications References Operating ambient 0 559 Temperature Storage ambient 25 70 C Temperature Operating ambient 3 5 95 RH non condensing Humidity Storage ambient 4 2 5 95 RH non condensing Humidity Occasional vibration Frequency Acceleration Amplitude Sweep count 10 lt f lt 57Hz 0 075mm ra 57 lt f lt 150Hz 9 8m s 1G 5 Vibrations Continuous vibration 10 times foreach X IEC 611312 Frequency Acceleration Amplitude Y Z axis 10 lt f lt 57Hz 0 035mm 57 f amp 150Hz 4 9 5 0 5G e Maximum shock acceleration 147 m s2 15G 6 Shocks Duration time 11ms 61131 2 e Pulse wave half sine pulse 3 shocks per axis on X Y Z axis Square wave MOIS Internal Impulse noise x1500V Standard Electronic EC 611312 discharge Voltage 4 kV Discharge by contact EC 8012 Radiated EC 611312 electromagnetic 27 500 MHz 10 V m 3 7 Noise Immunity field bis 801 3 Digital KO Digital I O igi Fast trans
31. 55 5353 direct Continuos variable writing 77 57 5 5342 CPU Status reading H73 H53 5354 Reads direct variables of Bit Byte Word and Dword type Writes data to direct variable of Bit Byte Word and Dword type Reads flag list like PLC operation status and error inFormation For detailed flag contents refer to GM7 manual ne Command Division Main command Register No Treatment Code ASCII code iud ASCII code Monitoring variable 78 uoo Hoo 13030 3039 Register variables to monitor register H58 Execution of H79 monitoring y Y H59 H00 H09 3030 3039 Execute registered variables to monitor 1 GM7 base unit identifies capitals or small letters for main commands but not for the others 2 If it s a main command in capitals it calculates BCC value But if it s not it doesn t Therefore when BCC for frame check is used main commands must be in small letters 3 Commands to read write symbolic variable or array variable can t be used in built in communication 8 8 Chapter8 Communication Function 8 1 5 Data type It s possible to read and write direct variable in built in communication When direct variable is used be aware of data type 1 Data type of direct variable Available types of device M internal memory Q output input e When direct variable is used attach 96 2
32. 7 1 4 Input Filter ener 7 20 7 1 5 PID Control function 7 21 7 1 6 External Interrupt function 7 40 7 2 Special Module 5 ease 7 42 7 2 1 A D D A Combination 7 42 7 2 2 Analogue Timer 5 7 50 Chapter 8 Communication Function 8 1 Direct Protocol Communication 44 442 2 22222 8 1 8 1 1 Introduction aie hee nh ae ee AAs 8 1 8 1 2 System Configuration method eene 8 2 87 3 8 5 8 1 4 List of Commands eiie ctr 8 8 8 1 5 Data a a erede cree cere 8 9 8 1 6 Execution of Commands 4444224 1211 8 10 8 1 7 1 1 Built in Communication between GM7 s 8 30 8 1 8 Error Codes Oe ccn accedet ecc 8 48 8 2 User Defined Protocol Communication 2222111 8 50 8 2 1 Introduction 8 50 8 2 2 Parameter
33. 912 014 016 18 020 Q22 g amp 50 60HZ FG e aor G03 005 007 009 013 5 COV2 017 019 O71 d LJ JILI JL FUP LP FLY LIE Ly LY IL L FLY FLY L LJ LY PIL 6 3 2 Expansion Module Chapter 6 Input and Output Modules 1 Specifications Model Expansion Module Specifications G7E DR10A Output point 4 points nsulation method Relay insulation Rated load Voltage current DC24V 2A r load AC220V 2A COS VP 1 1 point 5A 1COM in load Voltage current DC5V 1mA ax load voltage current AC250V DC110V Current leakage when off 0 1mA AC220V 60Hz ax On off frequency 1 200 hr Surge Absorber None Mechanical More than 20 000 000 Rated on off voltage current load 100 000 or more Life Electrical AC200V 1 5A AC240V 1A COS P 0 7 100 000 or more 200 1A AC240V 0 5A COS XP 0 35 100 000 or more DC24V 1A DC100V 0 1A L R 7ms 100 000 or more Off gt On 10 ms or less Response time 0n Off 12 ms or less Common method 1 point 1COM 2 points 1COM Operation indication
34. ARRAY type must be always set by byte Ex1 0 QB0 0 0 2 0 MWO MDO QX0 0 0 QWO 0 x This field is to declare commands and fixed data that will be used in communication frame and constant data to be declared by inputting ASCII input must be done within 10 characters and hex within 20 characters If the number exceeds the limit set the next segment as the same type and continue to input there Ex1 10RSB06 MW 10006 r Segment 1 Type const 10 5 08 C Hexinput ASCII Input size Byte Segment 2 mw 0006 C Hexinput 6 ASCII Input size Byte If the segmentis declared as ARRAY type although word type data is declared in CONST type the related area is to be set by byte 2 As an dedicated protocol communication 10RSB06 MW10006 is a frame to execute reading 6 word data from MW100 at the slave station no 16 At the moment ARRAY must be set in 6 words that is 12 bytes as the area to save the data thatis read Segment 3 Type ARRAY Receive by Hex Converting Size 12 Byte C HexInput 6 ASCII Input It is a radio button to select the input type of commands There re 2 kinds as hex or ASCII value 1 10 5 06 10100 Ex2 31 30 52 53 42 30 36 25 57 44 31 30 30 Send ASCII Converting Receive by Hex Converting If ARRAY variable data area is set it asks whether it would conv
35. Acceleration adjustment pulse is to output No output contact point where is designated to the pulse output No output contact point where is designated to the direction output 04 Output contact point designation 05 Output contact point designation 6 Operating explanation 1 Increasing Decreasing velocity inclination It can be adapted for initiative point and end point of pulse output operation Increasing velocity inclination inclination which is from velocity 0 to designated max Output cycle Decreasing velocity inclination inclination which is from designated limited value of velocity to velocity 0 Increasing velocity inclination and decreasing velocity inclination of GM7 pulse output are set up as the same Set up proper value by the sort of motor because if I D velocity increases the arrival time to the designated max Cycle also increases 7 13 Chapter 7 Usage of Various Functions Condition 1 Set up as AEC_NO 1 MAX_SPED 1000 PLS_NO 5000 1 0 inclination is 1 output cycle of max Pulse is 1000pps and the no Of the output pulse Is 5000 If I D velocity inclination is 1 1 pulse is output on the 1st step velocity 50pps Pulse velocity is 50pps so time consuming is 20ms 2 pulses are output on the 2nd step velocity 100pps and time consumes 20ms amp By calculation in the same way the time to reach to 1000pps is 20ms 20 1 380ms and the no
36. Be cautious when setting task conditions 5 Protection of the programs under execution from task programs e f problems can be occur in case that program lose its execution continuousness by the task programs which have higher proprieties the execution of task programs can be partly perverted For program protection use the DI function Task program start up disable or EI function task program start up enable e Use DI function where program needs protection and El function where program needs cancellation After the scan program ends of the running program automatically it becomes permissible Initialization program doesn t get influences from DI and El 3 Time driven task program processing method The followings explain the processing method of a task program when its task condition start up condition has been set to drive by time 1 Settings that have to be set for the task e Set the task execution cycle and its priority which are used as start up conditions for the task programs to be executed Priority number will be task number 2 Time driven task processing e The corresponding time driven interrupt task program will be executed every setting time internal execution cycle 3 Precautions for using the time driven task program e While a time driven task program is being executed or ready for its execution if a same priority task program has been invoked to be executed the newly invoked task will be igno
37. Chapter 1 General 9 Debugging function On line debugging is available if the PLC Operation mode is set to debug mode executed by one command executed by break point settings executed by the condition of the device executed by the specified scan time 10 Various program execution function Time driven task extemal and intemal task program as well as scan program can be executed by setting the execution condition The user can set variously the program execution mode 1 3 Chapter 1 General 1 3 Terminology The following table gives definition of terms used in this manual Terms Definition Remarks A standard element that has a specified function which configures the Pid 1 such as 1 0 board which inserted onto the mother board Power Supply module 1 0 module A system which consists of the PLC and peripheral devices A user program can control the system To restart the PLC system and user programs after all of the data Variables Cold Restart and programs of I O image area of internal register of timer of counter were set to the specified conditions automatically or manually Warm Restart In the warm restart mode The power supply Off occurrence will be informed to the user program and the PLC system restarts with the previous user defined data and user program after the power supply Off 1 0 Image Area Internal memory area of the CPU module which
38. It is used to designate this PLC system when a network system is configured using communication modules 2 Enabling Disabling the control of the PLC via communications e This parameter is used to enable or disable the remote control of this PLC system through the FAM or computer link module etc except for the GMWIN If this parameter has been set to enable change of the operation mode and download of programs are available via communications 3 Restart Mode e This parameter is used to set the restart mode in the PLC system When the system re starts one of the cold restart or warm restart is selected in compliance with the parameter setting 4 Resource CPU Name Resource Name is the name that each CPU module configuring the PLC has When configuring a network system the name is used to designate each CPU module that is used the system Only one CPU module can be mounted in the GM7 series therefore only the resource 0 is valid 1 6 Appendix 1 System Definitions 5 Scan Watch Dog Time This parameter is used to set the maximum allowable execution time of a user program in order to supervisor its normal or abnormal operation Only one CPU module can be mounted in the GM7 series therefore scan watch dog is valid to only the resource 0 6 Input Property e t s used to select contact point that will be used for setting input filter or as input pulse catch 3 Communication parameter This is a commu
39. PROORANLABLE Loac COWTPDLL LP AC110 220V e DC24V e DC24V e DOSY 4 60 point base unit GTM DPEOA PR OSS UM ABLE DC24V e DC24V e AC110 220V DC24V e 6 9 Chapter 6 Input and Output Modules 6 3 2 Base unit Transistor output 1 Specification Model Base Unit Specifications G7M DT10A G7M DT20A G7M DT30A G7M DT40A G7M DT60A Output point 4 points 8 points 12 points 16 points 24 points Insulation method Photo coupler insulation Rated load voltage DC12 24V 0 5 1 point 2A 1COM Operating voltage DC10 8 24 4V Max load current 0 5A 1 point 3A 1 0 Current leakage when off 0 1mA or less at maximum load Max voltage drop when on DC1 5V orless Max inrush current 10ms or less Surge Absorber Clamp diode Response off On 2 ms or less time 0n gt Off 2 ms or less External Voltage DC24V 10 Ripple voltage 4 Vp p or less power supply Current 20mA or less 30mA or less 40mA or less 50mA or less 80mA or less 8 points 1 0 8 points 1 0 8 points 1 Common method 4 point 1COM 8 points 1COM 4 points ICOM x2 x3 Operation indication LED is on at on status of output 2 Circuit Vece 02 12 24 Chapter 6 Input and Output Modules 3 Output wiring 1 10 points base unit G7M DTIOA PROGRAMMABLE E Roel 00 01 02 03 CONTROLLER OOO X is Qut 24VDC O 5A
40. and if 1 by H01 3031 3 Response format ACK response Frame check BCC Format name Header Station No Command Command type Frame Example ACK H20 W w SS ASCII value H06 H57 77 Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent 4 Response format NAK response Error code Format name Header Command Command type Hex 2 Byte Frame Example NAK SS H4252 H15 H34323532 ASCII value Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error Error code codes 8 18 Chapter8 Communication Function 5 Example This example supposes that is written in MW230 of station No 1 and BCC value is checked Computer request format PC GM7 Base Unit Format name Header Station No Command Command type Number of blocks Variable Length Variable Name Data Frame Example ENQ 01 55 01 06 MW 230 HOOF F ASCII value For ACK response after execution of command PC Format name 05
41. to base unit using a built in port 2 2 3 RS 232C Communication over a long distance via modem by Cnet I F modules G7L CUEB G L CUEB 2 1 n Communications system This method can connect between one computer and multiple base units for up to 32 stations G7L CUEA module is not required for 10 point base units be connect ed Max 32 RS 232C RS 422 Converter G7L CUEC G L CUEC 2 3 2 2 Product functional model The following describes functional model of the GM7 series 2 2 1 Product Function Block Product function block for the GM7 series is as follows Base Unit Expansion Modules Input power Input signal Input signal Power supply DC24V Power Special suppl dad 20 communications modules Built in RS 232C I F Output signal Output signal Sub system Description CPU Signal processing function eOperating system function eApplication program storage memory function eData storage memory function eApplication program execution function Input e The input signals and or data obtained from the machine process to appropriate signal levels for processing Output The output signals and or data obtained from the signal processing function to appropriate signal levels to drive actuators and or displays Power Supply Provides for conversion and isolation of the PLC system power from the power supply
42. 08010 1 RD_DBO 10 0 RD DBO 20 1 RD DB0 30 0 RD 08011 0 RD DBO L1 1 RD DBO 21 1 RD_DB0 31 0 RD_DB0 2 1 RD DBO 12 0 RD DB0 22 0 RD DB0 22 1 RD 08013 1 RD 0801131 1 RD DB0 23 1 RD DB0 33 1 RD DBO 4 0 RD DBO 14 1 RD DBO 24 0 RD DBO 34 0 RD DBO 5 0 RD DBO L5 0 RD DB0 25 1 RD DB0 35 1 RD DBO 6 1 RD DBO 16 0 RD DBO 26 1 RD DB0 36 1 RD DBO 7 1 RD 0801171 1 RD DB0 27 1 RD DBOB7 X RD DBO 8 1 RD DBO 18 0 RD DB0 28 0 RD DBOD8 X 0 0 X mn RD DBO 9 RD DBO 19 RD DBO 29 RD DBO 39 variable to which saves the previously read data must be array type The size of array type must be same as or bigger than the size of the data of read If its smaller the error code is marked in STATUS The previously read data is saved from the variable DBO 0 The remnant part of an array variable is redundancy after the variable is filled with the previously read data 8 93 Chapter 8 Communication Function 2 Its supposed that GM7 base unit is the master and it reads Input Status of the station no 17 a Modicon product The master reads status of the Input 10197 10218 of the slave station no 17 The Input of the slave Station is supposed to be as follows and the data that are previously read is saved in any array variable RD_DB1 ofthe 25 sized BOOL type Status X X 1 1 0 1 0 1 1 1 0 1 Hex 3 5 D Stat
43. 1 RD DB1 1 RD 08109 1 RD 081 15 1 RD 081021 i RD_DB1 4 0 RD_DB1 10 0 RD_DB1 16 1 RDDBID2 X 1 0 X RD_DB1 5 RD_DB1 11 RD_DB1 17 RD_DB1 23 mn variable to which saves the previously read data must be array type The size of array type must be same as or bigger than the size of the data of read If its smaller the error code is marked in STATUS The previously read data is saved from the array variable DB1 0 The remnant part of an array variable is redundancy after the variable is filled with the previously read data 8 95 Chapter 8 Communication Function 2 000304 Input REQ Execute function block when it s 1 rising edge X goo ADDR Inputthe number of the slave station FUNC Input the function code xd NM Itsupports function code 03 and 04 ADDRH High address of the starting addresses to be read from the slave USINT USINT station TM ADDRL Low address of the starting addresses to be read from the slave station T NUMH High address of the data size of the starting address to be read from the slave station USINT NUML Low address of the data size of the starting address to be read from the slave station USINT Output WORD RD DATA A variable name to save the data that is read The number of array is to be declared as same as or bigger in data size NDR without error output 1 and keep the value till the call for the
44. 1 block max 16 blocks Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent Number of data means byte number of hex type and is converted into ASCII This number is determined according to memory type X B W D included in direct variable name of computer request F ormat Number of data in accordance with its variable type is as follows Data type Available direct variable Number of data BOOL X 96M X 96QX 96IX 1 Byte B MB QB IB 1 WORD W 0 1 2 DOUBLE WORD D MD QD ID 4 Number of data n data area there are the values of hex data converted to ASCII code saved Ex 1 The fact that number of data is HO4 ASCII code value H3034 means that there is hex data of 4 bytes data DOUBLE WORD Hex data of 4 bytes is converted into ASCII code in data 8 11 Chapter8 Communication Function Ex 2 If number of data is H04 and the data is H12345678 ASCII code converted value of this is 31 32 33 34 35 36 37 38 and this contents is entered in data area Namely highest value is entered first lowest value last 1 If data type is BOOL data read is indicated by bytes of hex Namely if Bit value is 0 it indicated by and if 1 by H01 4 Response format NAK response Error code Format name Header Comm
45. 2 Range 0 T 0 thatis from header ENQ to tail EOT Complement None Mask Mask with HFF by XOR Chapter 8 Communication Function 7 After BCC setting click OK of Frame 0 window to register the frame as follows 8 Double click frame list 1 to activate Frame 1 window to set as follows ow sj zip Fe Retell m 2 SSS mp 8 72 Chapter 8 Communication Function Header STX TX RX Receive Segment 1 Type CONST field RCV_FRAME select button for ASCII input Segment 2 Type ARRAY field 10 size 4 bytes Tailer ETX 9 After setting click OK of Frame 1 to register as follows User Defined Frame List Frame Information 2 Not defined THR Receive 3 Not defined Header STX 4 Not defined 2 5 Not defined 501 constant 6 Not defined 502 hex 4 7 Not defined 8 Not defined 9 Not defined 864 null 10 Not defined 11 Not defined 12 Not defined SGB null 13 Not defined 14 Not defined 15 Not defined 868 null Tailer ETX BCC Not Set 10 Click OK to exit communication parameter setting and click OK to complete setting 8 73 Chapter 8 Communication Function 12 Setup a program like the following figure and download to the slave station GM7 For the detailed program setting and downloading refer to GMWIN manual Function block is used
46. 2 TIME D TIME S TIME and REF are 10 times scaled up not 100 times 2 Auto tuning function block PID7AT a Description of F B Function block Description Input EN enable input of function block SV 1 set value goal value data input range 0 4000 PV 1 present value input range 0 4000 PID7CAL S_TIME 2 scan time input sampling interval 8001 EN DONE BOOL range 0 100 INT RIPPLE 3 select the wave form to be used for auto INT RIPPLE tuning operation Select 1 in general case USINT Output INT SP 800 DONE Turn on whenever the auto tuning operation is completed INT Py UD END Turns on when the F B operation is completed with no error and keep the status UINT UINT until next F B execution UINT STAT shows the error code MV the manipulated value of current loop on which the auto tuning operation is performed range 0 4000 P the proportional gain constant obtained by auto tuning operation range 0 01 100 00 the integral time constant obtained by auto tuning operation D the derivative time constant obtained by auto tuning operation 1 SV setting value the designated value and PV process value present value of GM7 PID operation have the range 0 4000 The range is set with the consideration of the resolution of A D and D A module of GM7 series 12 bits and offset value When setting the SV or PV please be carefu
47. 8 23 Chapter8 Communication Function 4 Response Format NAK response Error code Format name Header Station No Command Registration No Frame check Hex 2Byte Frame Example ACK H10 09 1132 ASCII value H06 31313332 Item Explanation When command is one of lower case r only one lower byte of the value resulted by adding BCC 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error Error code codes 5 Example This example supposes that direct variable MWO of station NO 1 is monitor registered Computer request Format PC 7 Base Unit Registration F ormat Format name Header Staton No Command Registration No Tal Frame check R Number of blocks Variable length Variable name Frame Example ENQ 01 X 01 55 01 H04 MWO EOT BCC ASCII value H05 H3031 H78 H3031 H525353 3031 H3034 H41534446 H04 For ACK response after execution of command PC GM7 Base Unit Format name Header Command Registration No Frame check Frame Example ACK X H01 BCC ASCII value H06 H78 B For response after execution of command PC GM7 Base Unit Format name Header Command Registration No Error code Frame check NAK 01 Frame Ex
48. Binary 24 bits Max counting speed 1 phase 16kHz 2 phase 8kHz Up Down 1 phase Sequence program or B phase input selection 2 phase Auto select by phase difference of A phase and B Multiplication 1 2 0r4 Preset input Sequence program or external preset input 2 Input specification Items Specifications Rated input 24VDC 15 A1 B phase On voltage 14VDC or higher Off voltage 2 5VDC or lower Rated input 24VDC 15 On voltage 19VDC or higher Preset input Off voltage 6V or lower On delay time Less than 1 5ms Off delay time Less than 2ms T 1 Chapter 7 Usage of Various Functions 3 Names of wiring terminals Counter cock Preset input T No Terminal No Names Usage 100 24 A Phase input terminal 101 o B 24V B Phase input terminal Preset 24V Preset input terminal Common input Common terminal 4 External interface circuit Input warranted voltage Terminal Internal circuit ernal circu No Signal name Operation A phase pulse On 14 26 4 V 2 M Input DC24V Off 25V B phase pulse On 14 26 4 V Input DC24V Off 2 5V or lower COM input common Preset input 19 264 V DC24V 6V or lower COM input Common 7 2 Chapter 7 Usage of Various Functions 5 Wiring instructions A high speed pulse input is sensitive to the external noi
49. Byte Segment 3 Begmant 7 None E 3585 E Hes num Segment 4 Type inp ai Tae mee NONE 6 e Segments MONE muit siri Byte Ha Send receive Send Segment 1 Type CONST field QB0 1 0 select button for ASCII input Segment 2 Type ARRAY field QB0 1 0 size 1 bytes Tail None 5 Double click frame list 1 to activate Frame 1 window to set as follows Chapter 8 Communication Function Low jj Setting value Header None Send receive Receive Segment 1 Type CONST field QB0 1 0 select button for ASCII input Segment 2 Type ARRAY field QB0 1 0 size 1 bytes Tail None 8 82 Chapter 8 Communication Function 6 Setup a program like the following figure and download to the slave station GM7 For the detailed program setting and downloading refer to GMWIN manual GMWIN for Windows c amwinttsourcestuser define mas prj Project Program Toolbox Compile Online Debug Window Help alee A 2 00100 Baloo Row 0 4 ACTUATOR Row 1 uM ERN ow r s 1 Row 2 ADD OUT ADD 0 ERR Row 3 1 IN2 STAT 4 Row Row 6 Row 7 Row 8 Row 9 Row 10 Row 11 ES ex Row 12 cw 13 Bi
50. Change the battery capacity time and the be indicated battery when specified reduction Specified source service life is exceeded If fuse melting disconnection change Fuse Visual check No melting disconnection the fuse periodically because a surge 1 02 current can cause heat Chapter 11 Troubleshooting Chapter 11 TROUBLESHOOTING The following explains contents diagnosis and corrective actions for various errors that can occur during system operation 11 1 Basic Procedures of Troubleshooting System reliability not only depends on reliable equipment but also on short downtimes in the event of faults The short discovery and corrective action is needed for speedy operation of system The following shows the basic instructions for troubleshooting 1 Visual checks Check the following points Machine operating condition in stop and operating status Power On Off Status of I O devices Condition of wiring I O wires extension and communications cables Display states of various indicators such as POWER LED RUN LED ERR LED and 1 0 LED After checking them connect peripheral devices and check the operation status ofthe PLC and the program contents 2 Trouble Check Observe any change in the error conditions during the following Switch to the STOP position and then turn the power on and off 3 Narrow down the possible causes ofthe trouble where the fault lies i e e Inside or outside of the PLC
51. Chapter 5 CPU Module 4 Remote reset 1 This function permits remote operations to reset the CPU module which locates in the place where direct operations cannot be applied when an error has occurred 1 For remote function operations refer to the GMWIN User s Manual Chapter 7 On line 5 6 4 1 0 Force On Off function 1 Force On Off setting method Force on off setting is applied to input area and output area Force on off should be set for each input and output the setting operates from the time that Force 1 0 setting enable is set This setting can be done when 1 0 modules are not really loaded 2 Force on off Processing timing and method 1 Force Input e After data have been read from input modules at the time of input refresh the data of the junctions which have been set to force on off will be replaced with force setting data to change the input image area And then the user program will be executed with real input data and force setting data 2 Force output e When a user program has finished its execution the output image area has the operation results At the time of output refresh the data of the junctions which have been set to force on off will be replaced with force setting data and the replaced data will be output However the force on off setting does not change the output image area data while it changes the input image area data 3 Force on off processing area e input output areas for force on off setting are
52. Communications Provides the data exchange with other systems such as GMWIN computers Interface 2 4 2 2 2 6 7 Series System Equipment Section Items Models Description Remark Basic Base Unit e I O Points 6 DC inputs 4 relay outputs G7M DR10A G7M DR10A DC 6 DC inputs 4 transistor outputs G7M DT10A e Program capacity 68k bytes G7M DR10A e Built in function G7M DR10A DC High speed counter Phase1 16 kHz phase2 8 kHz 1channel G7M DT10A pulse output 1 x2 kHz pulse catch pulse width 0 2ms 4 points external contact point interrupt 0 4ms 8points input filter 0 15ms all input PID control function RS 232C communication 1 0 Points 12 DC inputs 8 relay outputs G7M DR20A G7M DR20A DC 12 DC inputs 8 transistor outputs 7M DT20A Program capacity 68k bytes G7M DR20A e Built in function G7M DR20A DC High speed counter Phase1 16 kHz phase2 8 kHz 1channel G7M DT20A pulse output 1 x2 kHz pulse catch pulse width 0 2ms 4 points external contact point interrupt 0 4ms 8points input filter 0 15ms all input PID control function RS 232C communication 1 0 Points 18 DC inputs 12 relay outputs G7M DR30A G7M DR30A DC 18 DC inputs 12 transistor outputs G 7M DT30A Program capacity 68k bytes G7M DR30A Built in function G7M DR30A DC High speed counter Phase1 16 kHz phase2 8 kHz 1channel G7M DT30A pulse output 1 x2 kHz
53. Frequency 50 60 Hz 47 63 Hz Current 0 5A AC110V 0 25A AC220V 0 6A AC 110V 0 3A AC220V Input Inrush current 30 A or less Efficiency 65 or higher rated input load Fuse 1A Slow AC250V 2A Slow AC250V Dropout tolerance 20 ms or less Output Voltage DC 5V DC 5V DC 5V 1 Current 1 0A 12 20 Output Voltage DC24V 2 Current 0 2A Output status indication PWR LED On when normal output status 5 1 2 DC power supply G7M DR10A DC G7M DR20A DC G7M DR30A DC G7M DR40A DC G7M DR60A DC Voltage DC10 2 28 8V Current 1 2A DC12V 0 6A DC24V 1 8A DC12V 0 6A DC24V Inrush current 60 A or less 70 A or less Efficiency 6096 or higher rated input load Fuse 5A Slow 50V Dropout tolerance 1 ms or less Output Voltage DC 5V 1 Current 1 0A Output status indication PWR LED On at normal output status 5 1 Chapter 5 CPU Module 5 2 CPU Specifications The following table shows the general specifications of the IMO GM7 series Items Specifications Remarks Cyclic operation of stored program Interrupt task operation 1 0 control method Scan synchronized batch processing method Immediate input output is available Refresh method by direct I O function Programming language Instruction List Ladder Diagram Sequential Function Chart LD 13 IL 21 Basic function block Special
54. GM7 Correct length of data The number of data in execution is 0 or H1232 Data size error If data type is bite the number of data bigger than 128 bytes must be from 1 128 When use other characters than x X b B w W d D at GM7 H2432 type error Check data type and execute again When use b B d D at GM7 Ex1 Use commands like db or dd Variable request When omit H7132 Check Format correct and execute again Format error When omit in commands When exceed assigned area Ex1 0 0 0 64 gt Area exceeding error 0 0 8 gt Area exceeding error Ex2 When an address isn t decimal Correct the size within the assigned area H2232 exceeding error like 00 MBOOA Ex3 When set area size as 2Kbytes GMWIN but exceed over 2 Kbytes like MB400 and execute again Error code Error condition and causes Treatment 8 48 Chapter8 Communication Function Monitor execution Rearrange the monitor register no not to go H0190 Exceeding limit of register No error over than 9 and reset Rearrange the monitor register no not to go H0290 register error Exceeding limit of register No over than 9 and reset When use commands that aren t supported Be familiar with the manual H6001 Syntax error Ex1 When use variables Check if the system stopped like 95M X100 0 0 0 0
55. In case of error occurrence the PLC system write the error contents the corresponding flags and stops or continues its operation complying with its operation mode 1 PLC hardware defect The system enters into the STOP state if a fatal error such as the CPU module defect has occurred and continues its operation if an ordinary error such as battery error has occurred 2 System configuration error This error occurs when the PLC hardware configuration differs from the configuration defined in the GM7 series The system enters into the STOP state 3 Operation error during execution of the user programs It the numeric operation error of these errors occurs during execution of the user programs its contents are marked on the error flags and the system continues its operation If operation time overruns the watchdog time or I O modules loaded are not normally controlled the system enters into the STOP state 4 External device malfunction The PLC user program detects malfunctions of external devices If a fatal error is detected the system enters into the STOP state and if an ordinary error is detected the system continues its operation mma I 1 In occurrence of a fatal error the state is to be stored in the representative system error flags and an ordinary error in the representative system warning flags 2 For details of flags refer to Appendix 2 Flag List 5 22 Chapter 5 CPU Module 5 4 5 Precautions when usin
56. OFF when input is off ON when output is ON OFF when output is off See chapter 11 OutputLED Check that the LEO turns ON and OFF See chapter 11 101 Chapter 10 Maintenance 10 3 Periodic Inspection Check the following items once or twice every six months and perform the needed corrective actions Check Items Checking Methods J udgment Corrective Actions Ambient Measure with 0 55 Ambient temperature USER Adjust to general standard Environme Ambient Humidity 5 95 RH Internal environmental standard of i hygrometer measure irol secl 1 Ambience corrosive gas There should be no corrosive Convo section gases The module should be move the The module should be mounted Looseness Ingress unit securely Retighten screws Conditions dust or Visual check No dust or foreign material foreign material Loose terminal Re tighten screws Screws should not be loose Retighten Screws Distance between Connecting Visual check Proper clearance Correct conditions inna Connectors should not be Retighten connector mounting Loose connectors Visual check loose Screws Measure voltage between input 85 264V AC Line vol heck Change supply power terminals 20 28V DC Battery time and battery capacity Check total power failure If Battery capacity reduction should not Battery life indicated
57. P 2A C sava 240 000 07 L 50 60HZ Coma J LIL L IL 2 20 points base unit G7M DT20A PROGRAMMABLE aur POE 00 01 02 03 04 05 06 07 CONTROLLER LG Out 24VDC 0 5A P 2 55VA _ AGIOOTZ4OV aoo 002 004 006 _ 50 60HZ FG COMO oo 003 a05 007 L ILI IL L 2 30 point base unit G7M DT30A PROGRAMMABLE aut LOGIC 00 01 02 03 04 05 06 07 08 0910 11 CONTROLLER GRO Out 24VDC 0 5A P 2 587 oue a Tte oo aos KP EDIEDIEPIKP ED
58. Program Edit Toolbox Compile Online Debug Window Help Seel ale ol m e s LILI ctgmwintsourcet modbus_slave src qc tgmwintsourcettmodbud_slave prj f PROJECT PLC Type GM E CONFIGURATIONCPLC gt Configuration Name UNNAMED E ACCESS VARIABLES variables declared RESOURCE CPU gt Name RES RESOURCE GLOBALS variables declared TASK DEFINITIONS 1 tasks defined LD 1 PROGRAM MDOBUS _SLAVE crttgmvinttsourcetimodbus_slave s rf gt Edit Creates a new project Off line 8 108 Chapter 8 Communication Function 2 Select communication parameter in GMWIN parameter and double click on it the window of communication parameter opens Communicaton Parameter Read stairs Setparameters as the following table Communication Method Protocol and Mode Station Baud Data Parity Stop Transmission Rate Bit Bit Bit Mode ASCII Communication Channel Modbus RS232C Null Modem or RS422 485 17 2400 7 Even 1 8 109 Chapter 8 Communication Function 3 Setup a program like the following figure and download to the slave station GM7 For the detailed program setting and downloading refer to GMWIN manual GMWIM for Windows cotgmwinttsource modbud_slave prj Project Program Edit Toolbox Compile Online Debug Window Help ale Oo ms m me ci gm
59. RXD Chapter8 Communication Function 8 1 3 Frame Structure 1 Base Format 1 Request frame external communication device GM7 base unit Max 256 Bytes Header Command Frame check Station Command Structurized data area ENQ BCC 2 ACK Response frame GM7 base unit external communication device when receiving data normally max 256 Bytes Header Tail Frame check Station Command Structurized data area or null code ETX BCC 3 NAK Response frame GM7 base unit external communication device when receiving data abnormally max 256 Bytes Header Command Tail Frame check Station Command Error code ASCII 4 Byte ETX BCC 1 Used control codes are as follows Be familiar with the following control codes Because they are importantly used for communication Control codes Codes Hex value Name Contents ENQ H05 Enquire Request frame initial code ACK H06 Acknowledge ACK response frame initial code NAK H15 Not Acknowledge NAK response frame initial code EOT H04 End of Text Request frame ending ASCII code ETX H03 End Text Response frame ending ASCII code 8 5 Chapter8 Communication Function 1 The numerical data of all frames are ASCII codes equal to hexadecimal value if there s no clear statement The terms in hexadecimal are as follows e Station No When the main command is R r or W w and t
60. UL dint Multiplication 24 24 UL int Multiplication 2 5 6 BCD TO INT Conversion of BCD type into INTtype 69 108 13 Conversion of BCD type into SINT type TE TO SINT DATE TO STRING T TO INT T TO BCD 0 Conversion of BYTE type into SINT type 12 5 3 a Conversion of DATE type into string Conversion of DINT pe into INT type L xe e Conversion of DINT type into BCD type DT TO DATE Conversion of DT type into DATE type 16 DT TO TOD Conversion of DT type into string NT TO DINT Conversion of INT type into BCD type NT TO BCD DELETE delete string 948 LEN To obtain the length of a string LIMIT str 0 output upper or lower limits AX str To output the maximum input value To obtain the middle part of a string EPLACE 0 replace a string with another R RIGHT To obtain the hr part of a scan ADD TIME time DI TIME 1 152 App3 1 Appendix 3 Function Block List Remark 1 The items marked with has following meaning 1 The size of the program memory which a program occupies when it uses the function once 2 The size of the program memory which a program occupies only one time though it uses the function many times 3 of IL programs 2 input variables 10 strings 2 The above shows the function lists when programs are written with IL instruction List language If programs ar
61. a communication channel for the communication using GM7 base unit s builtin communication and Cnetl F module G7L CUEC RS232C Modem Dedicated Line It s to be selected for the communication using an C e dedicated modem with Cnet I F module 7L CUEB ommunication ee Channel RS232C Dial Up Modem It s to be selected for the general communication connecting through the telephone line by dial up modem and Cnet I F module G7L CUEB Footnote Using Cnet I F module G7L CUEB supporting RS232C RS232C dedicated or dial up modem communication can be done but not through Cnet I F module G7L CUEC supporting RS 422 485 Time outin Master lt the time waiting a responding frame since the master GM7 base unit sends a request frame default value is 500ms ltmustbe setin consideration ofthe max periodical time for sending receiving of the Mout master PLC e set smaller than the max send receive periodical time it may cause communication error Modbus Master If itis setas the master its the subject in the communication system If it s setas the slave it only Slave responds to the request frame of the master Transmission Mode SelectASCll mode or RTU mode 8 90 Chapter 8 Communication Function 8 3 4 Function Block 1 000102 Input REQ Execute function block when it s 1 rising edge SLV ADDR Inputthe number ofthe slave station FUNC Input the function code
62. allow power supply then make program by means of analog timer module executive function block AT2RD after that download it to CPU module 2 Change CPU module to RUN mode and monitor output variable DATA value of function block AT2RD then control variable resistance of channel which is set up on function block of G7F AT2A 3 Then output value becomes small if variable resistance turns left And value of DATA becomes big if it turns right 4 When expected timer value is output as data stops controlling variable resistance Chapter 7 Usage of Various Functions 5 Program example 1 Program explanation Program which controls on delay time of output contact point within 0 to 20 sec By analog timer module 2 System configuration Base Unit Analog timer module 3 Program Project Program Edit Toolbox Compile Online Debug Window Help 8 x LER raal l e 110113 81 o rS TIMER CH Fon 0 I Fed QD M E Row 1 1 IH1 E E put nos 200 This program converts the usint type of on delay time into time data type data is 0 200 and 1 is 0 200 Rem 8 Row 4 CHO CH TIMER ON wi TN TH Row 5 EHO IH 0 CONERS 10 Row 6 COH DAT COH DATA PT T Chang the timer length from 0 200 to 0 2s Row 7 100 Using the on delay function block for turns q0 0 0 on Rom 6 4 Se
63. and the data that are read is saved in any array variable RD DWI of the 2 sized WORD type Register status 000 Data is sent starting from the low bit by byte unit An example of sending the above data is as follows 1 00 0A REQ Enter the input condition to operate SLV_ADDR 16 11 or 17 The slave station number FUNC 16 04 or 4 Enter 4 as the Input Registers is being read ADDRH 16 00 or 0 High byte of the starting addresses to be read from the slave station ADDRL 16 08 or 8 High byte of the starting addresses to be read from the slave station Read the no 8 to read starting from the input Registers 30009 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesn t need to be input Because its automatically processed by the input value of the input FUNC of the function block NUMH 16 00 or 0 High byte of which total data size to be read is expressed in hex NUML 16 01 or 1 Low byte of which total data size to be read is expressed in hex Example is to read only 30009 of which the total data size is 1 1 is H0001 in hex So is input for NUHH and H01 for Results RD DW1 0 000 or10 RD DWI I X variable to which saves the previously read data must be array type The size of array type must be same as or bigger than the size of the data of read If its smaller the
64. can be simultaneously specified Operation conditions Description Executed by the one If an operation command is ordered the system operates one operation unit operation unit step over and stops Executed to the If break step is specified in the program the operation stops at those step before execution specified breakpoint U to 8 break points can be specified If the contact area to be watched and the condition Read Write Value where the operation has to stop are specified the operation stops when the specified operation occurs at the specified contact after execution Executed by If the number of scan that will be operated is specified the operation stops after it has specified scan number operated by the specified scan number Executed according to the contact state 4 Operation method 1 Execute the operation after the debug operation conditions have been set in the GMWIN 2 In task programs each task can be specified to operation enable disable For detailed operation method refer to the GMWIN User s Manual Chapter 9 5 5 5 Operation mode change 1 Operation mode change methods The following method is used to change the operation mode 1 Change by the mode setting switch of CPU module 2 Change by the GMWIN connected with the CPU module communications port 3 Change by the GMWIN connected to the remote CPU module through Fnet 4 Change by the user s command using FAM or com
65. connected to output element in parallel Connect C and R across the load which are of registers of tens K amp When the wiring distance from the output module to the load is long there may be a leakage current due to the line capacity pape When the load is C R type timer time constant fluctuates Leakage current by surge absorbing circuit which is connected to output element in parallel Drive the relay using a contact and drive the C R type timer using the since contact Use other timer than the C R contact some timers have half ware rectified internal circuits therefore be cautious Output i The load does not turn off Sneak current due to the use of two different power supplies Use only one power supply Connecta sneak current prevention diode E1 lt E2 sneaks 1 is off E2 is on sneaks If the load is the relay etc connect a counter electromotive voltage absorbing code as shown by the dot line 11 10 Chapter 11 Troubleshooting Condition The load off response time is long Output circuit troubles and corrective actions continued Over current at off state The large solenoid current fluidic load L R is large such as is directly driven with the transistor output off response time can be delayed by one or more second as some loads make the current flow across the diode at the off time of the transistor
66. contact point for pulse output SPED CNT OUT NO designation number of contact point for the pulse output DIR EN designation whether the usage of direction output or not 0 No direction output 1 using direction output 6 refers to operating exp SLOT DIR_SLOT Designation slot number of contact point for direction signal output OUT_ DIR NO Designation number of contact point for direction signal output NO DIR DATA Direction output data DIR 0 right direction 1 opposite direction CONTINUE Designation infinite operation 0 uniform velocity or I D velocity operation SLOT 1 Infinite operation before stop order EMG_STOP Stop order DIR Immediate stop without decreasing velocity while EMG STOP NO 9 1 remark status of pulse output 0 during stop CONT 1 during pulse output INUE remark status of operation EMG 0 during pulse output STOP 1 during stop CUR_CNT remark no of current pulse output Chapter 7 Usage of Various Functions 2 Function Block Error List Error status Contents Treatment 00 Normal 01 Other PLC OUT F B s pulsating Change the other PLC OUT F B s program Velocity designation error more than 2000 not a e Velocity tion adjustment d multiple of 50 designated 0 ad The no of I D velocity pulse is bi th of all 03 ij no
67. disable 1 Enable PRE_I E Assign PRESET input 0 PRESET by sequence program 1 PRESET by external input at the PRESET terminal Output DONE Turns on after the F B is executed with no error STAT Indicate the operation status of F B The MULT input will be dummy input when the HSC is set as 1 phase counter PHS 0 When the HSC is set as 2 phase counter the U D_I E and DOWN input will be dummy input PHS 1 The current value of HSC will be cleared as 0 when the CT_E counter enable is 0 2 Reading the current value and operation status of HSC CHSC_RD Input REQ Request signal for F B execution CHSC_RD REQ DONE Output DONE Turns on after the F B is executed with no error STAT Indicates the operation status of F B CNT The current value of HSC 0 16 777 215 CNT CY Carry flag 0 OFF 1 ON STAT 7 4 Chapter 7 Usage of Various Functions 3 Set the preset value of HSC CHSC_PRE FUNCTION BLOCK Input REQ Request signal for F B execution PSET Set the preset value 0 16 777 215 CHSC_PRE BOOL REQ DONE BOOL Output Bur DONE Turns on after the F B is executed with no error ENT PSET USINT STAT Indicates the operation status of F B When the PRE_I E is set as 0 Preset input by sequence program the current value of HSC is changed as the signed preset value with the rising edge of REQ input When the PRE_I E is set as 1 Preset input by e
68. download with changes of parameter or to fail to back up the data caused by lower back up battery voltage than the standard For using user defined mode he she should program with function block controlling sending receiving of P LC as well as edit frames This section explains UDPC setting amp usage Remar k 1 All numerical data can use hexadecimal decimal and binary type If we convert decimal 7 and 10 into each type Hexadecimal H07 HOA or 16307 16 0A Decimal 7 10 Binary 230111 2 1010 8 50 Chapter 8 Communication Function 8 2 2 Parameter Setting 1 Setting Communications P arameter 1 Open a new project file from GMWIN 1 SelectGM7 as PLC type 2 Make a separate project file for each of the master and slave 2 After setting communication parameter at GMWIN Double click itto activate this window Communicaton Parameter Jo Read Stairs Pine Chapter 8 Communication Function 3 Set according to the following table Item Setting range Station No Station no from 0 to 31 Baud Rate 1200 2400 4800 9600 19200 38400 57600 bps Data Bit 7 or bits Parity Bit 0 Even or Odd Stop Bit lor2 bit s RS232C Null Modem or RS422 485 Its a communication channel for the communication using GM7 base unit s builtin communication and Cnet I F module G7L CUEC RS232C Modem Dedicated Line It s to be selected for the communication using an Communication dedicate
69. hex data converted to ASCII code saved Ex 1 When memory type included in direct variable name of computer request Format is W WORD and data number of computer request Format is 03 data number of PLC ACK response after execution of command is indicated by H06 2 03 06 bytes Byte and ASCII code value 3036 is entered in data area Ex2 In just above example when data contents of 3 WORDs are 1234 5678 and 9ABC in order actual ASCII code converted values are 31323334 35363738 39414243 and the contents are entered in data area 8 15 Chapter8 Communication Function 4 Response format NAK response Error code Format name Header Command Command type Frame check Hex 2 Byte Ex of frame NAK SB H1132 BCC ASCII value H15 H31313332 Item Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 BCC Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error Error code codes 5 Example This example supposes that 2 DOUBLE WORDS from MDO of station NO 10 is read and BCC value is checked Also itis supposed that data in MDO and in 01 is as follow MDO 12345678 99 MD1 H9ABCDEFO Computer request format PC 06 7 Base Unit Format name Header Command Command type Variable name Number of data F
70. interrupt task execution condition has been satisfied by a time driven task or event driven task during scan program execution the program that is under execution will be temporary stopped and the corresponding task program will be executed 3 Configuration e Up to 100 scan programs can be used If task programs are used the usable number is reduced as many as that of the used task programs Program has been not specified to initialization or task program when writing that program it will be automatically specified to scan program e Scan program has lowest execution priority and the priorities of scan program are determined their registration sequence in the GMWIN screen when writing those programs Chapter 5 CPU Module 3 Task program 1 Function n order to process internal external signal which occurs periodically or non periodicity the task program temporarily stop the operation of scan program and processes first the corresponding function 2 Types e Task programs are classified into the four types as below Time driven task program Up to 8 programs are applicable Single internal task program Up to 8 programs are applicable Interrupt external task program Up to 8 programs are applicable High speed counter task program only 1 program is applicable Time driven task program The program is executed by the time internal set before e Single internal task program The corresponding program will be exec
71. l O seen enne nennen nnn ennnen nn 4 5 4 2 2 A D D A Combination Module serene 4 5 4 2 3 Analogue timer Module eese 4 5 4 2 4 Option Module 4 6 Chapter 5 CPU 5 1 Power Supply Specifications eese 5 1 5 2 CPU Specificatlons ianuae uie al nescio dia 5 2 5 3 Operation Processing 5 4 5 3 1 Operation Processing Method eese 5 4 5 3 2 Operation Processing at momentary power failure occurrence 5 5 5 3 3 5 5 6 5 3 4 Scan watchdog aa aa oaeee ae aaae aaaea esien 5 6 5 3 5 Timer processing cernere 5 7 5 3 6 Counter processing 5 9 5 4 Programmi amne amc aca eS 5 11 5 4 1 Program configuration eene eene enne nnn 5 11 5 4 2 Program execution procedure eene 5 12 5 4 37 EE 5 15 5 4 4 Error handling 1 21er ciicre ccce cre LE 5 22 5 4 5 Precautions when using special modules 5 23 5 5 Operation modes ern erre
72. next function block ERR If an error occurs output 1 and keep the value till the call for the next function block STATUS When an error occurs output an error code 1 Function This is a function block that can execute either function code 03 or 04 for reading words in Modbus protocol communication Function code 03 reads Holding Registers and function 04 reads Input Registers 2 Error It outputs error codes to output STATUS Refer to Error codes for the detailed 3 Example of the program 1 Its supposed that GM7 base unit is the master and it reads Holding Registers of the station no 17 a Modicon product The master reads the Holding Registers 40108 40110 of the slave station no 17 The status of the Holding Registers of the slave station is supposed to be as follows and the previously read data are saved in any array variable RD DWO of the 40 sized WORD type 8 96 Chapter 8 Communication Function Register status H0064 0000 H022B Data is sent starting from the low bit by byte unit An example of sending the above data is as follows Ex1 02 2B 00 00 00 64 REQ Enter the input condition to operate SLV ADDR 16 11 or 17 The slave station number FUNC 16303 or 3 Enter 3 as the Holding Registers is being read ADDRH 16300 or 0 High byte of the starting addresses to be read from the slave station ADDRL 16 6B or 107 High byte of the starting addresses to be read from the slave station R
73. of Variable length Variable name are in Number of blocks this request Format This can be set up to 16 Therefore the value of Number of blocks must be set between 1 5 value 3031 H10 AS Cll value 3030 Variable This indicates the number of name s characters that means direct variable which is length Name allowable up to 16 characters This value is one of ASCII converted from hex type and the length of direct range is from HO1 ASCII value 3031 to H10 ASCII value 3130 variable Address to be actually read is entered This must be ASCII value within 16 characters and eevee in this name digits upper lower case and only are allowable to be entered If the value to be written in MW100 area is H A the data Format must be H000A If the value to be written in MD100 area is A the data Format must be H0000000A In data area the ASCII value converted from hex data is entered Ex 1 If type of data to be currently written is DOUBLE WORD the data is H12345678 ASCII code converted value of this is 3132333435363738 and this content must be entered in data area Namely most significant value must be sent first least significant value last 8 17 Chapter8 Communication Function 1 Device data types of each block must be the same 2 If data type is BOOL the data to be written is indicated by bytes of hex Namely if Bit value is 0 it must be indicated by H00 3030
74. of output pulses are 1 2 3 18 19 190 units Decreasing velocity inclination is 1 thus 190 units of pulses are needed The no of pulses in the uniform velocity region are 5000 190 190 4 620 units Whole spent time is 50 380ms Uniform velocity Time 4 620ms Deceleration time 380ms M eceleration Une SPOTS Pulses 4 620 Decelerating pulses 190 Accelerating pulses 190 velocity lt gt lt lt gt gt 2 step 1st step Acceleration step 19 20 example when acceleration is 1 7 14 Chapter 7 Usage of Various Functions Condition 2 Set up as AEC_NO 2 MAX_SPED 1000 PLS_NO 5000 I D inclination is 2 output cycle of max pulse is 1000pps and the no of the output pulse is 5000 If I D velocity inclination is 2 2 pulses are output on the 1st step velocity 50pps Pulse velocity is 50pps So time consuming is 40ms 4 pulses are output on the 2nd step velocity 100pps and time consumes 20ms By calculation in the same way the time to reach to 1000pps is 40ms 20 1 760ms and the no of output pulses are 2 4 6 36 38 380 units Decreasing velocity inclination is 2 thus 380 units of pulses are needed The no of pulses in the uniform velocity region are 5000 380 380 4 240 units Whole spent time is 57 600ms Acceleration Uniform velocity Deceleration Time 760ms Time 4 240ms Time 760ms Pulses 380 Pulses 4 240 Pulses 380 velo
75. on the output coil If the Input NUMH is set as 0 or H00 it writes 0 on the output coil And function 06 does 1 word data writing on the Output Holding Register Error It outputs error codes to output STATUS Refer to Error codes for the detailed 8 99 Chapter 8 Communication Function 3 example of the program 1 2 REQ Its supposed that GM7 base unit is the master and it writes 1 bit data on the Coil of the station no 17 a Modicon product The master writes 1 on the Coil 00173 ofthe slave station no 17 a Modicon product Enter the input condition to operate SLV ADDR 16211 or 17 The slave station number FUNC 16305 or 5 Enter 5 as writes bit by biton the Coil ADDRH 16300 or 0 High byte of the starting addresses to write on the slave station ADDRL 16 or172 High byte of the starting addresses to write on the slave station Write on the no 172 to write on starting from the output coil 00173 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesnt need to be input Because its automatically processed by the input value of the input FUNC of the function block 16 FF or 255 The data to be written on the slave station Q0 T 16300 or 0 The data to be written on the slave station Asthe example writes 1 enter for HUMH and 00 for NUML Result Th
76. ousenbai4 _ AC 125V r load N DC 30V r load EE 250V r load Opening shutting of electric current 100 Chapter 6 Input and Output Modules 6 2 Digital Input Specification 6 2 1 Base unit 1 Specification Model Base unit Specification G7M DR10A G7M DR20A G7M DR30A G7M DR40A G7M DR60A G7M DR10A DC G7M DR20A DC G7M DR30A DC G7M DR40A DC G7M DR60A DC G7M DT10A G7M DT20A G7M DT30A G7M DT40A G7M DT60A Number of input points 6 points 12 points 18 points 24 points 36 points Insulation method Photo coupler Rated input voltage DC 12 24V Rated input current 4 5 9 mA 100 102 8 16 Operating voltage range DC10 2 28 8V ripple less than 5 Max simultaneous input points 100 simultaneously On On voltage On current DC9 5V or higher 4 3 mA or higher 100 102 6 3mA or higher Off voltage Off current DC5V or lower 1 8 mA or lower 100 102 3 3mA or lower Input impedance Approx 2 7 100 102 approx 1 5 Response Off 15ms or less time On gt Off 15ms or less 1 Common terminal 12 points COM 18 points COM 12 points COM 18 points COM Operating indicator LED turns on at ON state of input Itis possible to select from 1ms to 15ms by 1ms at GMWIN 2 Circuit diagram Input 100 102 Internal circuit Internal circuit Chapter
77. outputs the result ofthe ADD function to the digital I O module slave reads the direct variable 0 0 1 0 of the digital 1 0 and sends it again to the master This function enables to check whether the communication is being done without the digital 1 0 module by the direct variable outputs of the GM7 base unit open communication set through communication enable setting 8 79 Chapter 8 Communication Function Variables window FB Instance FB Instance BOOL BOOL USINT BOOL 8 80 Chapter 8 Communication Function 2 The Program and communication parameter of the master station 1 Work at the master station no 0 2 Open a new project file and make a new program for the master station 3 Select communication parameter in GMWIN parameter and double click it the window of comm parameter menu opens Setparameters as the following table Communication Method Send mode Station no Baud rate Data bit Parity bit Stop bit posi User defined RS232C nul 0 9600 8 None 1 modem or Master RS422 485 4 Double frame list 0 to activate Frame 0 window and setas follows Segment 1 Segment 5 cone 080 1 0 Type wont C Mexinput C o Bria Segrnent 2 Segment 8 ARRAY 08010 Tre MONE Receive ty Conmerting EC LE re eripe EGIT IU oue
78. r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC BCC Variable This indicates the number of name s characters that means direct variable which is length Name length allowable up to 16 characters This value is one of ASCII converted from hex type and the of direct variable range is from HO1 ASCII value 3031 to H10 ASCII value 3130 Address to be actually read This must be ASCII value within 16 characters and in this Direct variable name digits upper lower case and only are allowable to be entered 1 Protocol of WSB doesn t have the number of blocks 8 20 Chapter8 Communication Function 3 Response Format ACK response Format name Header Command Command type Frame check Frame Example ACK W w SB BCC ASCII value H06 H57 77 Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent 4 Response Format NAK response Error code Format name Header Station No Command Command type Frame check Hex 2 Byte Frame Example ENQ H10 SB H1132 BCC ASCII value 05 31313332 When command is one of lower case r only one lower byte of the value resulted by adding
79. sec the power is re applied 5 applied Watch dog error due to RE apply 10 Re apply the power Reset During run Cold the power Replace the battery if it has error check the Program When power 20 program after cc loading it and if an error is STOP 0 4 sec Cold Memory backup error is applied detected replace the CPU module Change into Correct the memory module program and re 22 Memory module program fault STOP 0 4 sec the RUN Cold operate the system mode Change into 23 An normal program Re load the program and start it STOP 0 4 sec the RUN Cold mode Module type inconsistency error Inconsistency between Change into Refer to the flags 10 TYER 10 TYER 30 specified modules by parameters STOP 0 4 sec the RUN Cold 10 TYER n and correct the in corrective slot and and the loaded modules 7 mode restart the system Module mounting dismounting error Module dismounting or additional Refer to the flags 10 DEER 10 DEER When scan 31 5 0 4 Cold mounting during run _IO_DEER n and correct the in corrective slot completes and restart the system Fuse disconnection error Refer to the flags FUSE ER FUSE ER N When scan 32 Fuse disconnection during run MT STOP 0 4 sec Cold FUSE ER n and correct the in corrective slot and completes restart the system When scan 1 0 module read write error completes Abnormal 1 0 module data a
80. the PLC In this chapter it will described that how to get the digitized formula of the P and D terms Then the pseudo code of PID control will be shown a P control The digitized formula of P control is as following P n K bx SV n PV n n sampling number K proportional gain constant b reference value SV set value PV present value b I control The continuous n of control is as following 1 e s ds it integral term K proportional gain LM Ti integral time e s deviation value By deviation about t we can obtain 7 30 Chapter 7 Usage of Various Functions e ec SV PV deviation value dt Ti The digitized formula is as following I n l I n eA e n h sampling period h Ti 1 nas ee Ti c Doontrol The continuous formula of derivative term is as following B4 pipaka 5 N dt dt N high frequency noise depression ration y the object to be controlled PV The digitized formula is as following Use Tustin approximation method 2Td hN 2KTdN D n D n 1 y 0 1 2Td hN 2Td hN d Pseudo code of PID control The pseudo code of PID control is as following Step 1 Get constants that are used for PID operation h Bi X integral gain Ti QxTd N xh _ QxTd Nxh Qx KxNxTd QxTd N xh derivation gain h anti windup gain Tt Step 2 Read SV and
81. up to 10 sec error and an input which has been changed within 10 sec will not be counted because the counter checks its input status every 10 sec 2 Execution priority The higher priority task program will be executed firstly e newly invoked task has higher priority than that of existing tasks which are under execution they are temporary stopped and task has higher priority will be executed When determining the priority of a task program consider the characteristics importance and urgency of the program REMARK The priority for GM7 can t be setas the same If itis setas the same an error will occur Chapter 5 CPU Module 3 Processing delay time The following factors influence on the processing delay of task program consider the characteristics importance and urgency of the program e Task detection delay Refer to the detailed description of each task e Execution delay due to the execution of prior task programs e Delay due to the execution of higher priority task programs white executing task programs 4 Relationship of task program to initialization or scan program e User defined tasks will not start while the initialization task program is being executed e As scan program has the lowest priority if a task is invoked the scan program will be stopped and the task programs will be processed prior to them Therefore if tasks are invoked many times or concentrated sometimes the scan time may be extended abnormally
82. when a program cannot be written to the PLC module Program cannot be written to the PC CPU Switch to the remote STOP mode and execute the program write Is the mode setting switch set the remote STOP After reading error code by using peripheral Is ERR LED blinking device correct the contents 11 7 Chapter 11 Troubleshooting 11 3 Troubleshooting Questionnaire When problems have been met during operation of the GM7 series please write down this Questionnaires and contact the service center via telephone or facsimile For errors relating to special or communication modules use the questionnaire included in the User s manual of the unit Telephone amp FAX No Tell FAX Using equipment model Details of using equipment CPU model OS version No Serial No GMWIN version No used to compile programs General description of the device or system used as the control object 5 The kind of the base unit Operation by the mode setting switch Operation by the GMWIN or communications External memory module operation 6 Is the ERR LED of the CPU module tumed ON 7 GMWIN error message 8 Used initialization program initialization program 9 History of corrective actions for the error message in the article 7 10 Other tried corrective actions 11 Characteristics of the error e Repetitive Periodic Related to a part
83. 0 DW WORD typed ARRAY 4 0 0 0 0 _AL0304 USINT 0 H00 DBW BYTE typed ARRAY 4 0 0 0 0 _AL0506 USINT 0 H00 BYTE USINT 2 02 _AL1516 USINT 0 00 8 115 Chapter 9 Installation and Wiring Chapter 9 INSTALLATION AND WIRING 9 1 Installation 9 1 1 Installation Environment This unit has high reliability regardless of its installation environment but be sure to check the following for system reliability 1 Environment requirements Avoid installing this unit in locations which are subjected or exposed to 1 Water leakage and dust 2 Continuous shocks or vibrations 3 Direct sunlight 4 Dew condensation due to rapid temperature change 5 Higher or lower temperatures outside the range of 0 to 55 6 Relative humidity outside the range of 5 to 95 7 Corrosive or flammable gases 2 Precautions during installing 1 During drilling or wiring do not allow any wire scraps to enter into the PLC 2 Install it on locations that are convenient for operation 3 Make sure that it is not located on the same panel that high voltage equipment located 4 Make sure that the distance from the walls of duct and external equipment be 50mm or more 5 Be sure to be grounded to locations that have good ambient noise immunity 3 Heat protection design of control box 1 When installing the PLC in a closed control box be sure too design heat protection
84. 07 Time Out Error when exceeds the time limit of the communication parameter as it communicates Errors when data is 0 or more than 256 bytes when the data size is bigger 08 Number Error than the array size or when Number and BYTE_CNT are different from each other 09 Parameter Error Error of setting parameters mode master slave 10 Station Error Error when the station number of itself and the station number set by the input parameter of the function block are the same 8 107 Chapter 8 Communication Function 8 3 5 Example of Use According to the setting of device supporting Modbus protocol setting of GM7 basic unit is changed but this example explains Modbus protocol communication among GM7 units The slave station program This outputs the received data saved in M area through the output coil The master station program It saves 16 FF or 255 at MWO0 Itis coincided with MX0 MX15 or MBO 1 in function block MOD0506 function code 06 then reads 0 through MO D0102 function code 01 and again saves 0 at MX0 MX9 using function block MOD1516 function code 15 then reads 0 through Mod0304 The cable used in this example is same with that used for the dedicated protocol communication between 7 1 Setting and the program of the slave station 1 Open a new projectfile and a new program for the slave station GMWIN for Windows cffgmwintsource modbud_slave prj Project
85. 1 0 disable 1 enable BOOL INT 43 enable signal of integral control BOOL USINT 0 disable 1 enable INT BOOL D 3 enable signal of derivative control INT BOOL 0 disable 1 enable INT P GAIN 4 the proportional gain constant range 0 01 100 00 BOOL TIME 5 the integration time BOOL range 0 0 2000 0 BOOL D_TIME 5 the deviation time range 0 0 2000 0 MV MAX the maximum value of MV range 0 4000 MV MIN the minimum value of MV range 0 4000 MVMAN the input data of manual operation mode range 0 4000 S TIME 6 operation scan time range 0 1 10 REF 7 the reference value range 0 1 1 TT 8 tracking time constant range 0 01 10 00 N 9 high frequency noise depression ratio range 1 10 Output DONE completion flag of PID operation MV output manipulation value range 0 4000 STAT error code output Q MAX shows MV is limited with maximum value MIN shows MV is limited with minimum value 7 32 Chapter 7 Usage of Various Functions 1 a SV setting value the designated value and PV process value present value of GM7 PID operation have the range 0 4000 The range is set with the consideration of the resolution of A D and D A module of GM7 series 12 bits and offset value The BIAS data is used for the compensation of offset in the proportional control
86. 1 MWO See the above 96QW0 0 0 See the above 8 43 Chapter8 Communication Function The registration list 0 registered in the registration list can be confirmed through a window like the following 7 Double click entry list 1 to be registered like the following Area of the slave No 31 station Area of the master No 1 station Set parameters like the following table and click OK button Station Mode Area to read F rom 31 Area to save To 96QW0 1 0 See the above Receive QW0 0 0 See the above 8 44 Chapter8 Communication Function 8 Confirm the registration of the List 0 and 1 through a window like the following and close this window to go back to communication parameter window 9 Close setting parameters by clicking Close button in the communication parameter window 8 45 Chapter8 Communication Function 10 Program like the following screen and download to the slave GM7 Base unit For programming and downloading refer to GMWIN User s Manual alele zle A 2 PROJECT PLC Type COMPTGURATIOHCPLC Configuration 2 UKRARED ACCESA gt variables declared Hame 1 RESH RESOURCE GLOBALE gt variables declared TARE 1 tasks def ined LB 1 PROGERP gt sew
87. 2 When voltage fluctuations are larger than the specified value connect a constant voltage transformer Use a power supply which generates minimal noise across wire and GM7 and ground when excessive noise Generated connect an insulating transformer facioo 2ov A GM7 base unit Constant voltage transformer 1 1 3 Use power supply which generates minimal noise across wire and across and ground When excessive noise is generated connect an insulating transformer 4 When wiring separate the PLC power supply from those for I O and power device as shown below Main power PLC power O AC100 240V 59 10 power m Main circuit 10 device Pm OO gt T1 T2 rated voltage transformer 9 8 Chapter 9 Installation and Wirin 5 To minimize voltage drop use the thickest max 2 wires possible 6 Do not bundle the 100 VAC and 24VDC cables with main circuit high voltage large current wires or the 1 0 signal wires If possible provide more than 80 distance between the cables and wires 7 As a measure against verylarge surge e g due to lightening connect a surge absorber as shown below Surge absorber for lightening 1 Ground the surge absorber E1 and the PLC E2 separately from each other 2 Select a surge absorber making allowances for power voltage rises 8 Use a insulating transformer or noise filter for protection against noise 9 Twist
88. 20 current input only DAHA_WR m DCO 10V DC4 20 output only Writing D A DA420 PAN Ds EOS OD SUR DC4 20 current output only 2 Reading A D conversion value ADHA RD AD420 Single type of function block for reading the module is performed for only one channel and the specified channel is used to read output variable of data displayed from A D converted digital value Types of ME Classifi Variab Data function Contents block cation le type Execution request region of function block REQ BOOL It connected condition on then region is completed and 0 turns to 1 then function block of reading module is executed while the program is performing Location no of slot input SLOT USN Setting range 1 to 3 P CH Designation region of using channel e Setting range 0to1 Designation region of Analog input type VI Setting range 0 or 1 0 Current selecting 1 Voltage selecting AD420 isn t used in function block Output DONE Indicating region of A D conversion value BOOL If reading function block is completed to execute without an error then 1 is output and maintains 1 until next execution comes but if an error occurs 0 is output and if becomes operation stop status STAT USINT Area marking error status e When error occurs output error numbers Area outputting A D conversion value Data output range 48 4047 riting D A conversion valu
89. 4 Offline R2 C7 Edit Itoperates ADD function to increase the value of the symbolic variable ADD 1 by 1 at every 20ms and because the symbolic variable ADD has been assigned a memory at the direct variable 96Q B0 0 0 outputs the result of the output contact point of the GM7 base unit The master reads the direct variable QB0 0 0 of the GM7 base unit and sends it again to the master Refer to Frame 0 setting communication set through communication enable setting 8 83 Chapter 8 Communication Function Variables window 8 84 FB instance BOOL BOOL Chapter 8 Communication Function 8 3 Modbus Protocol Communication 8 3 1 Introduction GM7 built in communication supports Modbus the Modicon products communication protocol It supports ASCII mode using ASCII data and RTU mode using Hex data Function code used in Modbus is supported by function block and especially function code 01 02 03 04 05 06 15 and 16 Refer to Modicon Modbus Protocol Reference Guide http www modicon com techpubs toc7 html 8 32 Basic Specification 1 ASCII mode 1 Itcommunicates using ASCII data 2 Each frame uses colon for header CRLF Carriage Retum Line Feed HOD HOA for tail 3 Itallows Max 1 second interval between characters 4 Itchecks errors using LRC 5 Frame structure ASCII data P Function code 2 bytes
90. 4 H9183AABB BCC ASCII value 3931383341414242 8 25 Chapter8 Communication Function 4 Response Format NAK response Error code Format name Header Command Registration No Frame check Hex 2Byte Frame Example NAK H09 H1132 BCC ASCII value H15 H31313332 Item Explanation When command is one of lower case y only one lower byte of the value resulted by BCC adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC and sent Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error codes Error code 5 Example This example supposes that registered variable No 1 of station NO 1 is read and BCC value is checked And itis supposed that direct variable MWO is registered and the number of blocks is 1 Computer request Format PC 7 Base Unit Format name Header Command Registration No Frame check Frame Example ENQ y H01 BCC ASCII value H05 H79 H3031 Q For ACK response after execution of command PC 7 Base Unit Number of Format name Header Command Registration No m Number of data Data Frame check Blocks Frame Example ACK H01 H01 H04 H23422339 BCC H3233343222 333339 ASCII value H06 8 26 Chapter8 Communication Function For NAK response after execution of command PC 7 Bas
91. 4 multiplication example when the preset is designated by the external preset input GMWIN for Windows cA gmwintsourcettdef0001 prj ct gomwinttsourcettnonamel2 sri 7 7 Chapter 7 Usage of Various Functions 7 1 2 Pulse Output Function In the transistor output type of GM7 the pulse output function maximum 2Kpps is internalized By using this function with stepping motor or servo motor driver GM7 is applicable to a simple positioning system 1 Usage of the Pulse Output Transistor output type of GM7 outputs the signals of pulse and direction in an output contact point through the function block of the pulse output PULS_OUT The outputted pulse is connected to motor driver it is controlled position in the following figure G7M DT30A Choose a mode from the pulse out function block PULS_OUT and operate following 3 modes 1 Trapezoidal operation The pulse output function operates in order of acceleration uniform velocity deceleration velocity increasing decreasing 2 Uniform velocity operation Operates with the uniform velocity without increasing decreasing operation velocity time 3 Infinite operation Operate infinitely without an increasing decreasing operation until meet the emergency stop command velocity time 7 8 Chapter 7 Usage of Various Functions Functional Specification Item Specification No of output 1 point Output type Pulse Output veloc
92. 5H in front of the marking characters Marking Data type Examples characters Bit X 58H 96M X0 QX0 0 0 1X0 0 0 Byte B 42H MB10 08 0 0 0 1B0 0 0 Word W 57H MW10 QW0 0 0 1 0 0 0 Double Word D 44H MD10 QD0 0 0 0 0 0 1 Commands to read write symbolic variable can t be used in built in communication 2 Memory address 100 in MB100 indicates decimal value 3 Long word among data types can t be used 8 9 Chapter8 Communication Function 8 1 6 Execution of commands Ex 1 Individual reading of direct variable RSS 1 Introduction This is a function that reads PLC device memory directly specified in accord with memory data type Separate device memory can be read up to 16 ata time 2 PC request format Command Number of Variable Format name Station No Command Variable name type blocks length Ex of frame H20 55 01 H06 MW 100 ASCII value H254D57313030 KY 1 bl setti ng can be repeated up to max 16 hl acl e Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC For example the BCC of the above frame is gotten as below H05 H32 H30 H 72 H53 H53 H30 H31 H30 H36 H 25 H4D H57 H31 H30 H30 H04 H03A4 Therefore BCC is A4 This specifies how much of the b
93. 6 BOO USINT USINT USINT USINT USINT USINT USINT BYTE A MOD1516 REQ SLV_ ADD RUN ADD RH ADD RL NUM NUM BOO BOO USINT Input REQ SLV ADDR FUNC ADDRH ADDRL NUMH NUML BYTE CNT WR DATA Output NDR ERR Execute function block when it s 1 rising edge Input the number of the slave station Input the function code It supports function code 15 and 16 High address of the starting addresses to write on the slave station Low address of the starting addresses to write on the slave station High address of the data size of the starting address to write on the Slave station Low address of the data size of the starting address to write on the Slave station The size of data to be written on the slave station Variable name to save the data to be written The number of array is to be declared as same as or bigger in data size without error output 1 and keep the value till the call for the next function block If an error occurs output 1 and keep the value till the call for the next function block STATUS eror occurs output an error code 1 2 Function This is a function block that can execute either function code 15 or 16 for writing 1 bit function code 15 and writing 1 word function code 16 in Modbus protocol communication Function code 15 does 1 bit by 1 bit data writing on each Coil in a
94. 6 Input and Output Modules 3 Input wiring Base unit s wiring method is as follows DC input specifications offered by GM7 is to be used for both electric current sink and electric current source 1 10 points base unit DC12 24v ia ee 2 20 points base unit DCI 24V BLA zr a ajra ERR alee Chapter 6 Input and Output Modules 3 30 point base unit DC i e 2 laz poles TJ cic zi SEN TF m m Fre i ami Es 25 es ga AIRE na TEE EB am a m sims fx HMHH pales i ETS 10g T 310 08 TEE Ea EREET BEI lan Le rx e Py Pneus 10s ipe TG 5 60 point base unit Ln e e e DC e JIE S gp ool 2512 ae ET pr qe faafaa aoan ES aw BENE eS LE DXE LI pum XS DERI PB RI rat tae a Chapter 6 Input and Output Modules 4 Example of external devices To connect with ext
95. 6 Sun SYS ERR Unit Errorcode Error type See the Section 12 5 Error Code List Marked flags are loaded while RTC option module is used 1 User Program Status Information 6 System Configuration status Information Flag parameter error Keyword Type Bala Name Description range Representativ 6 1 0 6 2 1 6 3 2 6 4 3 0 4 ekeyword 9 FSM 5 6 Twofold 16 information Bit 0 Basic parameter error Checks and indicates Basic parameter error _DOMAN_ST BYTE Bit 2 Program error Checks and indicates Program error Bit 4 Checks and indicates High speed link parameter error 2 Operation Mode cha nge switch Status Information Data Setting N Descripti Keyword Type range ame escription Representan Made Seung smiet Indicates the state mode setting switch of CPU module ve keyword position i Indicates that th tti itch is in the STOP state KEY STATE BYTE Bit 0 KEY_STOP ndicates that the mode setting switch is in the STOP state Bit 1 KEY RUN Indicates that the mode setting switch is in the RUN state Bit2 KEY PAUSE REMOTE Indicates that the mode setting switch is in the PAUSE REMOTE state App2 6 Appendix 3 Function Block List Appendix 3 Function Function Block List 1 Function List Processing speed Size of PB Byte 1 Size of library Byte 2 V DIV dint EQ i int Equality comparison
96. CPU Module 5 4 Program 5 4 1 Program Configuration A program consists of all of the function elements that are needed to execute a particular control It is to be stored in the internal RAM of the CPU part or the flash memory The function elements are classified as below Function elements Processing Operation e Executed when the power is applied or the CPU operation is transited to the RUN mode Initialization program Executes the initial fixes data setting for execution of scan program and the initialization of peripheral devices on special modules Scan program e Processes the constantly repeated signals which are executed every scan e When the following time conditional processing is required the program is executed complying with the time interval setting In case of the processing need a shorter interval than that of average scan processing Time driven task Program zd In case of the processing needs a longer interval than that of average scan processing time a In case that the processing should be executed by the specified time interval Event driven task shorter processing is executed for internal or external interrupt Program 5 11 Chapter 5 CPU Module 5 4 2 Program Execution Procedure The followings explain the program execution procedure when the power is applied or the mode setting switch of CPU partis in the RUN status Program operation processing is executed
97. Function Function block 1 1 Appendix 4 Dimensions 1 App4 1 Chapter 1 General Chapter 1 General 1 1 How to Use This Manual This manual includes specifications functions and handling instructions for the GM7 series PLC This manual is divided up into chapters as follows Chapters Title Contents Chapter 1 General Describes configuration of this manual unit s features and terminology Chapter 2 System configuration Describes available units and system configurations in the GM7 series Chapter 3 General Specification Describes general specifications of units used in the GM7 series Chapter 4 Names of Parts Describes each kind of manufacturing goods titles and main functions Chapter 5 CPU Part Digital Input and Chapter 6 Output Parts Describes each kind of manufactured goods usage Guides on Each Chapter 7 Function Communications Chapter 8 Describes built in communication functions Function Installation and Chapter 9 Describes installation wiring and handling instructions for reliability of the PLC system Writing Maintenance Chapter 10 Describes the check items and method for long term normal operation of the PLC system and Inspection Chapter 11 Troubleshooting Describes various operation errors and corrective actions System D
98. G gt Remote PAUSE PAU REM 4 Remote operation mode change enable disable It is possible to disable the mode change for system protection so that some parts of the operation mode sources cannot change the mode If remote operation mode change has been disabled the operation mode change is possible only by the mode setting switch and GMWIN To enable the remote operation change set the parameter Enabling the PLC control by communications to enable For details refer to the Appendix 1 System Definitions 5 27 Chapter 5 CPU Module 5 6 Functions 5 6 1 Restart mode The restart mode defines how to initialize variables and the system and how to operate in the RUN mode when the system Starts its operation with the RUN mode by re application of the power or mode change Two restart modes cold and warm restart are available and the execution condition for each restart mode is given below For details refer to the 4 5 1 Basic Parameters Edit of the GMWIN User s Manual Section 4 5 Parameters Edit 1 Cold Restart 1 It is executed when the restart mode parameter has been set to the cold restart mode 2 All data are cleared as 0 and only variables of which initial value has been defined will be set as their initial value 3 Though the parameter has been set to the warm restart mode cold restart will be executed at the first execution of a program after ithas been changed
99. G7L CUEC supporting RS 232C not Cnet I F module G7L CUEC supporting RS 422 485 Timeout in Master Mode It s an interval waiting after sending request frame from Master GM7 before receiving a response default value is 500ms e Setting must be done in consideration of maximum interval of sending and receiving cycle of a master PLC e f the time outis less than the maximum interval of the s r cycle error can occur Dedicated Master Slave Master GM7 can read from and write on Slave GM7 Read status of slave PLC can be select especially when you read Slave GM7 for monitoring but not for the other purposes lest it may cause decreasing communication speed 8 32 Chapter8 Communication Function 2 Setting registration list If you click master from exclusive use in protocol and sending mode registration list button will be activated 3 Total 64 data blocks can be assigned But it s not possible to set a register number 4 Sending and receiving data size can be set up to 60 WORDs There s no cycle for sending and receiving Setting area Sending reading area 1 0 saving area Q M Receiving reading area 1 0 saving area Q M 8 33 Chapter8 Communication Function 6 This is a window you can change exclusive use 1 setting Private 1 Idem Edit Ea Mode Station No 0 Send SizefvVord 1 C Receive Area From E SMW C C BO
100. Header Station No Command H254D5732 3330 H30304646 GM7 Base Unit Command type Frame check Frame Example ACK H01 W SS BCC ASCII value B response after execution of command P C Format name H06 Header Station No H77 Command GM7 Base Unit Command type Error code Frame check Frame Example NAK H01 W SS Error code 2 BCC ASCII value H15 H77 8 19 H5353 Error code 4 Chapter8 Communication Function 4 Continuous writing of direct variable WSB 1 Introduction This is a function that directly specifies PLC device memory and continuously writes data from specified address as much as specified length 2 Request format Command Number o Variable Number of data Formatname Header Command Data type blocks Length Max 128 Byte Frame H1111222 ENQ SB H06 MD100 H01 Example 2 ASCII H254D44 H3131313 H57 77 value 313030 132323232 1 Number of data specifies the number according to the type of direct variable Namely if the data type of direct variable is DOUBLE WORD and number of data is 5 it means that5 DOUBLE WORDS should be written 2 Max of MB in number of data can be used up to 128 MW 64 and MD 32 Explanation When command is one of lower case
101. Itsupports function code 01 and 02 ADDRH High address of the starting addresses to be read from the slave station ADDRL Low address of the starting addresses to be read from the slave station NUMH High address of the data size of the starting address to be read from the slave station NUML Low address of the data size of the starting address to be read from the slave station Output RD DATA A variable name to save the data that is read The number of array is to be declared as same as or bigger than data size NDR If itends without error output 1 and keep the value till the call for the next function block ERR If an error occurs output 1 and keep the value till the call for the next function block STATUS When an error occurs output an error code 1 Function This is a function block that can execute either function code 01 or 02 for reading bits in Modbus protocol communication Function code 01 reads Coil Status data and function 02 reads Input Status data 2 Error It outputs error codes to output STATUS Refer to Error codes for the detailed 3 Example of the program 1 Its supposed that GM7 base unit is the master and it reads Coil Status of the station no 17 a Modicon product The master reads status of the Coil 00020 00056 of the slave station no 17 The Coil of the slave station is supposed to be as follows and the data that are read is saved in any array variable RD_ DBD of the 40 siz
102. OL Bit8 Parameter 1 s R Communication cannot be executed It wil be reset when the error Communication is disabled App2 3 Appendix 2 Flag List 4 Detailed System Error and Warning Flag List Data Keyword Type setting Name Description range The number of slot This flag detects that input modules of a slot cannot be normally 210 UINT 0015 where 1 0 module read from or written to and indicates the lowest slot No of the read write occurred detected slot numbers Exteiia tti This flag detects fatal error of external devices and its content is _ANC_ERR n UINT n 0to7 m written to this flag A number that identifies error type will be written to each of the sixteen locations The number 0 is not allowed Exteinald vice If the user program indicates a warning on the flag _ _ the _ _ UINT n 0to7 Onde ROT bit locations are sequentially written to ANC from y _ANC_WAR 0 complying with their occurrence sequence External device ternal th ANC WBIn BIT ncbtg 127 ordinary enor bi The user program detects ordinary error of ex ema device and the ct map errors are indicated on a bit map The number 0 is not allowed The flag detects that task collision has occurred because while a isi i i f tion ti TC BMAPIn BIT n 0t07 Task collision bit task was being executed or ready or execu jon an execution
103. PV value PV adin ch1 Step 3 Calculate the proportional term PzKx bxSV PV Step 4 Update the derivative term initial value of D 7 0 D As x D Bd x PV PV old Step 5 Calculate the MV initial value of 0 MV P I D Step 6 Check the actuator is saturated or not U sat MV U_low U_high Step 7 Output the MV value to the D A module Step 8 Update the integral term bi x SV PV A0 x U MV Step 9 Update the old value PV old PV 3 Function block For the PID operation of GM7 following 2 function blocks are included in the GMWIN software version 3 3 or later No Name Description 1 PID7CAL Perform the PID operation 2 PID7AT Perform the auto tuning operation Chapter 7 Usage of Various Functions 1 GM7 PID function blocks do not support array type 2 Refer the GMWIN manual for the registration and running of function block 1 The function block for PID operation PID7CAL a Description of F B Function block Description Input EN enable signal of the PID6CAL F B MAN manual operation mode 0 auto 1 manual D R select direction of operation 0 forward 1 reverse SV 1 set value data input input range 0 4000 PV 1 present value data input BIAS 2 feed forward or offset value input for disturbance compensation PID7CA input range 0 4000 EN P 3 enable signal of proportional control BOOL 800
104. User Defined RS232C null modem or RS422 485 Slave Chapter 8 Communication Function 4 Click List to open the following window 5 Double click Frame List 0 to activate Frame 0 window and set as follows PUE emt 8 62 Chapter 8 Communication Function Header ENQ TXRx Receive Segment 1 Type CONST field SND FRAME select button for ASCII input Segment 2 Type ARRAY field 96M BO size 4 bytes Tailer EOT BCC 6 IBCC is set in tail after setting click setting to activate setting window set as follows and click OK to close BCC Setting Data Type 6 ASCII C Hex Check Rule Default C SUM 1 SUM 2 C XOR1 C XOR2 C MUL1 C MUL2 Range H 0 T 0 ex H 0 T 0 Complement None ex FF FF SET amp FF Data Type ASCII Check Rule SUM 2 Range 0 T 0 thatis from header ENQ to tail EOT Complement None Mask Mask with HFF by XOR 8 63 Chapter 8 Communication Function 7 After BCC setting click OK of Frame 0 window to register the frame as follows 8 Double click frame list 1 to activate Frame 1 window to set as follows d B cl 1 omnia zh 2 8 64 Chapter 8 Communication Function
105. W 0 C Waw To C AMN Station number set the number of the slave or opponent station Mode click send for writing data on the slave station or receive for reading from it Size data size for reading and writing of the master station can be specified up to 60 WORDs A WORD is a unit Area Item Send mode Receive mode Indication that is in the master station to 2 that is in the slave station for the data to be read Area from temporarily save the data to be written l that is in the master station to that is in the slave station to Area to write the data temporarily save the data to be read When selecting MWO click and enter 0 in the blank next to it when selecting 960 W0 1 0 click QW and enter 0 1 0 in the blank next to it Chapter8 Communication Function 3 Setting Communication Enable To process 1 1 builtin communication between GM7 s after setting communication parameter and constituting program you must access the master GM7 through GMWIN click connect C of online 0 in menu bar and set Communication Enable L of online O in the same menu bar Connect Orjpipisest Eien Communication Enable L rif ONG VO arene infr rift inte aN Ze
106. XXXX bit output M X0 MX9999 Write bit 06 Preset Single Register AXXXX word output MWO0 MW9999 Write word 15 Force Multiple Coils OXXXX bit output M X0 MX9999 Write bits 16 Preset Multiple Registers AXXXX word output MWO0 MW9999 Write words 8 Modbus addressing rules GM7 base unit starts its address from 0 and matches with 1 of Modicon products data address So GM7 s address n matches n 1 of Modicon products address Also GM7 base unit has continuous M area without any division of output contact points OXXXX input contact points 1 output registers 4 input registers 3XXXX This means that the output contact point 1 0001 of Modicon products is marked as communication address 0 and the input contact point 1 0001 of Modicon products is marked as communication address 0 in GM7 Outputcontactpoints OXXXX Inputcontact points 1 Outputregisters 4XXXX Input registers Highest data of data address dividing output contact point input contact point output register and input contact register in Modicon products 9 The size of using data As for data size GM7 base unit supports 128 bytes in ASCII mode and 256 bytes in RTU mode The maximum size of the Modicon products is different from each other kind So refer to Modicon Modbus Protocol Reference Guide REMARK 1 GM7 base unit doesn t have any division between input and output area like Modi
107. _master src E COMMENTS for DIRECT VARIABLES variables declared PARAMETERS E BASIC PARAMETERS E COMMUNICATION PARAMETER INCLUDED LIBRARIES Creates a new project Offline 8 111 Chapter 8 Communication Function 2 If you double click the communication parameter window in GMWIN you can see the following window of the communication parameter Communicaton Parameter Jo Read Stairs ohelaye Setparameters as the following table Protocol and Mode Transmission Mode Master ASCII Communication Method Station Baud Data Parity Stop No Rate Bit Bit Bit 1 1 2400 7 Even Communication Channel Modbus RS232C Null Modem or RS422 485 8 112 Chapter 8 Communication Function 3 Setup a program like the following figure and download to the slave station GM7 For the detailed program setting and downloading refer to GMWIN manual Function block is used in the program Before using function block double click Current included Libraries to open the following window Click Add to add COMM 7FB and click OK Include Library Include Library cigmwinibicomm 7fh 8 113 P 2 9 EJ E o co 2 oe Framing program Chapter 8 Communication Function tsaves 16 or 255 at MWO It is coincided with MX0 15 or MBO 1 in function b
108. able Force 1 0 table 1 Kbytes System flag area 1 5 Kbytes Input image area IX 128 byte Output image area 0 128 byte Direct variable area 96M 2 8 Kbytes Symbolic variable area maximum 29 Kbytes the size of direct variable area Chapter 5 CPU Module 3 Purpose 1 System area It used to save the self producing data of the CPU module for the system management and GMWIN system control data 2 System flag area It used to save the user flags and system flags The user operates it by flag names 3 Input image area It used to save input data read from input modules Overall size is 961X0 0 0 961X0 7 63 Only QX0 0 0 QX0 3 63 can be used as a real input domain but the other unused domain can be used as convenience especially remote output data for communication can be saved here as convenience 4 Output image area It used to save operation results that are automatically output through the output device Overall data size is QX0 9 9 QX0 7 63 In GM7 only QX0 0 0 QX0 3 63 can be used as a real input domain but the other unused domain can be used as convenience especially remote output data for communication can be saved here as convenience 5 Direct variance area The user can use this area to access direct memory data using the variable names such as 96M XO 0 MWO MDO which was defined in advance by the system Memory size is defined when the user makes program R
109. about the built in PID Proportional Integral Differential function of GM7 Basic Unit The GM7 series does not have separated PID module like GM3 and GM4 series and the PID function is integrated into the Basic Unit The PID control means a control action in order to keep the object at a set value SV It compares the SV with a sensor measured value PV Present Value and when a difference between them E the deviation is detected the controller output the manipulate value MV to the actuator to eliminate the difference The PID control consists of three control actions that are proportional P integral I and differential D The characteristics of the PID function of GM7 is as following Set Value PID value Present Value the PID function is integrated into the CPU module Therefore all PID control action can be performed with F B Function Block without any separated PID module Forward reverse operations are available operation operation PID operation and On Off operation can be selected easily The manual output the user defined forced output is available By proper parameter setting it can keep stable operation regardless of external disturbance The operation scan time the interval that PID controller gets a sampling data from actuator is changeable for optimizing to the system characteristics Manual MV Manipulation D A converting calculation module A D conve
110. ader Used in Header type Possible characters as headers are 1 alphabet letter 1 numeric number or control characters like NUL H00 H02 03 EOT HO4 06 NAK H15 SOH HO1 ENQ H05 BEL HO7 BS H08 09 LF HOA VT HOB FF HOC CR HOD SO HOE SI HOF DLE H10 DCI Hll DC2 H12 DC3 H13 4 14 SYN H16 ETB H17 CAN H18 EM H19 SUB HIA 1 5 GS H1D RS HIE US HIF and DEL H7F Ex1 NUL ENQ EX2 NUL ENQ isntused Itis allowed to be only 3 consecutive characters Ex1 ENQ STX NUL Ex2 ATNULTENQ TS TX X 4 consecutive characters are used TxRx Not defined Itis the initial value that doesn t declare frame format Send Itis that declares send frame Receive Itis that declares receive frame When Frame 0 window is activated TXR x term is set as Not defined and all the segments are not in activation Chapter 8 Communication Function Segment 1 8 Enter segment by segment to separate fixed sending data area CONSTANT and variable data area Array To seta segment type there re NONE not defined CONST fixed data area ARRAY variable data area CONST declares commands and fixed data that are used for communication frame and ARRAY is used to input and save the data needed for interactive communication
111. ameter Error Comm Parameter setting or communication enable setting error Frame Type Error 3 Error flag Errors related with the frame list Save in UD ERR n The frame isn tfor sending or set Error when a frame is bigger than 128 bytes hexadecimal 256 8 58 Frame Length Over bytes Error flag on Device Area Over Error when 1 0 area 128 bytes or M area is exceeded sending part Bit2 BCC Setting Error BCC setting error Bit8 BCC Check Error Error when received BCC value is wrong Bit9 Mismatch Error Error when a received frame doesnt match with the registered Error flag on frame receiving Bit10 Hex Change Error Error when converting to hexadecimal part Bit11 Frame List Error Frame setting or communication enable setting error Chapter 8 Communication Function 8 2 4 Example of Use 1 This example is supposed that there s a communication between GM7 s by the user defined protocol The system configuration is as follows and the cable is the same with the one of 1 1 dedicated protocol communication GW base uni t GW base uni t Mas ter Slave Stati on no 0 Stati on No 1 1 1 dedi cated otocol commu ni cati on between GW s The data in M area of the master station is sent to the slave station and the slave station saves the received data in M area outputs as direct variable and sends the data back to the master This process re
112. ample X Error code 2 BCC ASCII value H15 H78 Error code 4 8 24 Chapter8 Communication Function 6 Monitor execution Y 1 Introduction This is a function that carries out the writing of the variable registered by monitor register This also specifies a registered number and carries out writing of the variable registered by the number 2 PC request Format Format name Header Command Registration No Frame check Frame Example ENQ 09 BCC ASCII value 05 59 79 Item Explanation Register No uses the same number registered during monitor register for monitor execution Register No Itis possible to set from 00 09 H00 H09 When command is one of lower case y only one lower byte of the value resulted by adding 1 byte each to ASCII values from ENQ to EOT is converted into ASCII added to BCC 3 Response Format ACK response In case that the register Format of register No is the Individual reading of direct Registration Numberof Number of Format name Header Command Data No Blocks data Frame Example ACK H09 H01 H04 H9183AABB BCC Frame check H3931383341 414242 ASCII value H06 In case that the register Format of register No is the continuous reading of direct Registration Number of Format name Command Data Frame check No data Frame Example H09 H0
113. and Command type Frame check Hex 2 Byte of frame NAK 55 1132 ASCII value H15 H31313332 Item Explanation When command is one of lower case r only one lower byte of the value resulted by BCC adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC Hex and 2 bytes ASCII code 4 bytes indicate error type For the details see 8 1 8 Error Error code codes 5 Example GM7 base unit 8 12 Chapter8 Communication Function This example supposes when 1 WORD from MW20 and 1 WORD from QW0 2 1 address of station No 1 are read and BCC value is checked Also it is supposed that H1234 is entered in MW20 and data of H5678 is entered in QWO 2 1 Computer requestformat PC GM7 Base Unit Number of Format name Header Command Command type Variable length Formatname Variable length Format name odes of frame ENQ 55 H02 H05 MW 20 H08 QWO0 0 1 H254D57 H25515730 3230 2E322E31 ASCII value H05 For ACK response after execution of command PC GM7 Base Unit Number of Number of Formatname Header Command Commandtype Number of data Data Data blocks data Ex of fame ACK 55 H02 H02 H1234 H02 H5678 ASCII value H06 H31323334 35363738 For
114. and type Status data Frame check Frame Example ACK ST See status data Format BCC ASCII value H06 B For response after execution of command PC GM7 Base Unit Format name Header Station No Command Command type Error code Frame check Frame Example NAK H01 R r ST Error code 2 BCC ASCII value H15 H52 72 8 29 Error code 4 Chapter8 Communication Function 8 1 7 1 1 Built in communication between GM7 s 1 Introduction 1 1 built in communication between GM 7 s is that which constitutes a built in communication system with the method of 1 master 1 slave Setting Base parameter and communication parameter in GMWIN can easily constitute this system Communication protocol currently applied is the same with Cnet I F used for SERIES Main functions are following e t can organize input l output Q and internal memory M area into 64 data access blocks by WORD unit and seta communication time out limit for each block e t can reestablish flag in relation with error codes and slave PLC operating mode according to parameter setting e t can reset flag related with error codes and sending receiving error frequency of each parameter e t monitors communication status using monitoring function of GMWIN GM7 base unit GM7 base unit Master station no 1 Slave station No 31
115. as small as 0 2ms High speed counter Support high speed counting up to 1 phase 16kHz 2 phase 8kHz External interrupts Using in applications that have a high priority event which requires immediate responses e The input filter function help reduce the possibility of false input conditions from external noise such as signal chattering The filter time can be programmed from 0 to 15 ms Using built in pulse output without separate positioning module it can control stepping motor or servo motor e Using RS 232C built in port it can connect with external devices such as computers or monitoring devices and communicate 1 1 with GM7 or GM6 system Using RS 485 built in port it can connect with external devices such as computers or monitoring devices and communicate 1 N with GM7 or GM6 system 10 point base unit only e thas PID control function with which it can easily constitute a system without separate module 3 It can easily do On Off of the system using RUN STOP switch 4 It can constitute various system using separate Cnet I F module 10 points main unit can not 5 It can easily save the user program by simple manipulation in GMWIN 6 Strong self diagnostic functions It can detect the cause of errors with more detailed error codes 7 It can prevent unintentional reading and writing using password 8 Restart mode setting function It has cold and warm that it can be set for the convenience of the users 1 2
116. as the procedure given below Operation start Executes when the power has been r applied or the CPU operation is in the Run mode Executed only when he condition has been satisfied Initializing program External task program Time driven task program Executed only when the condition has been satisfied END processing 1 In the IMO PLC the time driven interrupt task programs and event driven interrupt task programs are called task program Event driven programs are classified into single task internal interrupt or interrupt task external interrupt according to the S W and H W interrupt signaling method Chapter 5 CPU Module 1 Initialization program 1 Function Initialization program initializes the program to execute scan and task programs 2 Cold warm restart program The initialization program specified to INIT task is executed with cold or warm restart mode when the operation Starts This initialization program executes the operations repeatedly until the setting conditions are satisfied that is until the Flag_INIT_DONE in the initialization program turns on However the 1 0 refresh is still executed 3 Flag e _INIT_RUN flag is on during executing the initialization program 2 Scan program 1 Function e n order to process signal which repeats constantly the program executes its sequential operation repeatedly from the first step to the end step e f the
117. ation enable setting of 8 1 7 1 1 dedicated protocol communication 8 75 Chapter 8 Communication Function 8 2 5 Example of Use 2 This example is supposed to activate direct variables with the help of the user defined protocol Its ideal for the system configuration to connect digital 1 0 module to GM7 base unit If digital 1 0 module isnt connected only a part of the operation is possibly checked GM7 base unit GM7 base unit Master Slave Station 0 Station No 1 GERMA oN oN 1 The Program and communication parameter of the slave station 1 Work atthe slave station no 1 2 Open a new project file and make a new program for the slave station 3 Select communication parameter in GMWIN parameter and double click it the window of comm parameter menu opens Setparameters as the following table Protocol and Send mode Dedicated Communication Method Communicati on channel RS232C null 9600 None modem or Slave RS422 485 Stationno Baud rate Data bit Parity bit 8 76 Chapter 8 Communication Function 4 Double frame list 0 to activate Frame 0 window and setas follows ATR Item Setting value Header None Send receive Receive Segment 1 Type CONST field QD0 0 0 select button for ASCII input Segment 2 Type ARRAY field QB0 0 0 size 4 bytes Tail None 8 77 Chapter 8 Communication F
118. ation has started 5 06 BOOL Scan Toggle Toggles On off at every scan while a user program is being executed On atthe first scan INT_DONE BOOL Enable b If this flag is set to on in the initialization program in an user program the initialization program stop its operation and the scan program will starts Complete INT_DATE DATE RTC present date Date Data of standard format Reference date J an 1 1984 RTC TOD TOD presenttime Time Data Reference time 00 00 00 Day data 0 Monday 1 Thuesday 2 Wednesday 3 Thursday 4 Friday _RTC_WEEK UNIT RTC present day 5 Saturday 6 Sunday 1 Flags with the mark are initialized when the initialization program starts and after its execution has been competed the flags will change in accordance with the restart mode set 2 RTC related flags could be used if only the optional module for RTC is installed App2 1 Appendix 2 Flag List 2 Representative System Error Flag List Keyword Type Bit No Name Description Represent System error CNF_ER WORD ative This flag handles the following operation stop error flags in batch RS fatal error keyword Module This representative flag indicates that module configuration of each slot 10 DEER BOOL Bit2 loading unloading has been changed during operation Refer 0 10 DEER and error 0 DEER n IO RWER BOOL Bit4 I O module his
119. ator will output positive value for a while after the PV reached to the SV and the system show a large overshoot A large initial deviation load disturbance or mis operation of devices can cause windup of actuator 7 28 Chapter 7 Usage of Various Functions MV without windup MV with windup Integral term Proportional term Are ese ose Gre There are several methods to avoid the windup of actuator The most popular two methods are adding another feedback system to actuator and using the model of actuator The Fig 2 13 shows the block diagram of the anti windup control system using the actuator model As shown in the Fig 2 13 the anti windup system feedback the multiplication of gain 1 Tt and Es to the input of integral term The Es is obtained as the difference value between actuator output U and manipulation value of PID controller MV The Tt of the feedback gain is tracking time constant and it is in inverse proportion with the resetting speed of integral term Smaller Tt will cancel the windup of actuator faster but too small Tt can cause anti windup operation in derivative operation The Fig 2 14 shows several Tt value and PV in the PI control system 7 29 Chapter 7 Usage of Various Functions Actuator model TET LJ t Fig 2 13 The block diagram of anti windup control system E SV PV Fig 2 14 The PV output characteristics with different Tt values 2 Realization of PID control on
120. ccess 33 Refer to the flags SP IFER IP IFER N STOP 0 4 sec During Cold during run _IP_IFER n and restart the system execution of program 1112 Chapter 11 Troubleshooting Corrective action Operation status ERR LED Flickering cycle Diagnosis time Abnormal special link module data access during run S pecial link module interface error Refer to the flags SP IFER IP IFER N _IP_IFER n and restart the system When power iS applied When scan completes During execution of program During run Scan time over than the scan delay time specified by parameters Check the scan delay time specified by parameters and correct the parameters or the program and then restartthe program During execution of program Unreadable instructions in the user program Re load the program and restart it During execution of program External device fatal error Refer to the extemal device fatal error Flag ANNUN ER ANC ERR and correct the fault devices and then restartthe system When scan completes E STOP function has been executed Correct the program so that the error elements that invoked the E_STOP function can be eliminated in the program and restart the system cold restart During execution of program Communications module configuration error If the number of computer 4 communications module is included
121. check the following items Check Items Judgment Corrective Actions Temperature 0 55 C Adjust the operating temperature and humidity Ambient Humidity 5 95 RH with the defined range environment Use vibration resisting rubber or the vibration Vibration No vibration prevention method Play of modules No play allowed Securely enrage the hook Connecting conditions of No loose allowed Retighten terminal screws terminal screws Change rate of input voltage 15 to 10 Hold it with the allowable range Check the number of Spare parts Spare parts and their Cover the shortage and improve the conditions Store conditions 10 2 Daily Inspection The following table shows the inspection and items which are to be checked daily Corrective heck It heck Poi t Check Items Check Points J udgemen Acone Connecting check for loose mounting screws Screws should not be loose Retighten Screws conditions of terminal block or extension Check the distance between solderless cable terminals PWR LED Check thatthe LED is ON ON OFF indicates an error See chapter 11 Proper clearance should be provided Correct Run LED Check that the LED is ON during Run ON flickering indicates an error See chapter 11 Indica ting ERR LED Check that the LED is OFF during Run OFF ON indicates an error See chapter 11 LED input i InputLED Check that the LEO turns ON and OFF i Mie
122. city 2 step 1st step Acceleration step 19 Deceleration Example Acceleration is 2 If the increasing velocity inclination goes bigger the increasing time and pulse go bigger by direct proportion to inclination Then be careful of an occurring of the function block error when the no of I D velocity pulse becomes bigger than the no of whole pulse 7 15 Chapter 7 Usage of Various Functions 2 Output Direction Input type of servo motor driver or stepping motor driver is subdivided into 2 Output direction of control can be selected in the pulse output function block a Selecting method of output direction a When driver gets input forward direction pulse and reverse direction pulse contact point and the forward reverse direction signals one levels Output pulse 00 0 0 Output dir Q0 0 1 Forward direction output Reverse direction output velocity Set velocity 1Kpps Decreasing Increasing acceleration 1 acceleration 1 Initial position Set position 5000 velocity Profile Example of a program 7 16 Chapter 7 Usage of Various Functions b Driver gets input forward direction pulse and reverse direction pulse through different contact points Forward direction QX0 0 0 Reverse direction QX0 0 1 Forward direction Reverse direction Forward operation Reverse operation Target velocity Target position 25000 Reverse dir start point Ta
123. con PLC when it Supports Modbus protocol communication It uses only M area So the user must be caution to in set input and output area in M area for Modbus protocol communication Chapter 8 Communication Function 10 Map of wiring Male Type GM7 base unit Pin no Connecting no and direction Quantum 9P IN Pin no Signal 8 88 1 2 RXD Chapter 8 Communication Function 8 3 3 Parameters Setting 1 Setting communication parameter 1 Open a new project file at GMWIN GM7 should be selected in PLC types Open a new projectfile for each of the master and the slave 2 Selecta communication parameter atG MWIN and double click to open the following window Communicaton Parameter Jo Read Stairs ofelave HIG List gi EI 8 89 Chapter 8 Communication Function 3 Setthe contents as follows Item Setting contents Station No Set a number between 0 to 31 Don tassign no 0 as broadcasting station lest it may be a cause for mistaken operation Baud Rate Set one from 1200 2400 4800 9600 19200 38400 or 57600 bps Set 7 or 8 Data Bit ASCII mode Setas 7 bits RTU mode Setas 8 bits Parity Bit Setas one of None Even or Odd Set 1 or 2 bit s Stop Bit When parity bitis set Setas 1 bit When parity bitisn tset Setas 2 bits RS232C Null Modem or RS422 485 Its
124. ctions 2 Analog output characteristics a Voltage output 5V Analog output voltage Analog output voltage 2000 2001 2002 2003 2004 2005 2000 Digital input Digital input value D A conversion characteristic voltage output Input of digital amount 0 outputs analog amount OV 4000 does 10V Digital input 1 equals to 2 5mV of analog amount b Current output E o 2 5 o 5 2 5 o Es s lt 2000 2001 2002 2003 2004 2005 Analog output current 2000 Digital input Digital input value D A conversion characteristic Current output In current output digital amount 0 exchanges to and 4 000 does 20mA Analog amount of digital input 1 equals to 5 Chapter 7 Usage of Various Functions 5 Program example 1 Distinction program of A D conversion value a Program explanation When digital value of channel 0 is less than 2000 Q0 2 0 is on when digital value of channel 0 is more than 3000 00 2 1 is When digital value of channel 0 is more or same than 2000 or lesser than 3000 00 2 2 is on b System configuration Base Unit mixture module Digital extended module c Program mE elaj 2 traits im EEEEEEREERVEREEE L2 7 48 Chapter 7 Usage of Various Functions 2 Program which controls speed of inverter by analog output voltage of 5 steps a Program explanation When 1
125. culated 4 9 3 Chapter 9 Installation and Wiring 9 1 2 Handling Instructions Do not drop it off and make sure that strong shock should not be applied e Do not unload the P CB from its case It can cause faults During wiring be sure to check any foreign matter like wire scraps should not enter into the upper side of the PLC If any foreign matter has entered into it always eliminate it 1 Base unit or Expansion Module handling instructions The followings explains instructions for handling or installing the Base unit or Expansion Module 1 1 0 specifications re check Re check the input voltage for the input part if a voltage over the maximum switching capacity is applied it can cause faults destruction or fire 2 Used wire Select the wire with due consideration of ambient temperature and rated current Its minimum specifications should be AWG24 0 18 or more 3 Environment When wiring the 1 0 part if itlocates near a device generating an cause short circuit destruction or malfunction 4 Polarity Before applying the power to part that has polarities be sure to check its polarities 5 Wiring e Wiring 1 0 wires with high voltage cable or power supply line can cause malfunction or disorder e Be sure that any wire does not pass across during input LE D I O status will not be Clearly identified e If an inductive load has been connected to output part connect parallel surge kil
126. cuter scan program process interrupt program External input signa External contact point task program 3 Function 1 Max 8 points can be used to external interrupt input within 961XO 0 0 to96IX0 0 7 2 Inputting 8points of base unit are set functions like following 00 01 02 03 04 05 06 07 A phase B phase Preset High speed counter Input Input Input External interrupt task Time driven task Internal interrupt task 8points are available 3 Max 8points of external contact point task are available to use But the no of them is decreased by using other task Chapter 7 Usage of Various Functions 4 Designate contact point no of priority and movement condition of the task program which is moved by interrupt inputting Define Task er fe Edge evel 2 2 E interrupt input executing condition Executing priority of interrupt input contact No Rising task program Falling Rising Falling 5 Execute priority of task program For the details refer to GMWIN manual 1 In case of GM7 executing priority of task can not be set equally the following message occurs if the priority is set equally Task Define X 7 41 Chapter 7 Usage of Various Functions 7 2 Special module 7 2 1 A D D A Combination module 1 Performance spec
127. d modem with Cnet I F module G7L CUEB Channel RS232C Dial Up Modem It s to be selected for the general communication connecting through the telephone line by dial up modem and Cnet I F module G 7L CUEB Footnote Using Cnet I F module G7L CUEB supporting RS232C RS232C dedicated or dial up modem communication can be done but not through Cnet I F module G7L CUEC supporting RS 422 485 Timeout in Master lt the time waiting a responding frame since the master GM7 base unit sends a request frame default value is 500ms Mode setin consideration of the max periodical time for sending receiving of the master PLC lfi ssetsmallerthan the max send receive periodical time it may cause communication error User Define Master If itis set as the master it s the subject in the communication system If it s set as the slave Slave it only responds to the request frame of the master 2 Setting frame 1 Select one out of user defined terms of protocol and mode in communication parameter registration List button is activated User Defined oon List p 8 52 Chapter 8 Communication Function 2 Click List button to activate the following window User Defined 3 Selectoneofl 15 in frame list to open the following window SC neut IN eR pie E 8 53 Chapter 8 Communication Function 1 Frame specification He
128. declared TASK DEFINITIONS 1 tasks defined LD 1 PROGRAM DEDICATED crgmwintsourcelfldedicated_sla E COMMENTS for DIRECT VARIABLES variables declared PARAMETERS E BASIC PARAMETERS E COMMUNICATION PARAMETER TNELIINFN LTRRART FS Creates a new project Offline R8 CH Edit 8 38 Chapter8 Communication Function If you double click the communication parameter window in GMWIN you can see the following window of the communication parameter Communicaton Parameter Set parameters as the following table Communication Method Protocol and mode Station no Baud rate Data bit Parity bit Stop bit Communication channel Dedicated RS232C null modem or RS 422 485 None 8 39 Slave Chapter8 Communication Function Program like the following screen and download to the slave GM7 Base unit For programming and downloading refer to GMWIN User s Manual PROJECT gt PLC Type GH7 CONFIGURATIONCPLOS Configuration Hame ROCESS VARIABLES gt variables declared RESOUHCECCPUS A gt HERA i RESOURCE GLORALS gt variablas declared TASK DEFINITIONS gt 1 tasks defined L 1 PROGRAM gt DEDI CATED 2 lave s COMMEMTS far DIRECT gt A variables declared PARAMETERS BASIC PARAMETERS COMAUMT CATION 8 40 Chapter8 Communication Function 2 S
129. ditions is called interrupt signal The GM7 CPU has two kind of interrupt operation methods which are internal and external interrupt signal methods 5 3 2 Operation processing at momentary power failure occurrence The CPU detects any momentary power failure when the input line voltage to the power supply falls down below the defined value When the CPU detects any momentary power failure the following operations will be executed 1 Momentary power failure within 20 ms 1 The operation processing is stopped with the output retained 2 The operation processing is resumed when normal status is restored 3 The output voltage of the power supply retains the defined value Input pow r 4 The watchdog timer WDT keeps timing and interrupt timing normally while the operations is ata stop Momentary power failure exceeding 20ms 2 Momentary power failure exceeding 20 ms The re start processing is executed as the power is applied Input power Momentary power failure exceeding 20ms 1 Momentary power failure The PLC defining power failure is a state that the voltage of power has been lowered outside the allowable variation range of it The momentary power failure is a power failure of short interval several to tens ms 5 5 Chapter 5 CPU Module 5 3 3 Scan Time The processing time from a 0 step to the next 0 step is called scan time 1 Expression for scan time Scan time is the addition value of the pr
130. e 4 Read RTC data Example 1998 12 22 19 37 46 Tuesday Keyword Name Description Data Arc 199 ue present Ume bala TOD 19 37 46 UINT present Day data _RTC_WEEK day 0 Monday 1 Thuesday 2 Wednesday 3 Thursday 4 Friday 1 5 Saturday 6 5 _INT_DATE DATE is present Date Data of standard format Reference date J an 1 1984 D 1998 12 22 _RTC_ERR BOOL data eror This flag indicates that RTC DATA error 0 BCD Present time BCD data of present time of RTC TIME 0 16 98 _RTC_TIME 0 year RTC _TIME 1 month RTC TIME 1 16 12 RTC TIME 2 day RTC TIME 3 hour RTC TIME 2 16422 _RTC_TIME n RTC TIME 4 minute RTC _TIME 5 second TIME 3 16 19 n 0to7 TIME 6 day of the week TIME 7 century TIME 4 16437 Day of the week 0 Mon 1 Tue 2 Wed 3 Thur 4 Fri TIME 5 16346 5 Sat 6 Sun _ TIME 6 16 1 TIME 7 16719 Example P rogram 5 46 Chapter 5 CPU Module 5 Write RTC data There is two ways to write new RTC data to the CPU The first one is using GMWIN Select Online PLC Information System Info in the pull down menu PLC Information If you want to setup or edit current time Select Set button of current time in PLC Information dialog box Date Time Se Setup Date and Time in Date Time Set dialog box
131. e Status It may cause to drop down the communication speed App1 8 Appendix 2 Flag List Appendix 2 Flag List 1 User Flag List Keyword Type Write Name Description LER BOOL Enable Operation error Operation error latch flag by the program block BP Error indication latch flag occurred while executing a program block Operation error Operation error flag by the operation function FN or function block FB It ERR BOOL Enable he latch flag is newly changed whenever an operation is executed T20MS BOOL 20 ms Clock These clock signals are used in the user programs toggles on off every 100 5 BOOL 100 ms Clock half cycle The clock signal can be delayed or distorted in accordance with T200MS BOOL 200 ms Clock program execution time as the signal toggles after scan has been 15 BOOL 15 Clock finished therefore it is recommended that clock of enough longer than 725 BOOL 25 Clock scan time be used Clock signals starts from Off when the initialization T10S BOOL 10s Clock program or scan program starts 7205 BOOL 2 205 clock e Example 100 5 clock T60S BOOL 605 Clock ON BOOL Always On Usable in user programs _OFF BOOL Always Off Usable in user programs 10N BOOL Firstscan On Turn On only during the first scan after the operation has started 10FF BOOL First scan Off Tum Off only during the first scan after the oper
132. e Coil 00173 turns ON In case of GM7 base unit 1 is saved on the related M area 8 100 Chapter 8 Communication Function 3 Its supposed that GM7 base unit is the master and it writes on 1 words Holding Registers of the station no 17 a Modicon product An example of writing 3 on Holding Register 4002 of the station no 17 REQ Enter the input condition to operate SLV_ADDR 16 11 or 17 The slave station number FUNC 16 06 or 6 Enter 6 as 1 word is being written on the Holding Register ADDRH 16300 or 0 High byte of the starting addresses to write on the slave station ADDRL 16301 or 1 High byte of the starting addresses to write on the slave station Write on no 1 to write on starting from the Holding Register 40002 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesnt need to be input Because its automatically processed by the input value of the input FUNC of the function block NUMH 16300 or 0 High byte when the data to be written on is expressed in hex NUML 16303 or 3 High byte when the data to be written on is expressed in hex Asthe example writes 3 of which hex is H0003 So 00 is input for NUHH and H03 for NUHL Result The Holding Register 40002 is saved on H0003 In case of GM7 base unit H0003 is saved on a related M area Register status H0003 8 101 Chapter 8 Communication Function 4 MOD151
133. e Unit Format name Header Command Registration No Error code Frame check Frame Example NAK y 01 Errorcode 2 ASCII value H15 H79 Error code 4 7 Reading PLC Status RST 1 Introduction This is a function that reads flag list including operating status of PLC and error information 2 PC request Format Format name Command Command type Frame check Frame Example ST BCC ASCII value Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC 3 Response Format ACK response PLC status data Format name Header Station No Command Command type Frame check Hex 20 Byte Frame Example ACK HOA ST Status data Format BCC ASCII value 06 1 When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent 8 27 Chapter8 Communication Function Explanation PLC status data data Format is 20 bytes in hex Format and converted into ASCII code Its contents are constituted as below table after converting ASCII code into hex data Status data Format Status data order Data type Flag name Hex data UINT PC_DEVICE IDENTIFIER
134. e _WR 3 Writing D A lue WR DA420 Type of Variable Data function block 5 Contents Execution request region of function block REQ BOOL e If connected condition on this region is completed and 0 turns to 1 then function block of writing module is executed while the program is performing SLOT USINT Location no of slot Setting range 1 to 3 Input Designation region of analog output type BOOL e Setting range 0 or 1 0 selecting 1 V selecting DA420 isn t used in function block DATA INT Input region of D A conversion e Setting 0 to 4000 Indicating region of function block DONE If writing function block is completed to execute without an error then 1 is output and Outp 3 ut maintains 1 until nest execution comes but if an error occurs 0 is output and it becomes operation stop status STAT USINT Area for marking error status that outputs error number when error occurs in execution of function block 7 44 Chapter 7 Usage of Various Functions 4 Wiring 1 Caution for wiring Make sure that external input signal of the mixture module of AC and analog I O is not affected by induction noise or occurs from the AC through using another cable Wire is adopted with consideration about peripheral temperature and electric current allowance Thicker than Max size of wire AWG22 0 3 is better If wire is put near to high temp radiat
135. e doesn t work normally Is the indicator LED of the SOL1 on Measure the voltage of power supply 5011 Replace the connector of the Check the status of SOLI terminal board by GMWIN Is the YE terminal connector it normal condition connector appropriate Correct wiring Is the voltage of power supply for load applied Is the output wiring correct YES YES Separate the external wiring than check the condition of output module Is it normal condition Check the status of SOLI Replace the Unit 11 5 Chapter 11 Troubleshooting Are the indicator LED of the switch 1 and 2 on Check the status of the switch 1and 2 Check the status of the switch 1and 2 Is the terminal screw tighten securely Is input wiring correct Is input wiring correct Is the condition ofthe terminal board connector appropriate Is input wiring correct Separate the extemal witch then check the status of input by for a C Retighten the Replace the terminal orrect wiring terminal screw board connector Correct the wiring Unit replacement is Check the status of the Unit replacement is needed switch 1and 2 Check from the beginning needed 11 6 Chapter 11 Troubleshooting 11 2 5 Troubleshooting flowchart used when a program cannot be written to the CPU part The following flowchart shows the corrective action procedure used
136. e with the sudden change of the SV to be robust to load disturbances and or measurement noise Ti me Figure 2 11 The control with several reference values 9 Integral windup All devices to be controlled actuator has limitation of operation The motor has speed limit the valve can not flow over the maximum value When the control system has wide PV range the PV can be over the maximum output value of actuator At this time the actuator keeps the maximum output regardless the change of PV while the PV is over the maximum output value of actuator It can shorten the lifetime of actuator When the control action is used the deviation term is integrated continuously It makes the output of control action very large especially when the response characteristic of system is slow This situation that the output of actuator is saturated is called as windup It takes a long time that the actuator returns to normal operating state after the windup was occurred The Fig 2 12 shows the PV and MV of PI control system when the windup occurs As shown as the Fig 2 12 the actuator is saturated because of the large initial deviation The integral term increase until the PV reaches to the SV deviation 0 and then start to decrease while the PV is larger than SV deviation lt 0 However the MV keeps the saturated status until the integral term is small enough to cancel the windup of actuator As the result of the windup the actu
137. e written with LD Ladder diagram the following differences occur 1 16 bytes will be added to the size of the PB 2 In non execution 0 4 will be added to the processing speed In execution 0 8 sec will be added 2 Function Block List m Jem 8 5 Jemeemmee x Preference reset table Remark 1 The items marked with has following meaning 1 The size of the program memory which a program occupies when it uses the function once 2 The size of the program memory which a program occupies only one time though it uses the friction many times 3 The size of the program memory which a program occupies whenever it uses the function block once 2 The occupied memory size and processing speed of IL programs are same as LD programs App3 2 Appendix 4 External Dimensions Appendix 4 External Dimensions unit mm 1 Base unit A B 10points 85 95 20 points 135 145 30points 135 145 A0points 165 175 60points 215 225 IEEE EE E ES ERA ES EE 2 Extension Option modules 95 105 115 App4 1
138. ead the no 107 to read starting from the output holding Registers 40108 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesn t need to be input Because it s automatically processed by the input value of the input FUNC of the function block 16300 or 0 High byte of which total data size to be read is expressed in hex 16303 or 3 Low byte of which total data size to be read is expressed in hex Example is to read 40108 40110 of which the total data Size is 3 3 are H0003 in hex So 00 is input for NUHH and 03 for NUHL Result RD DWO 0 002 or 555 RD DWO I H0000 or 0 RD DWO 2 H0064 or 100 3 X The variable to which saves the previously read data must be array type The size of array type must be same as or bigger than the size of the data of read If its smaller the error code is marked in STATUS The previously read data is saved from the variable RD DWO 0 remnant part of an array variable is redundancy after the variable is filled with the previously read data Chapter 8 Communication Function 2 Its supposed that GM7 base unit is the master and it reads output coil data of the station no 17 a Modicon product The master reads status of the input registers 30009 of the slave station no 17 The input coil of the Slave station is supposed to be as follows
139. earest service center Complete 11 2 Chapter 11 Troubleshooting 11 2 2 Troubleshooting flowchart used when the ERR LED is flickering The following flowchart explains corrective action procedure use when the power is supplied starts or the ERR LED is flickering during operation ERR LED goes flickering Check the error code with connected GMWIN See App 2 System Warning Flag CNF WAR error and remove the cause of the error No Is ERR Led stil flickering Write down the Troubleshooting questionnaires Complete and contact the nearest service center Though CNF WAR appears PLC system doesn t stop but corrective action is needed promptly If not it may cause the system failure 11 3 Chapter 11 Troubleshooting 11 2 3 Troubleshooting flowchart used when the RUN turns off The following flowchart explains corrective action procedure to treat the lights out of RUN LED when the power is supplied operation starts or operation is in the process RUN LED is off Turn the power unit off and on Is RUN LED off Contact the nearest service center Complete 11 4 Chapter 11 Troubleshooting 11 2 4 Troubleshooting flowchart used when the 1 0 part doesn t operate normally The following flowchart explains corrective action procedure used when the 1 0 module doesnt operate normally J ILHE SDL ad When the I O modul
140. ed BOOL type Chapter 8 Communication Function Data status of the Modicon product s Coil 00020 00059 status of Coil 57 58 59 are redundancy Data is sent starting from the low bit by byte unit If the deficient bit of a byte is filled with 0 An example of sending the above data is as follows Ex1 CD 6B B2 0 1B REQ Enter the input condition to operate SLV ADDR 16 11 or 17 The slave station number FUNC 163010r1 Enter T as the Coil Status is being read ADDRH 16300 or 0 High byte of the starting addresses to be read from the slave station 16 13 or 19 Hi byte of the starting addresses to be read from the slave station Read the no 19 to read starting from the Coil 00020 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesnt need to be input Because it s automatically processed by the input value of the input FUNC of the function block NUMH 16 00 or 0 High byte of which total data size to be read is expressed in hex NUML 16 25 or 37 Low byte of which total data size to be read is expressed in hex Example is to be read 00020 00056 of which the total data size is 37 37 are 0025 in hex So 00 is input for NUHH and H25 for NUHL 8 92 Chapter 8 Communication Function Results RD
141. ed device or contacted with oil for a long time it may cause of electric leakage so that it gets broken or miss operation during wiring Be sure to connect with care of polarity while connecting to external 24V DC power supply In case of wiring with high voltage line or generation line it makes induction failure so then it may cause of miss operation and out of order 2 Wiring example Analog input Voltage input Current input Terminal Terminal GND Current output Gp 1 Be sure to use two core twisted shield wire Be careful to use that analog output is 1 channel Less than 5100 7 45 Chapter 7 Usage of Various Functions 5 1 0 converstion characteristics 1 Analog input characteristics a Voltage input o 3 gt 5 S a Digital output value Input voltage Analog input voltage conversion characteristics voltage input In voltage input digital amount 0 is output by OV input and 4 000 is output by 10V input Therefore input 2 5mV equals to digital amount 1 but value less than 2 5mV can t be converted b Current input Digital output value 10 Analog input current p Input Current conversion characteristics Current input Current input OmA becomes output 0 10mA does 2000 and 20mA does 4000 therefore input 5 equals to digital amount 1 but value less tan 5 can t be converted So abandon it 7 46 Chapter 7 Usage of Various Fun
142. efers to system definitions for the variable area available to use according to the setting 6 Symbolic variable area It used to save the variables that when the user creates a program or when the user defines a global variables is automatically allocated its memory The variables used in program blocks are located in the PB instance memory of the related program and the memory used in the function block is located in the FB instance memory 5 36 Chapter 5 CPU Module 5 8 1 0 No Allocation Method 1 1 0 No allocation means to give an address to each module in order to read data from input modules and output data to output modules 2 Fixed 64 points are allocated to each module for 1 0 points The following shows an example of I O No allocation method Base unit 20 60 points Expansion module 10 points Expansion module AD mix Expansion module 10 points Input 1X0 0 0 1X0 0 35 1 0 1 0 1 0 1 5 1X0 3 0 1X0 3 5 Output QX0 0 0 0 0 0 23 0 0 1 0 96QX0 1 3 0 0 3 0 QX0 3 3 5 9 Built in Flash Memory GM7 series includes a built in flash memory to store user program Also user can set the PLC automatically executes the user program of flash memory when the PLC is turned on It is similar with the ROM operation of other PLCs but it is different that no external memory is required 5 9 1 Structure You see dip switches as shown w
143. efinition Describes parameter setting for basic 1 0 and communications module Appendix 2 Flag List Describes the types and contents of various flags Function Appendix 3 Describes the types and processing time of function function block Function Block List Appendix 4 Dimensions Shows dimensions of the base units and expansion modules REMARK 1 This manual does not describe the programming method For their own functions refer to the related user s manuals 1 1 Chapter 1 General 1 2 Features 1 GM series features 1 Design on the basis of international standard specifications 61131 3 Easy programming device support e Language in compliance with IEC61131 3 are given IL LD SFC 2 Open network by us of communications protocol in compliance with international standard specifications 3 High speed processing with an operation dedicated processor included 4 Various special modules that enlarge the range of application of the PLC 2 GM7 series is extremely compact to fit a wide range of applications 1 High speed processing High speed processing of 0 5us step with an operation dedicated processor included 2 Various built in functions The base unit can perform many functions without using separate modules It is possible to construct various systems just using the base unit e Fast Processing Applications Pulse catch Allows the base unit to read 4 inputs each having a pulse width
144. er C 21 6 264 80 supply Weight 2409 1 Offset gain value can t be changed it is fixed 2 Analog inputting is set the current since this is manufactured 3 Extend to use max 2 Modules 7 42 Chapter 7 Usage of Various Functions 2 Names of parts and functions Explain about names of parts and functions No Contents RUN LED Indicate the operating status the G7F ADHA Analog input terminal Voltage Input Current input CHO INPUT When current input is used short the V and terminal Jumper pin of analog input Input Select Voltage ag F Input Right is CH 1selecting Connect upper Connect lower parts by left is CH 0 selecting parts jumper pins Analog output terminal Voltage output Current output Only one type of output Current or Voltage is available on a module External power input terminal Terminal supplies 24VDC Extension cable This cable is used to connect while analog mixture module is used Extension cable connector The connector connects extension cable when extended module is used 7 43 Chapter 7 Usage of Various Functions 3 Function block 1 Type of function block and funtion Function block Function Remark ADHA RD DCO 10V DC4 20 Inputonly AD420 Reading 4
145. ernal device of DC output type into DC input module wire depending on the type of the external device as shown External device Input module Sensor edA nchno aP 02 Same power for sensor and input Constant Current circuit 6 5 Chapter 6 Input and Output Modules 6 2 2 Expansion Module 1 Specifications Model Specification Expansion Module G7E DR10A Number of input points 6 points Insulation method Photo coupler Rated input voltage DC 12 24V Rated input current 45 9mA Operating voltage range DC10 2 28 8V ripple less than 5 Max Simultaneous input points 100 simultaneously On On voltage On current DC9 5V or higher 4 3 mA or higher Off voltage Off current DC5V or lower 1 8 mA or lower Input impedance Approx 2 7 08 gt 0 15ms or less On 2 Off 15ms or less Common terminal 6 points com Operating indicator LED turns on at ON state of input 1 105 possible to select from 1ms 0 15ms by 1ms atGMWIN 2 Circuit diagram It s the same with the one for the base unit 3 Input wiring Chapter 6 Input and Output Modules 6 3 Digital Output Specification 6 3 1 Base unit Relay output 1 Specification Model Base Unit Specifications G7M DR10A G7M DR20A G7M DR30A G7M DR40A G7M DR60A G7M DR10A DC G7M DR20A DC G7M DR30A DC
146. error code is marked in STATUS The previously read data is saved from the array variable RD DW1 0 The remnant part of an array variable is redundancy after the variable is filled with the previously read data 8 98 Chapter 8 Communication Function 3 000506 BOO USINT USINT USINT USINT USINT USINT Input REQ Execute function block when it s 1 rising edge goo ADDR Inputthe number of the slave station FUNC Input the function code di It supports function code 05 and 06 ADDRH High address of the starting addresses to write on the slave station ADDRL Low address ofthe starting addresses to write on the slave station USINT NUMH High address of the data size of the starting address to write on the slave station NUML Low address of the data size of the starting address to write on the slave station Output NDR without error output 1 and keep the value till the call for the next function block ERR Ifan error occurs output 1 and keep the value til the call for the next function block STATUS When error occurs outputan error code 1 2 Function This is a function block that can execute either function code 05 or 06 for writing 1 bit function code 05 and writing 1 word function code 06 in Modbus protocol communication Function code 05 does 1 bit data writing on the Output Coil If the Input NUMH is setas 255 or it writes 1
147. ert data to ASCII to send at send frame or convert to hexadecimal to receive at receive frame Size Byte If ARRAY is set the size of area is to be set by byte The unitis a byte 8 55 Chapter 8 Communication Function Tail Used in Tail type Possible characters as tails are 1 alphabet letter 1 numeric number or control characters like NUL 00 STX H02 ETX H03 EOT 04 H06 H15 01 ENQ H05 BEL 07 BS H08 HT 09 LF HOA VT FF HOC CR HOD SO 51 HOF DLE H10 DC1 H11 DC2 H12 DC3 13 DC4 H14 SYN 16 ETB H17 CAN H18 H19 SUB 1 ESC H1B FS 1 GS 10 RS H1E US HIF DEL H7F and BCC HFE Ex1 NUL EOT Ex2 NUL EOT isn tused tis allowed to be only 3 consecutive characters Ex3 ENQ ISTX INUL Ex4 ATNULTENQ STX X 4 consecutive characters are used ts possible to use BCC that can detect errors BCC must be set as BCC to be used To set BCC contents click BCC Setting button on the right side Ex5 BCC setting set BCC when itis needed m BCC Setting mm 8 56 Chapter 8 Communication Function ASCII adds 2 bytes BCC value in ASCII type to frame Hex adds 1 byte BCC value in Hex type to Da
148. es of Parts 4 1 3 30 points base unit 1101 103 195 107 109 is iS 1 GLOFA G7M DR30A PROGRAMMABLE LOGIC PET CONTROLLER RR I ISI L G7M DR40A PROGRAMMABLE LOGIC CONTROLLER G7M DR60A PROGRAMMABLE LOGIC CONTROLLER 4 4 Chapter 4 Names of Parts 4 2 Expansion Module 4 2 1 Digital 1 0 Module G7F LOGIC CONTROLLER No Names RUN LED a Analog Input Terminal Analog Input Voltage current selecting jumper pin X Analog Output Terminal External Power Supply Terminal DC 24V Expansion Cable Expansion Cable Connecting Terminal No Names RUN LED Analog Timer Volume Control Resistance Expansion Cable Expansion Cable Connecting Terminal Chapter 4 Names of Parts 4 2 4 Option Module GM7 series have two types of option modules These modules are attached to the expansion slot of main or expansion unit No Name 1 Option module 2 Connector 4 6 Chapter 5 CPU Module Chapter 5 CPU 5 1 Power Supply Specifications 5 1 1 AC power supply Model G7M DR10A G7M DR20A G7M DR30A G7M DR40A G7M DR60A tem G7M DT10A G7M DT20A G7M DT30A G7M DT40A G7M DT60A Voltage AC85 264
149. etain variable The following table shows the initialization method for each type variable Mode f COLD WARM Variable type Default Initialized with 0 Initialized with 0 Retain Initialized with 0 Previous value is retained Initialized with the user defined T Initialization Initialized with the user defined value value Retain amp Initialized with the user defined Sind Y Previous value is retained Initialization value Definitions of variable 1 Default variable A variable whose initial value is not defined or previous value will not be retained 2 Initialization variable A variable whose initial value is defined 3 Retain variable A variable whose previous value will be retained 5 29 Chapter 5 CPU Module 5 6 2 Self diagnosis 1 Functions 1 The self diagnosis function permits the CPU module to detect its own errors 2 Self diagnosis is carried out when the PLC power supply is turned on and when an error occurs the PLC is in the RUN State If an error is detected the system stops operation to prevent faulty PLC operation 2 Error flag If an error occurs it will be stored to the following flags and the STOP LED flickers Representative system error flag CNT ER e Representative system warning WAR 1 Refer to 11 5 Error Code List of Chapter 11 Troubleshooting for details of contents of self diagnosis and corrective act
150. ethod 6 7 Frame size ASCII communication max 128 bytes Hex communication max 256 bytes Flag RCV n n is a frame listno flag to indicate whether a user defined frame is received in the order set by the user 1 BOOL type and ARRAY type in the size of 6 received frame is matched with the declared frame in frame list number 3 RCV 3 starts blinking 0 1 0 When frame receiving is done GM7 base unit check if there s any match between the received frame and the declared frame in frame list If there is let the RCV n flag blink and save the received data in the assigned area Chapter 8 Communication Function 8 2 3 Function Block 1 SND MSG BOO USINT 1 2 SND_MSG REQ BOOL FLID ERR BOOL STATUS USINT Function Input REQ Execute function blockatrising edge 0 1 FL ID Frame list field number to send Output NDR When ends without error this is set to 1 and keeps till the next request for function block ERR When an error occurs this is set to 1 and keeps till the next request for function block STATUS When an error occurs output error code This function block is to send the frame registered in the frame list Error Output error codes to the output STATUS For the detailed information refer to the error codes 2 Error codes Status ofthe function block Slave Device Busy It s sending or waiting to receive Par
151. etting communication parameters for the master station and programming 1 Work at the master station no 1 2 Open anew project file and a new program for the master station PLC GF COHFIGURRTIOHCPLC gt Configuration Hame IMMAMED A variable declared variables declared TASK BEFIMITIOME gt 1 tasks defined E L 1 gt DEDICATED gt ci lgmuain sourcethdedicated _ for DIRECT VARIABLES gt B variables denlarend B Bit PARAHETERE COMFUNTCATION PARAMETER INCLUDED LIBRARIES 8 41 Chapter8 Communication Function 3 Select a communication parameter from the GMWIN parameter and double click to open the communication parameter menu window Set parameters like the following table and click OK button Communication method Protocol and mode Communication Read status of Station no Baud rate Data bit Parity bit Stop bit Dedicated channel slave RS232C null modem or Master Not selected RS422 485 8 42 Chapter8 Communication Function 4 Click List button to activate registration list window 5 Ifthe list number 0 in List window is double clicked another window for Private 1 item 0 is open Area of the slave No 31 Set parameters like the following table and click OK button Station No Area to read From Area to save to 3
152. eturns as it sets the 8th bit of function code as 1 Ex If function code is 03 we write here only function code part Because only function codes are different Request 0000 0011 03 Confirm 0000 0011 H03 Confirm 1000 0011 H83 It retums as it sets the 8th bit of function code of request frame 5 Data area 1 Itsends data using ASCII data AS mode or hex RTU mode 2 Data is changed according to each function code 3 Response frame uses data area as response data or error code 6 LRC Check CRC Check area 1 LRC Longitudinal Redundancy Check It works in ASCII mode It takes 2 complement from sum of frame except header or tail to change into ASCII code 2 CRC Cyclical Redundancy Check It works in RTU mode It uses 2 byte CRC check rules REMARK 1 All numerical data can use hexadecimal decimal and binary type If we convert decimal 7 and 10 into each type Hexadecimal H07 HOA 16 07 16 0A Decimal 7 10 Binary 240111 241010 8 86 Chapter 8 Communication Function 7 Function code types and memory mapping Code Function code name Mera ie a Remark 01 Read Coil Status OXXXX bitoutput 0 9999 Read bits 02 Read Input Status 1XXXX bitinput 0 9999 Read bits 03 Read Holding Registers AXXXX word output MWO0 MW9999 Read words 04 Read Input Registers 3XXXX word input MWO0 MW9999 Read words 05 Force Single Coil O
153. every input power supply wires as closely as possible Do not allow the transformer or noise filter across the duct 9 9 Chapter 9 Installation and Wiring 9 2 2 Input and Output Devices Wiring 1 Applicable size of wire to the terminal block connector is 0 18 to 2 However itis recommended to use wire of 0 3 for convenience 2 Separate the input and output lines 3 1 0 signal wires must be atleast 100 3 94 in away from high voltage and large current circuit wires 4 When the I O signal wires cannot be separated from the main circuit wires and power wires ground on the PLC side with batch shielded cables Under some conditions it may be preferable to ground on the other side Shield cable 5 If wiring has been done with of piping ground the piping 6 Separate the 24VDC I O cables from the 110VAC and 220VAC cables If wiring over 200 7 88 in or longer distance trouble can be caused by leakage currents due to line capacity Refer to the section 11 4 Example 9 2 3 Grounding 1 This PLC has sufficient protection against noise so it can be used without grounding except for special much noise However when grounding it should be done conforming to below items 2 Ground the PLC as independently as possible Class 3 grounding should be used grounding resistance 80Qor less 3 When independent grounding is impossible use the joint grounding method as shown in the figure below B Class 3 grounding Class 3 gro
154. fter sending and before receiving 8 36 Chapter8 Communication Function 5 Example GM7 base unit GM7 base unit Master Slave Station No 1 Station No 31 G7E DR10A 1 1 built in communication between GM7 s The following example uses the above diagram to explain the operation of GM7 Base Unit The data of the master GM7 Base Unitis converted by ROL F B and MOV F B and sent to be written on the output contact point of the slave GM7 Base Unit And in return the master GM7 Base Unit reads the data that is written on the output contact point of the slave GM7 to write them on the output contact point of extended digital input output module G7E DR10A Chapter8 Communication Function 1 Setting communication parameter of the slave station and its program Work on the slave station 31 Open a new project file and a new program for the slave station for Win amwintsourcet dedicated prj Project Program Edit Toolbox Compile Online Debug Window Help Sele alee s m e e LIL 8 ci gmwintsourcettdedicated slave src Of Row 0 Row 1 M Row 2 N Row 3 Row 4 Row 5 0 OW e Row 7 j 8 uu 1 1 qc Wamwint source dedicated prj f PROJECT gt PLC Type GM CONFIGURATION lt PLC gt Configuration Name UNNAMED F E ACCESS VARIABLES variables declared RESOURCE lt CPU Name RESO f RESOURCE GLOBALS variables
155. function block Each special module have their own special function blocks 5 Processing speed Operator 0 Basic function Refer to Appendix 3 Basic function block Programming memory capacity Including parameter Approx 4k byte 1 0 points 10 points expansion unit input 6 points output 4 points Max 2 expansion units can be 20 points base unit input 12points output 8point attached to a base unit 30 points base unit input 18points output 12point 40 points base unit input 24points output 16point 60 points base unit input 36points output 24point Data memory Direct variable area 2k to 8k bytes Adjustable with parameter setting Symbolic variable area 32 k bytes Direct variable area No limitations in points lpoint occupies 20 bytes of Time range 0 001 to 4294967 295 sec 1193 hours Symbolic variable area No Limitations in points lpoint occupies 8bytes of symbolic Counting range 32768 to 32767 variable area Data protection method at power failure Setto Retain variables at data declaration MEE 5 2 Chapter 5 CPU Module Items Specifications Remarks Program type Scan 100 Time driven interrupt task 8 External interrupttask 8 1018 pieces are usable High speed counter task 1 8 1 INIT Inside interrupt task Initialization task PID control function Function block control auto tuning forced output adjustable operati
156. g special modules This system offers convenience and high performance in using special modules compared with the existing methods Therefore take some precautions when composing the system Check the system after the following items have been thoroughly understood 1 Special module programming 1 Special function block is offered for each special module to make programs concise and to prevent errors in writing down the user program 2 Function block functions as an interface between the user program data and the special modules As it includes the function that watches the operation status of special modules and indicates the error status other separate error detection program does not have to be written 2 Control of special modules In controlling the operations of special modules write the program using function blocks which correspond to the operations that have to be controlled These function blocks can locate at any place within the program 5 23 Chapter 5 CPU Module 5 5 Operation Modes The CPU module operates in one of the four modes the RUN STOP PAUSE and DEBUG mode The following describes the PLC operation processing in each operation mode 5 5 1 RUN mode In this mode programs are normally operated The first scan start in the RUN mode If the operation mode is the RUN mode when the power is applied Check operation mode N fi HE d cate tom Initialize data area according to
157. ge of TT is 0 01 10 and the actual input range that are 100 times scaled up is 0 1000 N high frequency noise depression ratio parameter is used for derivative control operation and shows the ratio of high frequency noise depression If there is a lot of high frequency noise in the control system select the value as higher value Otherwise leave the parameter as 1 The range of N is 0 10 and it is not scaled up so input the designated value directly b The error code of PID7CAL F B The following table shows error codes and descriptions of PID7CAL function block pas n 0 Description Countermeasure 0 Normal operation 1 SV is out of range Change the SV within 0 4000 2 MVMAN is out of range Change the MVMAN within 0 4000 3 P_GAIN is out of range Change the P_GAIN within 0 10000 4 _TIME is out of range Change the within 0 20000 5 D_TIME is out of range Change the D_TIME within 0 20000 6 S TIME is out of range Change the 5 TIME within 0 100 7 REF is out of range Change the REF within 0 10 8 TT is out of range Change the TT within 0 1000 9 N is out of range Change the N within 0 1000 10 and or EN D is set as 1 Only P and PID controls are available Please when EN P is 0 change the setting of EN P EN and EN D 7 33 Chapter 7 Usage of Various Functions 1 Please be careful to input 100 times scaled up values for P_GAIN and TT
158. hat means direct variable which is length Name allowable up to 16 characters This value is one of ASCII converted from hex type and the length of direct range is from HO1 ASCII value 3031 to H10 ASCII value 3130 variable Address to be actually read is entered This must be ASCII value within 16 characters and in Variable name this name digits upper lower case and only are allowable to be entered 8 14 Chapter8 Communication Function 3 GM7 Base Unit response format 7 of ACK response Command Number of Format name Header Station No Command Number of data data Frame check type blocks of frame ACK H10 SB 01 H02 H1122 BCC ASCII value H06 H5342 31313232 When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent means byte number of hex type and is converted into ASCII This number is determined by multiplying the data number of computer request Format by the data size in below table according to memory type B W D included in direct variable name of computer request Format Number of data Data type Available direct variable Data size Byte B MB QB IB IW WORDEN KF T C D S W DOUBLE WORD D MD QD ID n data area there are the values of
159. he command type is numerical means data type All of the terms indicating size of all data in the Formatted data area Monitoring registration and command registration number of execution commands All contents of data 1 If itis hexadecimal is attached in front of the number of frames like H01 H12345 H34 H12 and H89AB 8 6 Chapter8 Communication Function 1 Sequence of command frame 1 Sequence of command request frame ENQ Station No Command Fomatted data EOT BCC PLC ACK response ACK Station No Command Data or null ETX BCC PLC NAK response 2 Sequence of Download upload frame ENQ Station No StartCommand Data EOT BCC ACK Station No Command Data or null ETX BCC ENQ Station No Command Fomatted data EOT BCC Down upload command frame No H0001 Station No Data or null ENQ Station No Command Fomatted data EOT BCC Down upload end command frame No HFFFF PACK Station No Data or null 8 7 Chapter8 Communication Function 8 1 4 List of commands Command list for direct communication Division Command Main command Command type Code ASCII code Code ASCII code Treatment Indivisual reading H72 H52 SS 5353 direct Continuos variable reading H72 H52 SB 5342 Indivisual Writing writing 77 57
160. hen you open 1 0 terminal block cover BUILT_IN CNET Terminal block cover ROM MODE 5 37 Chapter 5 CPU Module 5 9 2 Usage 1 Set the base unit to the STOP mode 2 There are 2 ways to use writing program into the built in flash memory of base unit 1 While ROM_MODE switch is On if the program is written on the basic unit the following message at GMWIN shows GM WIN Q If you want to input downloaded program into flash memory press REMARK Above message shows only when Online Writing Parameter and program is chosen in menu 2 To save in the flash memory lest not write on the program it s as follows If Online Flash memory Writing on flash memory is chosen the following window shows Write to the Flash Memory Q oP eileieiel revel rier S an Choose title to be saved in the flash memory and press y 5 38 Chapter 5 CPU Module 3 When you reset the PLC system it works according to the dip switch for operating flash memory Dip switch position Description upper switch is for Cnet ON OFF When power is on the program saved in the flash memory operates ROM MODE Upper switch is for Cnet CPU recognizes that there is no program in the flash memory and starts to ON OFF drive program from RAM ROM MODE REMARKS 1 The flash memory dipswitch has no relationship with saving the program When y
161. icular sequence Related to environment e Sometimes General error interval 12 Detailed Description of error contents 13 Configuration diagram for the applied system 11 8 Chapter 11 Troubleshooting 11 4 Troubleshooting Examples Possible troubles with various circuits and their corrective actions are explained 11 4 1 Input circuit troubles and corrective actions The followings describe possible troubles with input circuits as well as corrective actions Condition Cause Corrective Actions Leakage current of extemal device Input signal Such as a drive by non contact switch doesn t turn off Input signal Leakage current Connect an appropriate register and capacity which will make the voltage lower across the AG input terminals of the input module doesn t turn off Neon lamp may be still on Leakage current External device Input signal doesn t turn off wiring cable Drive by a limit switch with neon lamp Leakage current due to line capacity of O Leakage current of external device CR values are determined by the leakage current value AC input Recommended value C 0 1 0 47 R 47 120 Q 1 2W Or make up another independent display circuit External device Input signal doesn t turn off 1 21 Leakage current A 1 Leakage current of extemal device Locate the power supply on the exte
162. ient Item Powersupply iv EC 611312 burst noise Analog 0 EC 801 4 Interface Voltage 2kV 1kV 0 25kV 8 Atmosphere Free of corrosive gases and excessive dust EC61131 2 9 Altitude Up to 2 000m 10 Pollution degree 2 ll Cooling method Air cooling REMARK 1 IEC International Electrotechanical Commission An international civilian institute who establishes international standards in area of electrics and electronics 2 Pollution degree An indicator which indicates pollution degree which determine insulation performance of equipment Pollution degree 2 Normally only non conductive pollution occurs Occasionally however a temporary conductivity caused by condensation shall be expected Chapter 4 Names of Parts Chapter 4 Names of Parts 4 1 Base Unit RUN PAU REM STOP E BUILT_IN CNET Ejo ROM MODE No Name Indicates power supply to the system PWR LED e On When the supply is normal e Off When the supply is abnormal Indicates base unit operation e On Indicates local key switch or remote running mode CPU e Off with the following led gets off Condition RUN LED 1 LED Without normal power supply to the base unit Indication While key Switch is stopped Detecting an error makes operation stop Indicates Base Units operation ERR LED On Off of led self inspected error Off CPU is normally working 2 I O LED Indicates 1 0 operating status Folder for bat
163. ification The performance specification of the analog mixture module are following Specifications Voltage DCO 10V input resistance morethan 1 Input range DCO 20 input resistance 2500 Classified by Current DC4 20 input resistance 2500 function block rae Digital output 12Bit 48 4047 9 1 5 by jumper pin for V I selection on upper part of product Input Voltage Current Up voltage Down Current selection 2 Voltage current selected by the program 3 When current input is used short the V and terminal No of channel 2Channels 1module Voltage DC 12V Absolute max input Current DC 24 voltage 10V External load resistance 2 1 Output range Currant DCO 20 External load resistance 5100 Classified by DC4 20 External load resistance 5100 function block Digital Input 12Bit 48 4047 Analog output Voltage Current Separated from terminal selection No of channel 1Channel 1module Voltage DC 12V Absolute max output Current 24 Voltage DCO 10V 25 1 4000 Max resolution 20 22 5 14000 Current 20 625 1 3200 0 5 Full scale Max conversion 2 scan time Photo coupler insulation between I O terminals PLC power supply Insulation ried Common No isolation between channels 9 Points 2 terminals Internal curren 20 Consumption External pow
164. in the program Before using function block double click Current included Libraries to open the following window Click Add to add COMM 7FB and click OK Include Library Include Library cAgmwinWibicomm 7fb 8 74 Chapter 8 Communication Function GMWIN for Windows cAtgmwinttsourcetfuser_define_mas prj Project Program Edi Toolbox Compile Online Debug Window I x o siaja actgmwintsourcetuserdefine_mas SEND _T200MS 5 MSG Row 0 1 REQ NDR Row 1 D Row 2 STAT US Row 3 NOT Row 4 gt EN ENO Row 5 amp MBIO OUT 3060 0 0 Row 6 ROv 1 Row A EN ENO S060 0 0 IN1 Edit Off line Creates new project R5 C3 Itsends Frame 0 by operating function block every 200ms Frame 0 sends 4 byte value from the master station in 0 to the slave station The slave station saves Frame 1 that the master sent to MB10 Refer to frame setting of Frame 1 It logically reverses the value of MB10 that is saved at this moment outputs to the direct variable QB0 0 0 and saves again the value output to the direct variable QB0 0 0 to MBO Conclusively when 8 LED of the master are on then 8 LED of the slave are off and vice versa To open communication set through communication enable setting For communication enable setting method refer to 3 Communic
165. ing 1600 100 C b S TIME S_TIME 100 sampling time 10 seconds A D module setting c Channel setting use channel 0 d Output data type 48 4047 e Input processing Sampling D A module setting EE NER gt a f Channel setting use channel 0 3 Program Explanation a Use only PID operation without A T function g Convert the measured temperature 0 250 C to current signal 4 20mA and input the current signal to the channel 0 of A D module Then the A D module converts the analog signal to digital value 0 4000 h PID6CAL function block will calculate manipulate value MV 0 4000 based PID parameter settings P GAIN TIME D TIME etc and PV from A D module Then the calculated MV is output to the channel 0 of D A module i D A module will convert the MV 0 4000 to analog signal 4 20mA and output to the actuator power converter 1 36 Chapter 7 Usage of Various Functions b Use PID operation with A T function j Convert the measured temperature 0 250 C to current signal 4 20mA and input the current signal to the channel 0 of A D module Then the A D module converts the analog signal to digital value 0 4000 k A T function block will calculate manipulate value MV 0 4000 based on the SV and PV from A D module Simultaneously the A T module will calculate and D parameters I The END output of A T module will be 1 whe
166. inuous operation in batch keyword _RTC_ERR BOOL Bit0 RTC data error This flag indicates that RTC DATA error D BCK ER Boot 0 backup flag indicates error This flag indicates that the program had been stopped during restore from power failure due to causes such as power off and then cold restart has AB SD ER BOOL Bit 3 Abnormal been executed and the continuous operation which retains the data is GP shutdown impossible Usable in the initialization program Automatically reset when the initialization program has finished The same things given above will be applied when the program has been stopped by the ESTOP function Task collision This flag indicates that task collision has occurred as execution request for _TASK_ERR BOOL Bit4 plus cycle and same task had been repeatedly invoked Refer to the flag external tasks TC BMAP n and TC CNT n This flag detects and indicates that the voltage of the battery which is BAT ERR BOOL Bit5 Battery fault used to backup user programs and data memory is lower than the defined value External device This representative flag indicates that the user program has detected an _ANNUN_WR BOOL Bit 6 warning ordinary fault of external devices and has written it to the flag ANC WB detection n Bit7 2 E TE This representative flag detects error of each Communication parameter Communication ier _HSPMTLE when the Communication has been enabled and indicates that BO
167. ions 5 6 3 Remote function The CPU module can be controlled by external operations from GMWIN and computer link module etc For remote operation set the mode setting switch of CPU module to remote position 1 Remote RUNISTOP 1 The remote RUN STOP permits external operations to RUN STOP the CPU module under the condition that the mode selling switch of CPU module is in the remote position 2 This function is convenient when the CPU module is located on the place where it is difficult to control the CPU module or the user wantto control the CPU module in the control panel from outside 2 Remote PAUSE 1 The remote PAUSE permits external operations to execute PAUSE operations under the condition that the mode setting Switch of CPU module is in the remote position The PAUSE operations stop the CPU module operation processing while maintaining the On Off state of the output module 2 This function is convenient when the user wants to maintain the ON state of the output module under the condition the CPU module has been stopped 3 Remote DEBUG 1 This function permits external operations to execute DEBUG operations under the condition that the mode setting switch of CPU module is in the remote position The DEBUG operations execute programs complying with the specified operation conditions 2 This function is convenient when program execution or contents of any data are checked for debugging of the program 5 30
168. ity Max 2Kpps Min 50pps Output pulse 0 2147483647 Execution type of the increasing decreasing velocity Designation of acceleration Type of the direction designation Right opposite direction pulse output Load power supply DC 12V 24V Usable range of the load power supply DC10 2 26 4V Maximum load current 150mA Initiative electric current Less than 0 4A 10ms Maximum power dropdown under On Less than DC 0 5V Electric current leakage under Off Less than 0 1mA On delayed time Less than 1ms Off delayed time Less than 1ms 1 Several points can be used for the pulse output point if they are not output at the same time Thus it is possible that right direction pulse is output as QX0 0 0 opposite direction pulse is output as 0 0 0 1 7 9 Chapter 7 Usage of Various Functions 3 Names of parts ser oe on COMO 1 COM2 Stepping motor Motor driver Output direction Output pulse LILI L No Terminal No Names Usage 000 Pulse output Pulse output terminal of right direction COMO Common Pulse output common terminal Q01 Direction output Direction output terminal COMO Common Direction output common terminal If the motor drive is not input direction but is input right opposite direction pulse the opposite direction pulse can be output through using 2 function blocks PULS_OUT t
169. l convert the analog value of control object temperature velocity etc to digital value that are the output of A D convert module For example assume that PID control is used for temperature control with Pt100 operation range 0 C 250 C and the goal value is 100 C The equivalent digital output of A D module voltage output range 1 5V is 1600 if the A D module outputs 0 1V with 0 and 4000 5V with 250 Therefore the input of SV should be 1600 not 2 2 5 TIME is the period of reading data sampling and 10 times scaled up for more precious operation Generally it should be synchronized with external trigger input EN input of function block to perform proper PID operation The range of sampling time is 0 1 10 seconds and actual input range is 0 100 3 The GM7 perform auto tuning operation based on the frequency response method PID parameters are obtained by On Off operation during 1 cycle of PV variation The RIPPLE parameter shows at which cycle the CPU module will perform auto tuning operation If 0 is selected the CPU will get PID parameters during the first cycle of PV variation If 1 is selected the second cycle will be used refer Fig 3 1 for detailed information Other choice of RIPPLE parameter is not allowed In general case select 1 for proper auto tuning operation The On Off operation will be occur at the 80 of PV value 7 34 Chapter 7 Usage of Various Functions Perform A T operation at
170. larger than the real I O areas If remote 1 0 is specified using this area the force on off function is as just available in it as in the basic 1 0 areas 4 Precautions Tuming the power off and on changes of the operation mode or operation by reset switch GM3 does not change the previous force on off setting data They remain within the CPU module and operation is executed with the same data Force 1 0 data will not be cleared even in the STOP mode f a program is downloaded or its backup breaks the force on off setting data will be cleared The operating program in memory differs from the program in the flash memory so that if operation restarts with the program in the flash memory the on off setting data will be also cleared e When setting new data disable every I O settings using the setting data clear function and set the new data REMARK 1 For detailed operation refer to the GMWIN user s Manual Chapter 7 Force 1 0 setting 5 31 Chapter 5 CPU Module 5 6 5 Direct 1 0 Operation function This function is usefully available when an input junction state is directly read during execution of a program and used in the operation or the operation result is directly output to an output junction 1 Direct input e direct input is executed by use of the DIRECT IN function If this function is used the input image area will be directly updated and applied to the continuing operations 2 Direct output e Direc
171. ler or diode to load Connect the cathode part of the part of the power supply Induction load _ Output part OUT 9 Induction load Output part 6 Terminal block Check its fixing During drilling or wiring do not allow any wire scraps to enter the PLC It can cause malfunction and fault 7 Be cautious that strong shock does not applied to the 1 0 part Do not separate the PCB from its case 9 4 Chapter 9 Installation and Wiring 2 Mounting instructions The following explains instructions for mounting the PLC onto the control panel 1 Allow sufficient distance from upper part of the Unit for easy module replacement and ventilation Especially the distance between the left side of the basic unit and the control panel should be 100 or more for periodic battery replacement 2 Make sure that GM7 is installed in fig 9 1 for most effective heat radiation 5 955555555555355 333388333333 fig 9 11 3 Do not mount the base board together with a large sized electromagnetic contact or no fuse breaker which produces vibration on the same panel Mount them on different panels or keep the unit or module away from such a vibration source 9 5 Chapter 9 Installation and Wiring 4 Mount the wire duct as it is needed If the clearances are less than those in Fig 9 1 follow the instructions shown below
172. lock MOD0506 function code 06 then reads through MODO102 function code 01 and again saves 0 at MX0 MX9 using function block MOD1516 function code 15 then reads MW0 through Mod0304 Then you will see that 8 LEDs of output contact point operate on off continually above picture is the monitored scene of the program operation Therefore the values appeared in RD DB _RD_DW array variables are not the initial ones but the resulted value after executing reading Variables like Instanse name NDR Instanse name ERR Instanse name STATUS are automatically generated when an instanse variable of function block is declared flag is a flag thatis on for 1 scan Each function block input REQ conditions to make separate function block output as its input Thesizeof BYTE CNT mustbe the same when itis converted into bytes Emoroccurs when the size of array variable is smaller than the data to be read or to be written Table of variables _SLV_ADDR USINT 17 H11 _NHO102 USINT 0 H00 _FUNC0102 USINT 1 01 _NH0304 USINT 0 H00 _FUNC0304 USINT 3 H03 NH0506 USINT 0 00 _FUNC0506 USINT 6 H06 _NH1516 USINT 0 00 _FUNC1516 USINT 15 HOF _NLO102 USINT 1 H01 0102 USINT 0 00 _NL0304 USINT 255 HFF _AH0304 USINT 0 00 NL0506 USINT 1 H01 _AH0506 USINT 0 00 _NL1516 USINT 10 0 _AH1516 USINT 0 00 _RD_DB BOOL typed ARRAY 40 0 0 0 _ALO102 USINT 0 0
173. locks composed of Variable length Variable are in umber o this request Format This can be set up to 16 Therefore the value of Number of blocks must be set between HO1 ASCII value 3031 H10 AS CII value 3030 Variable This indicates the number of name s characters that means direct variable which is allowable Blocks length Name up to 16 characters This value is one of ASCII converted from hex type and the range is from length of direct HOI ASCII value 3031 to H10 ASCII value 3130 For example if the variable name is variable MWO it has 4 characters to be H04 as its length If QW0 0 0 8 characters to be H08 X Address to be actually read is entered This must be ASCII value within 16 characters and in ariable name this name digits upper lower case and only are allowable to be entered 8 10 Chapter8 Communication Function 1 Numerical data of frame Ex is hex value and is unnecessary during preparing real frame 2 Device data type of each must be same If data type of the first block is WORD and the second block is DOUBLE WORD error occurs 3 Response format ACK response Command Number of Number of Frame Format name Header StationNo Command data Tail type blocks Ex offrame ACK H20 R r 55 01 H02 HA9F3 ETX BCC ASCII value H06 H3230 H52 72 H5353 H3031 H3032 41394633 H04 M
174. m 961X0 0 0 to IX0 0 7 2 General digital input operates if it is not designated as pulse catch input 7 19 Chapter 7 Usage of Various Functions 7 1 4 Input Filter Function External input of GM7 selects input on off delay time from the range of 0 15ms of GMWIN Credibility secured system may be established by adjustment of input correction no through using environment 1 Usage Input signal status affects to the credibility of system in where noise occurs frequently or pulse width of input signal affects as a crucial factor In this case the user sets up the proper input on off delay time then the trouble by miss operation of input signal may be prevented because the signal which is shorter than set up value is not adopted 2 Operating Explanation input on off delay time filter time input signal input image data time input signal input image data narrower width pulse than input correction no is not considered as input signal 3 Using method 1 Click twice the basic parameter on the project window of GMWIN 2 The value of filter can be set up as unit of 1ms to the input on off delay time of the basic parameter window Input on off delay time is set up as default value of 8ms 3 Set up input on off delay time is conformed to all input is used m m m m mm 7 20 Chapter 7 Usage of Various Functions 7 1 5 PID control function 1 Introduction This chapter will provide information
175. n block NUMH 16 00 or 0 High byte when the data to be written on is expressed in hex NUML 16302 or 2 Low byte when the data to be written on is expressed in hex Forthe data of the example are 2 word data continued from 40002 their size is 2 which is 0002 in hex So 00 is input for NUHH and 02 for NUHL The size of the data to be written on the slave station when they are converted by bytes For the data of the example are continual 2 word data which is converted to 4 bytes Therefore input H04 for BYTE CNT BYTE CNT 16304 or 4 Result Registers status H0102 000 8 106 Chapter 8 Communication Function 5 Errorcode CODE Error type Meaning 01 Illegal Function Error in inputting function code in function block 02 Illegal Address Error of exceeding the area limit of reading writing on the slave station 03 Illegal Data Value Error when the data value to be read from or write on the slave station isnt allowed 04 Slave Device Failure Error status of the slave station It s a responding code of the slave station for the master station to prevent the master stations time out error when request command processing takes 05 Acknowledge time The master station marks an error code and waits for a certain tme without making any second request Error when request command processing takes too much time The master 06 Slave Device Busy should request again
176. n is called derivative time and represented as Kd g The D action when a constant deviation occurred is shown as Fig 2 7 Deviation Manipulation quantity in D action Manipulation quantity Fig 2 7 Derivative action with a constant deviation 1 25 Chapter 7 Usage of Various Functions h The expression of D action is as following dE MV KpxTd dt i Derivative action is used only PID action in which P and actions combine with D action d PID action PID action controls the control object with the manipulation quantity produced by P I D action b PID action when a given deviation has occurred is shown as the following Fig 2 8 Deviation PID action _ l action P action Fig 2 8 PID action with a constant deviation e Forward Reverse action c PID control has two kind of action forward action and reverse action The forward action makes the PV reaches to SV by outputting a positive MV when the PV is less than SV d A diagram in which forward and reverse actions are drawn using MV PV and SV is shown as Fig 2 9 MV Reverse action sse action Forward action action Fig 2 9 MV of forward reverse action 1 26 Chapter 7 Usage of Various Functions e Fig 2 10 shows examples of process control by forward and reverse actions respectively temperature time Reverse action for Cooling Forward action for Heating Fig 2 10 PV of forward
177. n the A T operation is completed Then PID module will start operation with PID parameters that are calculated by A T module m D A module will convert the MV 0 4000 to analog signal 4 20mA and output to the actuator power converter Remark G7F ADHA module is supplied 2channels for A D exchange and channel for D A exchange module 4 Program a Incase of using PID function only slee Bl 8 7 37 Chapter 7 Usage of Various Functions b In case of using combined function of PID operation and Auto tuning This program is an example of PID operation performing with computed P I D values by the auto tuning performing It is performed in 80 of auto tuning SV PID process is performed from 80 of SV 2d x siela al als Libia ble Si a ie 7 38 Chapter 7 Usage of Various Functions 3 a 4 mp amp a pir 7 39 Chapter 7 Usage of Various Functions 7 1 6 External Interrupt Function In GM7 Series can perform max 8 points of external contact task by using input of base unit without special interrupt module 1 Usage This function is useful to execute a task program has been set to an external input signal 2 Operating Explanation Scan program 2 Scan program In case of occurrence of external oe End the interrupt program interrupt signal pause being process then resume to executed scan program exe
178. ng conditions of the loaded module are checked 3 Communications service or other internal operations are processed 5 5 3 PAUSE mode In this mode the program operation is temporarily stopped If it returns to the RUN mode the operation continues from the State before the stop 1 Processing when the operation mode changes Data area and input image are not cleared and the operating conditions just before the mode change is maintain 2 Operation processing contents 1 1 0 refresh is executed 2 Normal or abnormal operation and mounting conditions of the loaded module are checked 3 Communications service or other internal operations are processed 5 5 4 DEBUG mode In this mode errors of a program are searched and the operation sequence is traced Changing into this mode is only possible in the STOP mode In this mode a program can be checked with examination on its execution state and contents of each data 1 Processing when the operation mode changes 1 Data area is initialized at the starting time of the mode change complying with the restart mode which has been set on the parameters 2 The output image area is cleared and output refresh is executed 2 Operation processing contents 1 1 0 refresh is executed by one time every scan 2 Communications service or other internal operations are processed 5 25 Chapter 5 CPU Module 3 Debug operation conditions Two or more of the following four operation conditions
179. nication parameter to set regular sending receiving stations data and cycles to send and receive repeatedly For the detail information about Communication parameter refer to 7 1 7 Communication parameter setting Communicaton Parameter 1 Station number S tation No 0 to 31 2 Communication speed Baud Rate 1200 2400 4800 9600 19200 38400 57600bps 3 Data bit 7 or 8 bits 4 Parity bit None Even odd 5 Stop bit 1 or 2 bit s 1 7 Appendix 1 System Definitions 6 Communication Channel e RS232C null modem or RS422 485 Select this channel to communicate through GM7 base unit or Cnet I F module G7L CUEC e RS232C modem Dedicated Line Select this channel to communicate through Cnet I F module G 7L CUEB e RS232C dial up modem Select this channel to communicate dial up modem for modem communication using Cnet I F module G7L CUEB RS 232C modem Dedicated Line and RS232C dial up modem communication can be executed under RS 232C I F module G7L CUEB 7 Master slave Select master to be major in the communications system 8 Time out The value of default is 500ms e Set the maximum cycle time for sending and receiving of the master PLC t may cause of communication error that lower setting value than maximum cycle time for sending and receiving 9 Reading slave PLC status Select to read GM7 base unit status as slave designated But do not choose this except for the monitoring of the slav
180. ns Normal voltage DC 3 0V Warranty life time 5 years Application Programs and data backup and RTC runs in power failure Specifications Lithium Battery 3V External dimension mm o 14 5 X 26 2 Handling Instructions 1 Don t heat or solder its terminals 2 Don t measure its voltage with a tester or short circuit 3 Don t disassemble 3 Battery Replacement Backup battery needs periodic exchange In case of battery replacement at power off the built in super capacitor backup the program and retain variables about 30 minutes However it is recommended to complete the battery replacement as soon as possible or turn on the base unit during battery replacement Battery replacement Open the cover of the CPU module Release the existing battery from the holder and disconnect the connector y Insert a new battery into the holder in the exact direction and connect the connector Check base unit ERR LED if it is flickering every 2 seconds ERR Flickering No y fe Complete 5 4 3 Chapter 5 CPU Module 5 12 RTC module The G7E RTCA module GM7 provides RTC Real Time Clock function for GM7 series The RTC function can be used for time scheduling control or recording an error occurrence time The RTC data is updated into system operation status flag per every scan 1 Functions The RTC module will send the RTC data to main unit per every scan By the super capaci
181. o Q01 contact point 7 10 Chapter 7 Usage of Various Functions 4 Internal circuit and external wiring 12 24V power supply input 12 24V Ha 000 pulse output 001 direction output 4 COMO output common Internal circuit power suppl external wiring Be careful about the counter plan of the noise during the wiring in the pulse output 1 Use twisted pair shields wire for wiring and execute 3rd contact point 2 Be sure to separate from the power supply line and I O lines on which noise usually occurs 3 Length of wire should be as short as possible 4 Be sure to use the stable power supply for the pulse output and separate it from I O power supply Chapter 7 Usage of Various Functions 5 Function Block 1 Pulse Output PLS_OUT Function Block Explanation Input REQ Request to execute the function block operating by rising edge AEC EN designation of increasing decreasing velocity operation MOTOR1 0 uniform velocity operation PLS QUT 1 increasing decreasing velocity operation REQ NO Increasing decreasing operating is direct proportion to the ratio of the inclination velocity and setting up value 6 refers to operating exp AEC END MAX SPED output cycle of the max Pulse EN Range of setting up 50 2000 pps Can be set up by the multiple of 50 AEC_ STAT PLS NO No of the pulse output Range of setting up 04294967295 _ OUT_SLOT designation slot number
182. o the appendix or GMWIN manual 8 1 Chapter8 Communication Function 8 1 2 System configuration method According to the method of connection the system using GM7 built in communication can be composed 1 Connecting system configuration link between G SERIES s 1 1 1 connection with general PC Communication program made by C or BASE computer language on the user s computer or utility program like MMI software can be used GM7 base unit RS 232C interface Wiring method GM7 base unit Pin assignment And direction Pin No Signal 1 2 Female 8 2 Chapter8 Communication Function 2 1 1 connection with a monitoring device like PMU PMU LGIS GM7 base unit RS 232C interface Pin assignment and direction GM7 base unit Pin no Signal Female Type 8 3 1 CD 2 Chapter8 Communication Function 3 1 1 connection with other GM7 For the detailed inFormation refer to 8 1 7 1 1 Dedicated Protocol Communication GM7 base unit GM7 base unit RS 232C interface GM7 base unit Pin no Pin assignment and direction GM7 base unit Pin no Signal Male Type 8 4 1 CD 2
183. ocessing time of scan program that the user has written of the task program processing time and the PLC internal processing time 1 Scan time Scan program processing time Task program processing time PLC internal processing time 5 program processing time The processing time used to process a user program that is not specified to a task program Task program processing time Total of the processing times of task programs executed during one scan internal processing time Self diagnosis time 1 0 refresh time Internal data processing time Communications service processing time 2 Scan time differs in accordance with the execution or non execution of task programs and communications processing etc 2 Flag Scan time is stored in the following system flag area SCAN MAX Maximum scan time unit 1 ms SCAN MIN Minimum scan time unit 1 ms SCAN CUR Current scan time unit 1 ms 5 3 4 Scan Watchdog Timer 1 Watchdog timer is used to detect a delay of abnormal operation of sequence program Watchdog time is set in menu of basic parameter of GMWIN 2 When watchdog timer detects an exceeding of preset watchdog time the operation of PLC is stopped immediately and all output is off 3 If an exceeding of preset watchdog time is expected in sequence program use WDT_ RST function WDT RST function make elapsed watchdog time as zero 4 In order to clear watchdog error using manual reset
184. of control box with consideration of the heat generated by the PLC itself and other devices 2 It is recommended that filters or closed heat exchangers be used 9 1 Chapter 9 Installation and Wirin The follwing shows the procedure for calculating the PLC system power consumption 1 PLC system power consumption block diagram Base Unit Isv 5VDC line Expansion power module supply output part transistor part CPU part module input part 1 1 1 1 1 1 1 1 special 1 1 1 1 1 1 1 1 1 65 i Output Current Input Current utput Current SEE lour xVarop liN x Varop lour xVarop 24VDC line Ext rnal 24VDC power Supply 2 Power consumption of each part 1 Power consumption of a power supply part Approximately 70 of the power supply module current is converted into power 35 of that 65 dissipated as heat i e 3 5 6 5 of the output power is actually used e Wow 3 5 6 5 x 5 lev x 24 W where 5VDC circuit current consumption of each part 24v 24VDC circuit average current consumption of output part with points simultaneously Switched ON Not for 24VDC power supplied from external or power supply part that has no 24VDC output 2 Total 5VDC power consumption The total power consumption of all modules is the power of the 5VDC output circuit of the power S
185. on Format Frame check Frame Example ENQ H09 Refer to registration Format BCC ASCII value H05 Explanation When command is one of lower case x only one lower byte of the value resulted by adding BCC 1 byte each to ASCII values from ENQ to EOT is converted into ASCII added to BCC This can be registered up to 10 0 to 9 H00 H09 and if an already registered No is Register No NEM registered again the one currently being executed is registered This is used to before EOT in command of Formats of separate reading of direct variable Register Format continuous reading and named variable reading Register Format Register Format of request Formats must select and use only one of the followings Individual reading of direct variable RSS Number of blocks 2 Byte Variable length 2 Byte Variable name 16 Byte EM 1 block max 16 blocks Continuous reading of direct variable RSB Variable length 2 Byte Variable name 16 Byte Number of data 3 Response Format ACK response Format name Header Station No Command Registration No Tail Frame check Frame Example ACK H10 X x H09 ETX BCC ASCII value H06 H3130 H58 78 H3039 H03 Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ACK to ETX is converted into ASCII and added to BCC and sent
186. on scan time forward reverse operation control Cnet I F Function IMO exclusive protocol support Common use with GMWIN port MODBUS protocol support User s protocol support 2 phase 8 kHz 1 channel It has 3diffferant counter function as following Internal 1 phase up down by program Function 1 phase up down by B phase input 2 phase up down by phase difference Execute a task program when the elapsed counter value reaches to the preset value Pulse catch Minimum pulse width 0 2msec 8 points Pulse output output only External interrupt Input ter GIM DR20A GIM DR3OA G7 DRAOA GIM DR6OA GTE DRIOA 5 3 Chapter 5 CPU Module 5 3 Operation Processing 5 3 1 Operation Processing Method 1 Cyclic operation A PLC program is sequentially executed from the first step to the last step which is called scan This sequential processing is called cyclic operation Cyclic operation of the PLC continues as long as conditions do not change for interrupt processing during program execution This processing is classified into the following stages Processing Operation Start Stage for the start of a scan processing it is executed only one time mum when the power is applied or reset is executed It executes the Initialization following processing 1 0 reset Execution of self diagnosis Data clear 1 0 address alloca
187. ontent of AN amp WB 751 will be written to ANCWAR T _ANC_WAR 7 75 _ANNUN_WR 0 EN WARIO 0 If all warnings indicated on the ANC WB n are released during operation ANC WAR L 0 the ANNUN WR and ANC WAR n will be shown as left WAR 2 20 WAR 3 20 0 ANC WAR 5 20 WAR 6 0 WAR 7 20 5 34 Chapter 5 CPU Module 5 7 Memory Configuration The CPU module includes two types of memory that are available by the user One is program memory which is used to store the user programs written to implement a system by the user The other is data memory which stores data during operation 1 Program memory configuration The table given below shows the contents to be stored and the storage capacity of program memory Item Memory Capacity Overall program memory area 68 k byte Parameter Basic parameter area 2 0 Kbytes High speed link parameter area e interrupt setting information area Program area Scan program area Task program area User defined function function block area 66 Kbytes Standard library area Variable initialization information area Protective variable specification information area 2 Data memory Configuration The table given below shows the contents to be stored and the storage capacity of program memory Memory Capacity Overall data memory area 32 Kbytes System area 1 0 information t
188. ority 0 PROC 9 internal contact point 0 priority 3 E_INT1 external contact point 1X0 0 1 priority 2 program registration program program P1 with the task T SLOW program P2 with the task PROC 1 program with the task E If program execution time is equal to external interrupt occurrence time Execution time for each program P0 17 ms 1 2 ms P227 ms P322 ms Interrupt EINT occurrence time Occurred at the 6 7 20 ms after the operation started PROC 1 occurrence Invoked during the execution of scan program 5 20 Chapter 5 CPU Module Program execution is shown as below Startscan Finish scan program End of 1 scan First RUN Start next scan Execute Pl SLOW occurs Execute P2 DetectPROC 1 Execute P 3 E occurs Time 0 6 78 1012 20 2224 25 303234 BM Execute withoutprogram stop Execute with program pause program execution Processing with time Time ms Processing 0 Scan starts and the scan program 0 starts its execution 0 6 The program P0 is being executed Execution request for is input and is stopped and is executed 6 8 Execution request for P1 by E INT1 at the 7 ms is ignored as the P2 is being executed 8 10 P3 finishes its execution and the PO stopped continues its execution 10 12 is stopped and P1 is execu
189. ou save the program in the flash memory set STOP mode as the operation mode of the basic units If you try to save when the mode is RUN the following window shows GMWIN 3 Dip switch for flash memory operation is placed in deep place to prevent a mistaken operation caused by terminal block Cover etc Use a small driver to operate it Driver Terminal block cover 5 39 Chapter 5 CPU Module 5 10 External Memory Module GM7 series supplies external memory module for the user to save programs safely or download a program on the system and use it in case of a program is damaged 5 10 1 Structure Installation connector 5 10 2 Usage 1 Saving the user s program on the external memory module the power of the base unit off Install the memory module When only basic unit is used Connectto the expansion connector of the basic unit When expansion unit is used Connectto the expansion connector of the last connected expansion unit Tum the dip switch for ROM mode setting of the base unitto OFF This switch is for Cnet ROM MODE 4 Turn the power of the base unit on 5 Connect GMWIN and PLC 6 Select Online Flash memory Type information to confirm the flash memory size and installation of the memory module 5 40 Chapter 5 CPU Module Flash Memory 7 Choose Online Flash memory Writing in menu and the following message box will displayed Write to the Flash Memory
190. output Corrective actions Insert a small L R magnetic contact and drive the load using the same contact Output Output transistor destroyed is Surge current of the white lamp Output A surge current of 10 times or more when turned on 11 11 To suppress the surge current make the dark current of 1 3 to 1 5 rated current flow Output WX Sink type transistor output Source type transistor output Chapter 11 Troubleshooting 11 5 Error code list Operation ERR LED Diagnosis Restart Error Cause Corrective action E 3 status Flickering cycle time mode Contact the A S center if it reactively occurs when When power 2 OS ROM error Defect 0 4 sec the power is re applied iS applied Contact the A S center if it reactively occurs when When power 3 OS RAM error Defect 0 4 sec the power is re applied iS applied Contact the A S center if it reactively occurs when When power 4 IC RTC error Defect 0 4 sec the power is re applied iS applied Contact the A S center if it reactively occurs when When power 5 Fault processor Defect 0 4 sec the power is re applied is applied Contact the A S center if it reactively occurs when When power 6 Program memory fault Defect 0 4 sec the power is re applied iS applied Contact the A S center if it reactively occurs when When power 7 Data memory fault Defect 0 4
191. ower source Source Output A power source Fieldbus Network Computer Network DeviceNet Network Chapter 2 System Configuration The GM7 series has suitable to configuration of the basic computer link and network systems This chapter describes the configuration and features of each system 2 1 Overall Configuration 2 1 1 Basic system base unit expansion module expansion cable Total 1 0 points 10 80 points Digital 1 0 module e 2 modules Maximum numbers AID D A er e 2 modules Composite module Total 3 modules modules Analog timer 3 modules Cnet I F module 1 module Not available for 10 point module Base unit eG7M DR10A G7M DR20A GM7 DR30A G7M DR40A GM7 DR60A G7M DR10A DC G7M DR20A DC G7M DR30A DC G7M DR40A DC G7M DR60A DC G7M DT10A G7M DT20A G7M DT30A G7M DT40A G7M DT60A Items Digital 1 0 module e G7E DR10A A D D A Expansion e G7F ADHA Composite module module Analog timer e G7F AT2A Cnet I F modules e G7L CUEB G7L CUEC 2 1 2 1 2 Cnet I F system Cnet I F System is used for communication between the base unit and external devices using RS 232C RS 422 Interface The GM7 has a built in RS 232C port and has also G7L CUEB for RS 232C G7L CUEC for RS 422 It is possible to construct communications systems on demand 1 1 1 Communications system 1 1 1 ratio of an external device computer
192. peats between the master and the slave 8 59 Chapter 8 Communication Function 1 The Programming and setting communication parameter of the slave station 1 Work atthe slave station no 1 2 Open a new project file and make a new program for the slave station GMIN rer iri ove Woman asgi e Auser dete master pr Project Program Edit Toolbox Compila Online Debug Window Help Sele mel a oj mp le EE sel le r i amwinesourceWusar detina sla src c Fomai SOU e muser delne master pri fe PROJECT PLC GH COMFIGURATIONCPLC Configuration Hane UHHAHED E ACCESS VARIABLES gt H variables declared RESGURCECCPU B Hane 8 RESOURCE GLOBALS gt HB variables declared Ej TASK DEFINITIONS 1 tasks defined LD 1 PROGRAM gt LA define E COMHMEHTS for DIRECT VARIANLES variables declared PARAKETERS DASIC PARAMETERS In COHMHUMNT CAT PARAMETER INCLUDED LIBRARIES qe 8 60 Chapter 8 Communication Function 3 Select communication parameter in GMWIN parameters and double click it and then the window of communication parameter will be opens Communicaton Parameter Communication Method Protocol and Mode Statio Baud Data Parity Stop nNo Rate Bit Bit Bit Communication channel
193. puter link module etc 5 Change by the STOP function ESTOP function during program execution 2 Operation mode change by the mode setting switch of CPU module The following shows the operation mode change by the mode setting switch of CPU module Mode setting switch position Operation mode RUN Local RUN STOP Local STOP STOP PAU REM Remote STOP PAU REM RUN 1 Local RUN RUN PAU REM 2 Local PAUSE STOP Local STOP mg 5 26 Chapter 5 CPU Module 1 1 If the operation mode changes from RUN mode to local RUN mode by the mode setting switch the PLC operates continuously without stopping 2 2 If Local PAUSE disable or Local PAUSE enable is set by parameter GMWIN it operated as Remote RUN or Local PAUSE 3 Remote operation mode change Remote operation mode change is available only when the operation mode is set to the remote STOP mode i e the mode setting switch position is in the STOP PAU REM Mode change using FAM or computer link etc Mode setting Mode change by the M h Switch position oae Change GMWIN Remote STOP gt Remote RUN Remote STOP gt Remote PAUSE X X Remote STOP gt DEBUG Remote RUN gt Remote PAUSE Remote RUN Remote STOP Remote RUN gt DEBUG X X Remote PAUSE Remote RUN Remote PAUSE Remote STOP Remote PAUSE Remote DEBUG X X DEBUG gt Remote STOP DEBUG gt Remote RUN DEBU
194. r and it writes word data continually on the Holding Registers of the station no 17 a Modicon product The master writes 000A and 0102 on the Holding Registers 40002 of the slave station no 17 The data that is to be written are saved any array variable WR_DB1 of the 4 sized BYTE type WR_DB1 0 2 00001010 or 16 0A WR_DB1 1 2 00000000 or 16 00 WR DB1 2 23100000010 or 16302 WR DB1 3 23100000001 or 16301 The size of BYTE CNT is the same as when the data to be written are converted by byte The above data are 2 words that need 4 bytes Therefore the size of BYTE CNT is 4 Data is sent starting from the low word by byte unit An example of sending the above data is as follows Ex1 00 0A 01 02 8 105 Chapter 8 Communication Function REQ Enter the input condition to operate SLV_ADDR 16 11 or 17 The slave station number FUNC 16 10 or 16 Enter 16 as words are continually written on the Holding Registers ADDRH 16 00 or 0 High byte of the starting addresses to write on the slave station ADDRL 16 01 or 1 Low byte of the starting addresses to write on the slave station Write on no 1 to write on starting from the output holding Registers 40002 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesn t need to be input Because it s automatically processed by the input value of the input FUNC of the functio
195. r subtracted from the MV and the longer the time needed for the PV to reach the SV As shown in Fig 2 6 when the integration time given is short the PV will approach the SV in short time since the quantity added or subtracted become increased But If the integration time is too short then oscillations occur therefore the proper P and value is requested d Integral action is used in either action in which action combines with action or PID action in which and D actions combine with action Fig 2 5 The system response when a long integration time given 7 24 Chapter 7 Usage of Various Functions Fig 2 6 The system response when a short integration time given c Derivative operation D action e When a deviation occurs due to alteration of SV or external disturbances D action restrains the changes of the deviation by producing MV which is proportioned with the change velocity a velocity whose deviation changes at every constant interval in order to eliminate the deviation D action gives quick response to control action and has an effect to reduce swiftly the deviation by applying a large control action in the direction that the deviation will be eliminated at the earlier time that the deviation occurs D action can prevent the large changes of control object due to external conditions period of time from when the deviation has occurred to when the MV of D action become the MV of P actio
196. rame check Frame Example ENQ r SB MDO H02 BCC ASCII value H05 H72 H5342 H254D4430 o For ACK response after execution of command PC GM7 Base Unit Format name Command Command type Number of data data Frame check Frame Example r SB H08 12345678 9ABCDEFO BCC H313233343536373839414 24344454630 ASCII value H72 B For response after execution of command PC GM7 Base Unit Format name Header Station No Command Command type Error code Frame Example NAK HOA r SB Error code 2 ASCII value H15 H3041 H72 Eror code 4 8 16 Chapter8 Communication Function 3 Individual writing of direct variable W w SS 1 Introduction This is a function that writes the PLC device memory directly specified in accord with memory data type 2 PC request format Command Number of Variable Format name Header Station No Command Variable Name Data type blocks Length Frame Example ENQ H20 W w 55 01 06 MW 100 00 2 ASCII H254D5731 H30304 05 H57 77 value 3030 532 ee 1 block setting can be repeated up to max 16 blocks Explanation When command is one of lower case r only one lower byte of the value resulted by adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and added to BCC This specifies how much of the blocks composed
197. rectory which are created when source file is compiled Temporary File Directory GMWIN saves temporary file in this directory during the execution For detailed descriptions refers to GMWIN manual For the detail information about Directory Option refer to GMWIN Manual 1 2 Appendix 1 System Definitions 3 Auto Save This function is to set the time interval for Auto saving Automatically saved file is saved with ASV file in the current directory The file is automatically deleted when the program window is closed Therefore if a program cannot be saved by Program Error before program is not saved you can recover some program by loading auto saved file Selectthe Project Option Auto Save in menu Enter the time interval for auto saving 1 to 60 minutes is available and if you enter 0 auto save function is disabled Click OK button 1 3 Appendix 1 System Definitions 4 Monitor Debug option To setthe whole options for monitoring Select the Project O ption Monitor Debug Option in menu In monitoring mode it allows you to change the display type of monitoring variable Select the Project Option Monitor Debug Option in menu Select the desired display type in the Monitor Display Type click OK button Option Example If you select the Default in Monitor Display Type The value of variable monitoring is displayed as hexadecimal type like 16 SFC Auto Scroll Option
198. red the representative task collision warning flag TASKERR will be set to ON the detailed system error flag BMAP n will be set to ON at its corresponding location and occurrence time of the time driven tasks whose execution requests have been ignored will be written at its corresponding location of the flag TC CNT n e The timer that invokes the execution request for time driven task programs will be incremented only when the operation mode is in the RUN mode 5 17 Chapter 5 CPU Module e lf the RUN mode has been changed into the PAUSE mode while operating with the RUN mode and then the operation mode has been changed again into the RUN mode the operation time spent with the PAUSE mode will be ignored e When setting the execution cycle for a time driven task program be cautious that execution requests for many time driven task programs can occur If four time driven task programs of cycle 2 4 10 and 20sec are used four execution requests will occur every 20 sec and scan time can be momentarily extended 4 External contact program processing method In GM7series it is different from GM1 2 3 4 to use normal digital input task program not a separate interrupt input module The following explains in the case that the task start up condition of a task program has been set to an external input signal 1 Settings that have to be set for the task e Set the contact No of input module and priority for the task that will be used as
199. representative flag indicates that a 1 0 module does normally au read write error executes read write Refer to IP IFER n Special communicat This representative flag indicates that special or communications SP IFER BOOL Bit5 ions module module has failed in initialization or normal interface is impossible due interface error to module malfunction Referto IFER IFER n External device fatal This representative flag indicates that an external device has fatal error fault detection error The error code has been written to ANC ERR n Bit7 WD ER BOOL Bit Scan watch dog his flag Indicates that the scan time of a program has overrun the scan error watchdog time specified by the parameter CODE ER BOOL Bit 9 Program code error his flag indicates that an unreadable instruction has been met while executing an user program _STACK_ER BOOL Bit 10 Stack overflow error This flag indicates that the stack is used out of its capacity Overflow P ER BOOL Bit11 Piogiam Sirol his flag indicates that program execution is impossible due to Soe Pe destroyed memory or program error App2 2 Appendix 2 Flag List 3 Representative System Warning Flag List Keyword Type BitNo Name Description Represent WAR WORD ative System waming his flag treats the below warning flags relating to cont
200. reverse action f Reference value In general feedback control system shown as the Figure 2 10 the deviation value is obtained by the difference of PV and SV I and D operations are performed based on this deviation value However each of P and D operations use different deviation values according to the characteristics of each control actions The expression of PID control is as following MV K Ep4 Eis ds Td Ti 0 MV Manipulate value K Proportional gain Ti Integral time Td Derivative time Ep Deviation value for proportional action Ei Deviation value for integral action Ed Deviation value for derivative action The deviation values of P and D action is described as following equations Ep bxSV PV Ei SV Ed PV b of the first equation is called as reference value It can be varied according to the load disturbance of measurement noise SV MV PY PID Process Fig 2 11 Diagram of simple feedback system 7 27 Chapter 7 Usage of Various Functions The figure 2 11 shows the variation of PV according to the several different reference values b As shown in the Fig 2 11 the small reference value produces small deviation value and it makes the control system response be slow In general control system is required to be adaptable to various external internal changes Especially it should shows a stable transient respons
201. rget position 10000 Forward dir Start point Target elocity Velocity Profile Reverse dir Pulse input Example of a program 7 17 Chapter 7 Usage of Various Functions 7 1 3 Pulse Catch Function In the base unit 8 points of pulse catch input contact points lX0 0 0 0 0 7 are internalized Through using this contact point short pulse signal short as 0 2ms can be taken which can not be executed by general digital input 1 Usage When narrow width of pulse signal is input a trouble occurs which can not be executed by general digital input so the operation does not perform as user s intention But in this case through pulse catch function even narrow interval of pulse signal as 0 2ms min can be executed 2 Operating Explanation input signal input image data scan 1 scan 2 scan 3 step executing contents scan CPU senses input when pulse signal min 0 2ms is input then saves the status scan2 used to turn on the region of input image scan3 used to turn off the region of input image 3 using method 1 click twice the basic parameter on the project window of GWMIN 2 Select no to use for pulse catch input of the basic parameter window For details of GMWIN refers to the manual 7 18 Chapter 7 Usage of Various Functions Bees perp free EN 1 8 points can be used to designate the pulse catch input The input address is fro
202. rnal device side as shown below input input External device Leakage current External device Input signal doesn t turn off Drive by switch with LED indicator Sneak current due to the use of two Connect an appropriate register which will make the voltage higher than the OFF voltage across the DC input different power supplies E15 E2 sneaked 11 9 Use only one power supply Connecta sneak current prevention diode DC input DC input Chapter 11 Troubleshooting 11 4 2 Output circuit troubles and corrective actions The following describes possible troubles with input circuits as well as their corrective actions Condition When the output is off voltage is applied to the load excessive eLoad is half wave rectified inside in some cases itis true of a solenoid When the polarity of the power supply is as shown is charged When the polarity is as shown in the voltage charged in C plus the line voltage are applied across D Max voltage is approx 2 2 B If a resistor is used in this way it does not pose a problem to the output element But it may make the performance of the diode D which is built in the load drop to cause problems Corrective Action Connect registers of tens to hundreds K amp across the load in parallel The turn off load doesnt Leakage current by surge absorbing circuit which is
203. rogram the task will not be executed as the execution condition can not be detected atthe time that execution conditions are being checked 1 When action must continuously be executed according to the related contact point set as a startup condition select a level 6 Execution of high speed task program GM7 series uses general digital input contact point to count high speed pulse not a separate high speed pulse input module Setting a task startup condition as the same with the one of the high speed pulse input will be explained 1 Conditions to be set for a task Setthe priority on the tasks that are startup conditions for the task program to be executed Then a task number will automatically be added in the priority order 2 Processing the high speed counter task When CHSC SET F B of the program assigns a set value the task program whose set value matches with the counted value of the pulse that is input in a high speed is executed 3 Precautions for using high speed counter task program The task can be used only with CHSC SET F B High speed input counter can be used without CHSC SET F B Even though the operation is PAUSE mode counted value rises Butthis can executes the task program When the operation is RUN mode the task is executed 7 Examination on task program After writing down a task program be sure to examine the following items 5 19 Chapter 5 CPU Module 1 Task se
204. rting module lt Figure 1 1 gt Flowchart of PID control system Sensor Chapter 7 Usage of Various Functions 2 Specification 1 Control operation a Proportional operation P operation action means a control action that obtain a manipulate value which is proportional to the deviation E the difference between SV and PV b The deviation E is obtained by multiplying a reference value to the actual difference between SV and PV It c prevents the deviation from a sudden change or alteration caused by external disturbance The formula of deviation is as following MV Kpx bxsv Pv Kp the proportional constant gain b reference value SV set value PV present value When E happens MV by P operation is like Fig 2 1 E SV Time Time Fig 2 1 MV by P operation If the Kp is too large the PV reaches to the SV swiftly but it may causes a bad effect like oscillations shown in the Fig 2 2 If the Kp is too small oscillation will not occur However the PV reaches to the SV slowly and an offset may appear between PV and SV shown in the Fig 2 3 The manipulation value MV varies from 0 to 4 000 User can define the maximum value of MV MV MAX and minimum value MV MIN within the range 0 4 000 When an offset remains after the system is stabilized the PV can be reached to the SV by adding a certain value This value is called as bias value and user can define the bia
205. s newly changed when the timer function block is executed When the process time reaches the setting time process time setting time the contact 0 turns off The contact turns off after the setting time regardless of input condition off status The following diagram shows pulse timer timing t2 PT 4 Timer Error The maximum timer error is 1 scan time time from the start of scan to execution of the timer function block 5 8 Chapter 5 CPU Module 5 3 6 Counter Processing The CPU part counter increase decrease the present counting value by the detection of rising edge off on of input signal Three types of counter are increment counter Decrement counter and Increment Decrement Counter For details refer to IMO GM Programming The Increment counter is a counter which increment the present counting value The Decrement counter is a counter which decrement the present counting value The Increment Decrement counter is a counter which compares the counting values of two input conditions 1 Counter Present Value Change and Contact On Off Increment Counter e tshould have Input condition CU reset condition and setting value P V NAME CTU BOOL CU Q BOOL BOOL R INT RV e counting value CV increments and reaches the setting value PV the output contact Q turns on When the reset signal is turn on the counting value is set to 0 and the output contact Q turn
206. s off 2 Decrement Counter e t should have input condition CD load LD and setting value P V NAME CTD BOOL CD Q BOOL BOOL LD INT PV e f the counting value CV decrements and reaches 0 the output contact Q turns on If the load LD signal is turned on the counting value is set to the setting value and the output contact Q turns off 5 9 Chapter 5 CPU Module Increment Decrement Counter e should have Increment input condition CU Decrement input condition CD load LD and setting value P V NAME CTUD BOOL BOOL BOOL QD BOOL BOOL BOOL INT INT If reset signal R turns on counting value CV is set to 0 If load signal LD turns on counting value is set to setting value PV t is increased by 1 at the rising edge of increment input CU and decreased by 1 at the edge of decrement input CD If counting value CV is equal or larger than setting value PV QU will be on and if counting value CV is equal or less than setting value PV QD will be on 2 Counting speed The counting speed is decided by scan time and it will be counted when on time or off time of input condition is larger than each scan time Max Counting speed Cmax N 100 1 ts pps s n duty ts scan time s Duty n is the percentage 96 of On Off of the input signal 1 Ti 672 1 1 2 100 Ti gt 12 nz T2 T14T2 100 Chapter 5
207. s value 7 22 Chapter 7 Usage of Various Functions Fig 2 2 When the proportional constant Kp is large Fig 2 3 When the proportional constant Kp is small b Integral operation operation a With integral operation the manipulate value MV is increased or decreased continuously in accordance time in order to eliminate the deviation between the SV and PV When the deviation is very small the proportional operation can not produce a proper manipulate value and an offset remains between PV and SV The integral operation can eliminate the offset value even the deviation is very small The period of the time from when the deviation has occurred in action to when the MV of action become that of P action is called Integration time and represented as Ti 7 23 Chapter 7 Usage of Various Functions b Integral action when a constant deviation has occurred is shown as the following Fig 2 4 Deviation 7 5 W of P action action 2 2 4 Kp E MV of D action Time Fig 2 4 The integral action with constant deviation c The expression of action is as following Edt Ti As shown in the expression Integral action can be made stronger or weaker by adjusting integration time Ki in action That is the more the integration time the longer the integration time as shown in Fig 2 5 the lesser the quantity added to o
208. se and should be handled with special care When wiring the built in high speed counter of GM7 take the following precautions against wiring noise Be sure to use shielded twisted pair cables Also provide Class 3 grounding 1 2 Do not run a twisted pair cable in parallel with power cables or other I O lines which may generate noise 3 Before applying a power source for pulse generator be sure to use a noise protected power supply 4 For 1 phase input connect the count input signal only to the phase A input for 2 phase input connect to phases A and B 2 Wiring example 1 Voltage output pulse generator 24V Pulse Generator 24V Puls Pulse Generator E 7 3 Chapter 7 Usage of Various Functions 7 Function block 1 Writing the operating information CHSC_WR FUNCTION BLOCK Description Input REQ Request signal of F B execution PHS Operation modes selection 0 1 phase counter 1 2 phase counter MULT Assign the multiplication factor CHSC_WR MULT 1 2 or 4 REQ DONE U D_I E Assign the count direction up down selector 0 Set by sequence program PHS STAT 1 Set by B phase input signal 1 up count 0 down count _ Carry reset signal 1 reset DOWN Select the count direction 0 up 1 down when the counter is set as 1 phase counter and up down is selected by sequence program PHS 0 amp U D_I E 0 CT_E Counter enable signal 0 Counter
209. sequence Coils And function 16 does 1 word by 1 word data writing on sequence of the Holding Registers Error It outputs error codes to output STATUS Refer to Error codes for the detailed 8 102 Chapter 8 Communication Function 3 An example of the program 1 Its supposed that GM7 base unit is the master and it writes bits continually on the output coil of the station no 17 a Modicon product The master writes continual 10 bits 01110011011 on the Coils 00020 of the slave station no 17 1 bit by 1 bit The data that is to be written are saved in any array variable WR_DBO of the 2 sized BYTE type WR_DBO 0 23411001101 16 0 WR_DB0 1 2 10000001 16 1 The size of BYTE is the same as when the data to be written are converted by byte The above data are 10 by 1 bit They cant be filled by 1 byte So they must be filled from the low bit using 2 bytes And 0 fills the remnant 6 bits Therefore the size of BYTE_CNT is 2 e If itis supposed that data of 1000 0001 1100 1101 are saved in the array variable WR_DBO the data are sent as 10 bits 01 1100 1101 at the bottom plus 6 bit of 0 at the top For the size of the data is set as 10 bits to send and they are sent by bytes the deficient 6 bits are filled with 0 Data is sent starting from the low bit by byte unit An example of sending the above data is as follows Ex1 CD 01 8 103 Chapter 8 Communication Function REQ Enter the inpu
210. shows the types and functions of tasks she is Time driven task External interrupt task Internal interrupt task High speed task Number 8 8 8 1 The rising edge or on Start up Time driven interrupt At the rising edge af input of the RUM Using CHSC_SET F B up to 4 294 967 29 contact on the designated variable data which has condition select set value sec by the 10 ms Slot been specified of buffer data Detection Immediately executed Executed periodically y detection after scan When reaches the SV and Mi when an edge occurs in as setting time program has been it executes execution the interrupt module M finished Detecti Delayed for the same Up to 1 ms delay 0 4ms y Delayed up to 1 ms delay ti time as max scan time Executi Level 0 to 7 Level 0 Level 0 to 7 0 has Level 0 to 7 Level 0 Level 0 to 7 Level 0 priority has highest priority highest priority has highest priority has highest priority 2 Task program processing Method The following explains the common processing method and instructions for task programs 1 Task program characteristics task program will be executed when an execution condition is satisfied while the scan program is repeatedly processed at every scan Be sure to consider that point when writing a task program For example if a timer and a counter have been used in a 10 sec cycle time driven task program the timer occur
211. start up conditions of the task programs to be executed Priority will be the task number 2 External contact task processing e The CPU module checks the occurrence of interrupt input every Ims and executes the task program which are designated by the contact at which the signal has been occurred 3 Precautions for using an external contact task e Input interrupt that is possible to set is up to 1X0 0 0 1X0 0 7 While a task program which are designated by an input module having interrupt input contact is being executed or ready for its execution if an execution request of a task program has been occurred to the same input contact then the newly invoked task will be ignored the representative task collision warning flag TASK ERR will be set to ON the detailed system error flag TC_BAMP n TC CNT n will be set to ON at its corresponding location and the occurrence time of the external task whose execution request has been congested e Execution request for a task program can be accepted only when the operation mode is in the RUN mode Thatis if the RUN mode has been changed into the PAUSE mode while operating with the RUN mode and the operation mode has been changed into the RUN mode again all execution requests occurred during the operation with the PAUSE mode will be ignored 5 Internal task program processing method The following explains the processing method when the task start up condition of a task program has been se
212. switch restarting the PLC or mode change to STOP mode are available EE Setting range of watchdog 1 5 000ms unit 1ms 5 6 Chapter 5 CPU Module 5 3 5 Timer Processing The CPU timer is an incremental timer which increases its present value according to the measuring time Three types of On Delay Timer TON Off Delay Timer TOF and Pulse Timer TP are available Its measuring range is 0 001 to 4 294 967 295 sec 1 193 hours by 1 ms for details refer to IMO GM programming NAME BOOL In Q BOOL TIME ET TIME 1 On Delay Timer Process Time Change and Contact On Off Timer Process time is newly changed when the timer function block is executed When the process time reaches the setting time process time setting time the Timer output contact turns on On Delay Timer Timing Diagram is shown as below 2 Off Delay Timer Process Time Change and Contact On Off e f input condition turns on timer output contact Q turns on If input condition turns off timer process time starts increasing The process time is newly changed when the timer function block is executed When the process time reaches the setting time process time setting time the contact Q turns off The following diagram shows Off Delay Timer Timing 5 7 Chapter 5 CPU Module 3 Pulse Timer Process Time Change and Contact On Off If input condition turns on output contact Q turns on The process time i
213. t ce 5 24 5 5 1 RUN mode 5 acne cece ccc ER 5 24 5 5 E 5 25 5 5 3 200 5 25 5 5 4 DEBUG mode eerte dantes 5 25 5 5 5 Operation mode 5 26 Oolginrei rper 5 28 5 6 1 Restart mode rici ceeerrein eec 5 28 5 6 2 Self diagnosls rere ciere rec ince rne ze cce caet essent crea ecce ene 5 30 5 6 3 Remote function eese enne nnne nnne nnne nnn 5 30 5 6 4 V O Force On Off function 5 31 5 6 5 Direct operation 5 32 5 6 6 External device error diagnosis function 5 32 5 7 Memory Configuration seen nennen nn nn nnn n nnnm nnn 5 35 5 8 I O No Allocation 5 37 5 9 Built in Flash Memory eene 5 37 5 9 1 Str cture rere terere
214. t condition to operate SLV_ADDR 16 11 or 17 The slave station number FUNC 16 0F or 15 Enter 15 as bits are continually written on the output coils ADDRH 16300 or 0 High byte of the starting addresses to write on the slave station ADDRL 16313 or 19 Low byte ofthe starting addresses to write on the slave station Write on No 19 to write on starting from the output holding Registers 00020 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesn t need to be input Because it s automatically processed by the input value of the input FUNC of the function block NUMH 16300 or 0 High byte when the data to be written on is expressed in hex NUML 16 0A or 10 Low byte when the data to be written on is expressed in hex For the data of the example are 10 bits continued from 00020 their size is 10 which is 000 in hex So 00 is input for NUHH and HOA for NUHL BYTE_CNT 16302 or 2 The size of the data to be written on the slave station when they are converted by bytes For the data of the example are continual 10 bits which is converted to 2 bytes Therefore input H02 for BYTE CNT Result From the 2 bytes 16 bits sent only the low 10 bits are valid as set for its size 9 1 1 0 1 8 104 Chapter 8 Communication Function 2 lts supposed that GM7 base unit is the maste
215. t output is executed by use of the DIRECT O function If this function is used the data of the output image area which has the operation results by the time will be directly outputto the direct output module 3 Force on off e Force on off settings are still effective when processing direct 1 0 5 6 6 External device error diagnosis function Flags are given for the user to implement easily the program in which the error detection of external devices and system stop and warning are coded By use of these flags error indication of external devices is possible without complex programming and monitoring of the error location can be done without special tools GMWIN etc or source programs 1 External device fault detection and classification 1 The user program detects external device faults The faults are classified into fatal fault error where the PLC stops its operation and ordinary fault warning where operation continues 2 The flag ANC ERR n is used to indicate error The flag WN n is used to indicate warning 2 External device fatal fault error processing 1 If an error of external device is detected and the error type where other value than 0 is used is written to the system flag ANC ERR n the flag will checked at the time that scan program finishes its execution If an error is indicated on the flag it will be also indicated on ANNUN ER of the representative system error flag CNF ER the PLC turns all o
216. t to the contact of direct variable area l Q or M or automatic variable area 1 Settings that have to be set for the task e Set the contact No of input module and priority for the task that will be used as start up conditions of the task programs to be executed Priority will be the task number Chapter 5 CPU Module 2 Internal contact task processing e After the execution of scan program has been completed in the CPU module the internal contacts that are the start up conditions of the task program will be checked and the internal task programs where rising edge or on state has been occurred will be executed in accordance with its parameter 3 Precautions when using an internal task program e The internal task program is executed when scan program has finished its execution Therefore though the execution condition for the internal task program has been invoked in the scan program or task program time driven external the task start up condition will not be immediately executed but will be executed when scans program has finished its execution If execution of an internal task program is requested the execution conditions will be checked when scan program has finished its execution Therefore if an internal task execution conditions during One scan has been occurred and disappeared if the specified contact has been turned from OFF to ON and then from ON to OFF by scan program or time driven or external task p
217. ta Type frame For the detailed setting BCC refer to 8 1 6 Execution of Commands Itis that sum all the data from 274 data to the data before the data marked as BCC and inputthe Default resultto the BCC area SUM1 BCC method uses sum like defaults butthe user can set the BCC area BCC method is the same with SUM 1 butits used when the user masks any value to the last BCC SUM 2 value XOR1 BCC method is OR EXCLUSIVE OR BCC method is the same with XOR 1 butit s used when the user masks any value to the last BCC XOR 2 value MUL1 BCC method is MULTIPLY thatis multiplication BCC method is the same with MUL 1 but its used when the user masks any value to the last BCC value H signifies header S is for segment and T is for tail Range Ex1 When header is setas STX tail is set as and the range of setting BCC is to be from STX to ETX then setas H 1 T 1 MUL 2 Itis to set whether not to take complement number or to take the complement number of 1 or 2 at Complement BCC value If mask setting is done after taking a complement number the user can set any value to do masking Sets any value and method of masking Ex1 When masking by XOR method using a value FF Ex2 When masking by OR method using a value HFF FF When masking by AND method using a value amp F F Keys on Keyboard for setting masking m
218. ted due to execution request for P1 12 20 P2 finishes its execution and the PO stopped continues its execution 2 Execution requests for 1 and are simultaneously exist but the higher priority P1 is executed and P3 is ready for its execution 20 22 is stopped and P1 is executed 22 24 finishes its execution and the higher priority is executed before PO 24 25 P3 finishes its execution and the PO stopped completes its execution s Execution request for P2 is checked at the finish time of the scan program P 0 and P2 is executed 25 30 The program P2 is executed Execution request for P1 is input and P2 is stopped and P1 finishes its execution 32 34 P1 finishes its execution and the P2 stopped finishes its execution 34 A new scan starts PQ starts its execution 5 21 Chapter 5 CPU Module 5 44 Error Handling 1 Error Classification Errors occur due to various causes such as PLC system defect system configuration fault or abnormal operation result Errors are classified into fatal error mode which stops system operation for system stability and ordinary error mode which continues system operation with informing the user of its error warning The main factors that occurs the PLC system error are given as followings PLC hardware defect System configuration error Operation error during execution of the user programs External device malfunction 2 Operation mode at error occurrence
219. tern trit inet ener reine 5 37 5 9 2 6 6 6 eee 5 38 5 10 External Memory Module ener 5 40 c le 5 40 5 10 2 ee 5 40 Lmhl rurnllde 5 43 LP MOU 6 eC M 5 44 Chapter 6 Input and Output Modules 6 1 Input and Output Specifications esee 6 1 6 2 Digital Input Specifications 6 2 6 2 1 Base Unit aaa e 6 2 6 2 2 Extended Module esee 6 6 6 3 Digital output na 6 7 6 3 1 Base unit Relay 6 7 6 3 2 Base unit Transistor 444 22 4 22222 6 10 6 3 2 Extended Module eese enne 6 13 Chapter 7 Usage of Various Functions TA Bullt in TUDCLIOn 7 1 7 1 1 High speed counter function eene 7 1 7 1 2 Pulse Output 7 8 7 1 3 Pulse Catch 7 18
220. tery 3 installation Folder for back up battery installation Chapter 4 Names of Parts No Name Key switch mode creation Indicates base units drive mode RUN Indicates program operation STOP Stopped program operation PAU REM usage of each modules are as follows PAUSE temporary stopping program operation REMOTE Indicates remote drive Dip switch memory operation See Chapter 5 RS 232C connector 9 pin DIN connector to connect with external devices like GMWIN Expansion connector cover Connector cover to connect with expansion unit Terminal block cover Protection cover for wiring of terminal block Private hook DIN rail Private part hook for DIN rail Chapter 4 Names of Parts 4 1 1 10 point base unit C7M DR104 PREP AWD AEE Looe COM TALE 100 240 000 T QOL T Q02 100410061 FG COMO COMI 2 005 CoMS 005 007 No Name Usage 1 Terminal block for power supply Terminal blocks for power supply AC 100V 240V or DC12 24V 2 FG circuit Frame ground AC power model LG circuit Line ground DC power model 3 Output circuit Output connecting current 4 Input circuit Connecting input current 5 DC24V 246 circuit Service power supply for DC 24V needed place 6 RS 485 communication terminal Terminal block for RS 485 communication 10 point base unit only 4 3 Chapter 4 Nam
221. the m reset restart mode Initialize data area according to the preset restart mode Check the program and determine it can be executed or not Execute input refresh Execute programs and tasks Check the availability of expansion units Execute communication and intemal service Execute output refresh Operation mode is changed Yes Operate with new mode 1 Processing when the operation mode changes Initialization of data area is executed when the first scan starts 1 If the PLC is in the RUN mode when applying the power 2 If the operation mode has been changed into from the STOP mode into the RUN mode the initialization is executed complying with the restart mode set cold warm hot 3 The possibility of execution of the program is decided with check on its effectiveness No 2 Operation processing contents 1 0 refreshes and program operation are executed 1 Task programs are executed with the detection of their start up conditions 2 Normal or abnormal operation and mounting conditions of the loaded module are checked 3 Communications service or other internal operations are processed 5 24 Chapter 5 CPU Module 5 5 2 STOP mode In this mode programs are not operated 1 Processing when the operation mode changes The output image area is cleared and output refresh is executed 2 Operation processing contents 1 1 0 refresh is executed 2 Normal or abnormal operation and mounti
222. the 1st Perform A T operation at the 2nd 80 of PV Fig 3 1 The ripple parameter a Error codes of auto tuning function block PID7AT The following table shows error codes and descriptions of PID7AT function block i Description Countermeasure 0 Normal operation 1 SV is out of range Change the SV within 0 4000 2 PV is out of range i Y by fault of A D module Check the A D 3 S TIME is out of range Change the 5 TIME within 0 100 32 Ripple is out of range Change the Ripple to 0 Or 1 7 35 Chapter 7 Usage of Various Functions 4 Program Example 1 System configuration G7M Base unit G7F ADHA MV DC4 20mA 1 5V GMWIN V3 3 or later RS 232C PV 4 20 Signal transforming 1 5V device Temp Sensor Electric oven 0 200 C Heater Transformer 2 Initial setting a d PID operation parameters a Auto Manual operation setting Auto b Forward Reverse operation Forward SV setting 1600 100 C d BIAS setting 0 If only P control is used input proper value other 0 EN P EN I EN D setting 1 EN 1 0 1 PID operation f REF TT 10 TT 5 1 g MV MAX MV MIN MVMAN MAX 4000 MC MIN 0 MAMAN 2000 h S TIME 5 TIME 100 sampling time 10 seconds Auto tuning parameters a PV sett
223. then adjust the maximum number with in 8 When power is applied Special Communications module initialization failure Adjust the number of high speed communications modules loaded When power is applied Data memory backup error Ifthe batter has no error When power is applied When scan completes RTC data error If the battery has no error reset the time using the SMWIN When power is applied When scan completes Lower battery voltage Replace the battery which the power is being applied 1113 When power is applied When scan completes Appendix 1 System Definitions Appendix 1 System Definitions 1 Option 1 Connect Option You should set the communication port COM 1 4 to communicate with PLC Select the Project Option Connect Option in menu Default Connection is RS 232C interface For the detail information about Connect Option refer to GMWIN Manual Option E Rem ole 7 1 1 Appendix 1 System Definitions 2 Setthe Directory of GMWIN You can set directories for the files to be created in GMWIN Standard Library Directory Libraries for GMWIN are located in this directory and User Defined Libraries also do Source File Directory In Source File Directory GMWIN saves source program files of program function function block and etc Output File Directory Object files are saved in this di
224. tion or type Input part conditions are read and stored into the input image area Input image area refresh before start the processing of a program Program is sequentially executed from the first step to the last step Program operation processing Program operation processing Program starts Program ends The contents stored in the output image area is output to output part when operation processing of a program is finished Output image area refresh Stage for return processing after the CPU part has finished 1 scan The END processing following processing is executed END Self diagnosis Change the present values of timer and counter etc Processing data communications between computer link module and communications module Checking the switch for mode setting 5 4 Chapter 5 CPU Module 2 Time driven interrupt operation method In time driven interrupt operation method operations are processed not repeatedly but at every pre set interval Interval in the GM7 series can be set to between 0 001 to 4294967 29 sec This operation is used to process operation with a constant cycle 3 Event driven interrupt operation method If a situation occurs which is requested to be urgently processed during execution of a PLC program this operation method processes immediately the operation which corresponds to interrupt program The signal which informs the CPU of those urgent con
225. tor back up the RTC module keep operating while the power is off 2 RTC data Item Data tir Upper 2 digit of year data Lower 2 digit of year data Month 1 12 Date 1 31 Hour 0 23 24 hour Minute 0 59 Second 0 59 Day 0 6 Monday 0 Sunday 6 Century Indicate upper 2 digit of year data 1 Accuracy 32 2 sec 1 day At 25 C 2 RTC data back up time 200 hours At 25 C 3 Read Write of RTC data Select the menu Online PLC Information win GNWIN software 1 The RTC module is sold with no initial RTC data setting Be sure to input the RTC data when use a RTC module first time 2 The RTC module may show abnormal operation when a improper RTC data is written Example 14 Month 32 Date 25 Hour When the super capacitor is fully discharged the RTC module may stop operation or RTC data may be broken To remove error status re write RTC data by GMWIN software The system flag RTC ERR of WAR will tum on when a RTC data error occurred This flag will turn off automatically when the error is cleared 5 44 Chapter 5 CPU Module 3 Shape of module and connection method 1 Shape of module Connector 2 Connection method Insert RTC module into the expansion connector of the base expansion module at last position When use base unit only RTC module When use base unit and expansion unit RTC module 5 45 Chapter 5 CPU Modul
226. ts the zooming level Stop R5 C31 Edit 7 52 Chapter8 Communication Function Chapter 8 Communication Function 8 1 Dedicated Protocol Communication 8 1 1 Introduction GM7 s built in Cnet communication uses only GM7 base unit for a dedicated communication That is it doesn t need a separate Cnet I F module to facilitate the user intended communication system by utilizing reading or writing of any area in CPU and monitoring function GM7 base unit serves as follows e Individual continuous reading of direct variable e Individual continuous writing of direct variable Reading CPU status Monitor variables registration e Executing monitoring e 1 1 connection link between 6 SERIES s system configuration GM7 base unit RS 232C GM7 built in communication function supports Cnet communication without any separate Cnet module It must be used under the following instructions 1 GM7 base unit supports 1 1 communication only for 1 N system having master slave Format use GM7 base unit with G7L CUEC module connected G7L CUEC module supports RS 422 485 protocol 2 RS 232C communication cable for GM7 base unit is different from RS 232C cable for GMWIN in pin arrangement and from the cable for Cnet module too The cable can t be used without any treatment For the detailed wiring method refer to 8 1 2 3 It s possible to set baud rate type and M area size in GMWIN For the detailed information refer t
227. tting has been correctly done e If tasks are invoked more frequently than necessary or several tasks are invoked simultaneously within one scan the scan time become longer and irregular If the task setting cannot be changed check the maximum scans time 2 Task priorities are properly arranged The lower priority tasks still may not be processed after its time due to delay by higher priority tasks In some cases if the prior tasks have been delayed and next task occurs task collision can occur Set the priority with due consideration of items such as urgency and execution time of a task 3 Task programs are written as shortly as possible e f execution time of a task program is long the scan time may become longer and irregular and also collision of task programs may occur Therefore write task programs as shortly as possible 4 Protection of lower priority programs against higher priority program isn t needed during execution of those programs e If the priority of a task program or a scan program has been set to lower priority and other tasks must not interrupt during its execution use the function DI and El to protect the program partly When processing global variables used commonly in other programs special modules or communications modules problems can occur 8 Example of program configuration and processing When the task and program have been registered as below Task registration T_SLOW interval T 10ms pri
228. unction 5 Double click frame list 1 to activate Frame 1 window to set as follows a ee SASH ripe CHEE s owe s Pee ipl Beeline nmm MI vow sj Setting value Header None Send receive Send Segment 1 Type CONST field QB0 1 0 select button for ASCII input Segment 2 Type ARRAY field QB0 1 0 size 1 bytes Tail None 8 78 Chapter 8 Communication Function 6 Setup a program like the following figure and download to the slave station GM7 For the detailed program setting and downloading refer to GMWIN manual GM WIN for Windows cAtgmwinttsourcetuser_define_mas pri Project Program Toolbox Compile Online Debug Window Help lols welel LI aele ci gmwintsource tuser define ma RCV 0 ADD Rw1 EN END Row 2 ADD INI OUT ADD Row 3 ACTUATOR RCV O SRDMSG Row4 I REQ Row 5 MEO 1 ERR 30B0 0 0 Off line Creates a new project R5 C2 Edit When the frame 0 is received it outputs the value to 0 0 0 0 of the slave station Refer to the Frame 0 setting When Frame 0 is received it operates ADD function to increase the value of the symbolic variable ADD 1 by 1 and because the symbolic variable ADD has been assigned a memory at the direct variable 0 0 1 0
229. unding A Independent grounding Best B J oint grounding Good C J oint grounding Not allowed 4 0 2 14AWG or thicker grounding wire Grounding point should be as near as possible to the PLC to minimize the distance of grounding cable Chapter 9 Installation and Wiring 9 2 4 Cable Specifications for wiring The specifications for wiring is as follows Kinds of external connection Lal Minimum Maximum Digital Input 0 18 AWG24 1 5 AWG16 Digital Output 0 18 AWG24 2 0 AWG14 Analog Input Output 0 18 AWG24 1 5 AWG16 Communication 0 18 AWG24 1 5 AWG16 Main power 1 5 AWG16 2 5 AWG12 Grounding 1 5 AWG16 2 5 AWG12 Be sure to use solidness terminal for power supply and 1 0 wirings sure to use type as terminal screw e Make sure that terminal screw is connected 9 torque sure to use fork shaped terminal screw as shown below cable solidness terminal fork shaped 6 2mm less Chapter 10 Maintenance Chapter 10 Maintenance Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions 10 1 Maintenance and Inspection The 1 0 module mainly consist of semiconductor devices and its service life is semi permanent However periodic inspection is requested for ambient environment may cause damage to the devices When inspecting one or two times per six months
230. upply part e Wsv Isv x 5 W 3 Average DC24V power consumption with points simultaneously switched ON The tatal power consumption of all modules is the average power of the DC24V output circuit of the power Supply part e Waav lz4v 24 W 4 Average power consumption by voltage drop of output part with points simultaneously switched ON e Wout lout X X output points the rate of points switched on simultaneously W lout current actual operating current Varop voltage dropped across each output load V 9 2 Chapter 9 Installation and Wiring 5 Average power consumption of input circuits if input part with points simultaneously ON e Win lin XE x input points x the rate of points switched on simultaneously W lin ingut current effective value for AC A E input voltage actual operating voltage V 6 Power consumption of the special module Ws 15 X 5 loav X 24 W The sum of the above values is the power consumption of the entire PLC system e W Wew Wov Weav Wout Win Ws W Check the temperature rise within the control panel with calculation of that total power consumption W The temperature rise in the control panel is expressed as T W UA C W Power comsumption of the entire PLC system obtained as shown above A panel inside surface area m U if thecontrol panel temperature is controlled by a fan etc 6 if control panel air is not cir
231. us 1 0 1 1 1 0 1 0 1 1 0 0 Hex B A Inputcoil 10219 10220 are redundancy Data is sent starting from the low bit by byte unit If the deficient bit of a byte is filled with 0 An example of sending the above data is as follows Ex1 AC DB 35 REQ Enter the input condition to operate SLV ADDR 16 11 or 17 The slave station number FUNC 16 02 or 2 Enter 2 as the Input Status is being read ADDRH 16 00 or 0 High byte of the starting addresses to be read from the slave station ADDRL 16 4 or 196 High byte of the starting addresses to be read from the slave station Read the no 196 to read starting from the input coil 10197 in accordance with the previous no 8 Modbus addressing rules And the highest data of the data address doesnt need to be input Because it s automatically processed by the input value of the input FUNC ofthe function block NUMH 16300 or 0 High byte of which total data size to be read is expressed in hex NUML 16386 or 22 Low byte of which total data size to be read is expressed in hex Example is to read 10197 10218 of which the total data size 5 22 22 are H0016 in hex So 00 is input for NUHH and H16 for NUHL Chapter 8 Communication Function Results RD_DB1 0 0 RD DB1 6 0 RD_DB1 12 1 RD_DB1 18 1 RD_DB1 1 0 RD_DB1 7 1 RD_DB1 13 0 RD_DB1 19 0 RD_DB1 2 1 RD_DB1 8 1 RD_DB1 14 1 RD_DB1 20
232. used to hold I O statuses Watch Dog Timer Supervisors the pre set execution times of programs and warns if a program is not completed within the pre set time Function Operation Unit which outputs immediately its operation result of an input while four arithmetic operations comparison operation store their results in the inside of instructions Function Block Operation Units which store operation result in the inside of instruction such as timer and counter and use the operation results which have been stored through many scans Variables used after the user s definition of their names and types Symbolic Declarations as INPUT 0 IX0 0 2 RESULT MD1234 makes Variable INPUT 0 and RESULT be able to used instead of 1 0 0 2 and 0123 in programming GMWIN A peripheral device for the GM series It executes program creation edit compile and debugging FAM Abbreviation of the word Factory Automation Monitoring S W It is used to call S W packages for process supervision It means startup conditions for a program There are three types of periodic Task task internal contact task and external contact task which starts by the input signals of external input modules 1 4 Chapter 1 General Definition Remarks Current flows from the switch to the PLC input terminal if a input signal turns on Sink Input Source Input Switch Sink Output contact A p
233. ut error send frame 1 out of frame list from function block Frame 1 is the frame that sends 4 bytes data saved in MB10 If Frame 0 isn t received this program doesn t work To open communication set through communication enable setting For communication enable setting method refer to 3 Communication enable setting of 8 1 7 1 1 dedicated protocol communication 8 67 Chapter 8 Communication Function 2 The programming and setting communication parameter of the master station 1 Workatthe master station no 1 2 Opena new projectfile and set up a new program for the master station GMWIN for Windows cottgmwinttsourceWuser_define_mas prj Project Program Edit Toolbox Compile Online Debug Window Help Ege es 4 Oo m e m Fell c gmwin tsource fuser define mas src Row 0 Row 1 Row 2 Row 3 Row 4 Row 5 4 ci gmwinttsourcesuser define mas prj P gt PROJECT PLC Type CONFIGURATIONCPLC gt Configuration Name UNNAMED ACCESS VARIABLES variables declared RESOURGE CPU Name RES RESOURCE GLOBALS gt variables declared TASK DEFINITIONS gt 1 tasks defined LD 1 PROGRAM USER_DEFINE_MAS c Ugmvuinlisourcelluser def ii COMMENTS for DIRECT VARIABLES variables declared PARAMETERS E BASIC PARAMETERS E COMMUNICATION PARAMETER INCLUDED LIBRARIES
234. uted atthe rising edge and on state of internal contact in the program The detection of the start up condition will be executed after the scan program has been processed e Interrupt external task program The program is executed according to the external signal a input to the interrupt module High speed counter task program The program is executed according to speed level 1 Referto section 5 3 3 Task for details of task program 2 GM7 series uses separate input program to manage sign of interrupt Refer to section 5 3 3 Task for details of task program 5 14 Chapter 5 CPU Module 5 4 3 Task The followings explain the program structure and tasks of the GMWIN that is the IMO GM programming S W in order to give an understanding of the task function Refer to GIMWIN section for details of GMWIN program Program Program 1 Function block Program 1 Function Function block Task 2 Program 3 Function Block Program block Task 3 Program 7 REMARK 1 A task executes the same function as the control panel executing programs Each task consists of more than one program blocks out of Program block the 3 types of programs Those programs are called task program A program to which a task has not been specified as marked with 1 will be automatically specified to scan program 5 15 Chapter 5 CPU Module 1 Task types and functions The following table
235. utput modules off and the error state will be same as the PLC self diagnosis 2 The user can know the cause of error by use of the GMWIN and also by direct monitoring of the flag ANC ERR n 3 As the flag ANC ERR n has sixteen elements n 0 to 15 the user can classify error states largely User defined error No can be written to the elements A number of 1 to 65535 is usable Example Error detected 10 0 5 32 Chapter 5 CPU Module 3 External device Ordinary fault Warning Processing 1 If a warning of external device is detected and the corresponding flag of the system flag ANC WB n is set to on the flag will checked from ANC WB O0 at the time that scan program finishes its execution If an error is indicated on the flag it will be also indicated on ANNUN WR ofthe representative system warning flag_CNF_WAR External device waning numbers will be written to from ANC WAR 0 to ANC WAR 7 according to occurrence sequence 2 The user can know the cause of error by use of the GMWIN and also by direct monitoring of the flags WAR n and ANC WB n 3 If an external device waning is removed that is the elements of ANC WAR n are released from warning the corresponding ANC WAR n will be automatically cleared If all element flags are cleared the flag ANNUN WR of the system flag WAR will be reset 5 33 Chapter 5 CPU Module m Example _ANC_WB 10
236. ve Connection state between CPU module and GMWIN connection state keyword Local GMWIN ju Bit 0 connection Local GMWIN connection state Np Bit1 x Remote MWIN connection state connection Remote Bit2 communications Remote communications connection state connection App2 5 5 System Operation status Information Flag List continued Appendix 2 Flag List Keyword Type Bata seltng Name Description range Representa tive 1 mode Restart type of program which is being executed in present History keyword information PE Byte Cold restart Bit1 Warm restart See the Section 4 5 1 Bit 2 Hot restart During e LPS fi T RUN Bool initialization An initialization program written by the user is being executed y SCAN Unit time ms Maximum scan time is written during operation SCAN MIN Unit Scan Minimum scan time is written during operation time ms _SCAN_CUR Unit m scan Present scan time is continuously updated during operation BCD data of present time of RTC Example 96 01 12 00 00 00 XX _RTC_TIME _ TIME 0 year RTC TIME 1 month RTC TIME 2 day nr BCD N Oto7 Presenttime RTC TIME 3 hour TIME 4 minute RTC TIME 5 second _TIME 6 day of the week RTC _TIME 7 unused Day of the week 0 Mon 1 Tue 2 Wed 3 Thur 4 Fri 5 Sat
237. wint tsourcestmodbus slave src MOVE Bl ail MWO INI QUT __ s0W0 0 0 ac tgmwintsourcetmodbud_slave prj CONFIGURATION lt PLC gt Configuration Name UNNAMED E ACCESS VARIABLES variables declared RESOURCECCPU gt Name RES RESOURCE GLOBALS variables declared TASK DEFINITIONS 1 tasks defined LD 1 PROGRAM MDOBUS_SLAVE crt gmwinttsourcettmodbus_s lave src COMMENTS for DIRECT VARIABLES variables declared PARAMETERS BASIC PARAMETERS COMMUNICATION PARAMETER INCLUDED LIBRARIES 4 Edit Creates a new project Off line program of the slave is to outputthe data at M area to the output contact coil 8 110 Chapter 8 Communication Function 2 Setting and the program of the master station 1 Make a new projectfile and a new program for the master station GMWIN for Windows c gmwintsourceW modbus_master pri Project Program Edit Toolbox Compile Online Debug Window Help ol m s w Eiti lt 812 iow 0 tow 1 Jow 2 joy 3 Jow 4 iow 5 iow GM gt PLC Type CONFIGURATIONCPLC gt Configuration Name UNNAMED E ACCESS VARIABLES variables declared RESOURCECCPU gt gt Name RESB RESOURCE GLOBALS variables declared TASK DEFINITIONS 1 tasks defined LD 1 PROGRAM MODBUS_MASTER ct gmwinttsourcetmodbus
238. xternal preset input the current value of HSC is changed as the assigned preset value with the rising edge of external preset input At this time the REQ input of is ignored The CY output is set off while the CHSC_PRE F B is executing The F B is disabled while the CT E input of CHSC_WR F B is 0 Counter disabled 4 Setting up comparison value Assign a setting value to be compared with the current of HSC FUNGTION BLOCK CHSC SET Input REQ Request signal for F B execution SET Set a setting value 0 16 777 215 REQ DONE SET STAT Output DONE Turns on after the F B is executed with no error STAT Indicates the operation status of F B T 5 Chapter 7 Usage of Various Functions Run a task program when the current value of HSC reaches to the setting value To run a task program define a high speed counter task program as following figure and write a task program Define Task 5 Error code of F B The following table shows error codes appear at the STAT output Error code Description 00 No error 01 02 Input data error at MULT input of CHSC_WR When the number is not one of 1 2 4 on the 2 Phase Mode 03 PSET CHSC_PRE or SET CHSC_SET is out of specified range 0 16 777 215 04 Execute Preset command while the HSC is disabled status 7 6 Chapter 7 Usage of Various Functions 8 Example of the program This is an

Download Pdf Manuals

image

Related Search

Related Contents

Proyector S1213Hne White  Balanced Headphone Amplifier  capitolato norme tecniche - Friuli Venezia Giulia Strade SpA  User Manual - Connect Tech Inc.  Anleitung  EMC DS-16B2 User's Manual  epMotion® 96  

Copyright © All rights reserved.
Failed to retrieve file