Home

User's Manual of ISaGRAF Embedded Controllers

image

Contents

1. User s Manual 1 7188 7188 2002 V1 0 133 2 SCREW M3 side View Back View Unit mm Top View 10 50 From View User s Manual 7188 I 7188EG 2002 V1 0 134
2. 92 APPENDIX 1 STANDARD ISAGRAF FUNCTION BLOCKS 02 APPENDIX A 2 ADDING NEW FUNCTION BLOCKS TO ISAGRAF 03 APPENDIX A 3 7 SEGMENT LED REFERENCE TABLE cccccececcececececcececscececcccscecceecececs 05 APPENDIX 4 FUNCTION BLOCKS FOR THE L 7188 amp XG 7188EG 06 AAA ah MM D C UE E LUUD MEI RT E 96 ARRATE W 97 P VIO 97 CY HAMM uuu Nc ae SM 9S 98 COM HUI IU uu unu 99 OA PU SE C n 99 COM CLEAR uuu nal ak cee as 99 OM TEOSE uuu pede bh cscs 99 COMOFF numus mite c DL MINE PL I UD MM IE 100 otc up 101 CONTRE By u 101 GO RU d u E 102 RTT 102 SO uuu unpu an EAE 103 L PR sua aan aa 104 WY LEGAM CHUTE
3. 31 LD E 33 T TO NETTES 45 2 The Example LL Projet s uu s 49 Smulan T RELDTTO e AE 50 2 1 5 Downloading amp Debugging The Example LD ProJect 53 2 2 SIMPLE FUNCTION BLOCK DIAGRAM PROGRAM 59 2 9 A SIMPLE STRUCTURED TEXT S T PROGRAM u i a 59 2 4 A SIMPLE INSTRUCTION LIST IL 0 02 0 0 6 16 59 2 5 A SIMPLE SEQUENTIAL FUNCTION CHART SFC PROGRAM 59 CHAPTER 3 ESTABLISHING CONNECTION S 60 3 1 LINKING I O BOARDS TO ISAGRAF PROJECT 60 DUERME EI eS 81010 IS ne A 61 3 1 2 Linking Input amp Output Board Variables 62 3 2 LINKING ANALOG TYPE 64 CHAPTER 4 LINKING TO AN HMI PROGRANMN 65 4 1 DECLARING VARIABLE ADDRESSES FOR NETWORK ACCESS 65 4 2 READ WRITE WORD LONG WORD amp FLOAT THROUGH MODpBUS 70 User s Manual 1 7188XG 7188 2002 V1 0 2
4. AI 0 charan Emergency Sop When you click on the OK button all three outputs will be immediately added to the Global Boolean window User s Manual 7188 I 7188EG 2002 V1 0 38 y ISaGRAF SIMPLELD Global booleans Edt Options Help La ore Booleans lt q k Message z LFB retances Defined words Hane Hm F BOTH in 1 Pa 2 SHUT Emergency Stop Type Swich To declare the timer TMR1 variable used in this example program click on the Timers tab in the Global project setup screen Double click on the colored area and enter the Name as TMR1 set the Attributes to Internal the Initial Value to T 1s then click on the Store button k 19 IMAL ELD tren Fis Took Options A Status Information For The Z Tomer At Project Startup User s Manual 7188 7188 2002 V1 0 39 Once all of the timer variable characteristics been properly setup click x at the top right of the Global timers window to close the variable dictionary for this example project 2 1 1 4 Creating The Example LD Program Once all of the variables have been properly declared you are now r
5. sk alus aan llasa 104 I Pu C M Sau kas 105 EET Dy M Vn cem MEE CR MEE RI MEUM EI 105 User s Manual 1 7188XG 7188 2002 V1 0 3 158 106 ETT 107 7 EE 107 um 108 Ro SEMEL 108 109 17217 a A M 110 7 m 111 M 111 m AE 112 SEN E 112 VIO 113 t A eee 113 EE 114 A E 115 116 TET 117 d 117 MMC 118 TE 275 EET 118 T 119 119 172 n AE E u 120 120 APPENDIX SETTING THE MASK amp GATEWAY ADDRESS OF THE 1 7188 me errant E 121 APPENDIX UPDATE TO NEW HARDWARE DRIVER 123 APPENDIX D TABLE OF THE ANALOG IO VALUE 126 F
6. i ii ik LI ir ik LI ir ik i KE ed rp E H When you click on Libraries the ISaGRAF Libraries window will open add a new function block or function select Tools from the menu bar and then click on Archive User s Manual C function block zh I 1 Configurations 1 7188XG 1 7188EG 2002 V1 0 remate WO modules i 033 with COM 3 F4 of hix controller Channels 3 SET 7033 to Ps Complement by utility q oe WO modules i 7033 ar i 70334 with al I Hxx7 controller 93 Click on the file name you want to Archive and then click Browse button to select the sub directory to where CD_ROM Napdos ISaGRAF ARK you want to archive the function block library to ber htm el cu Archive lbuc b e aj p bus n i 7018 ji Zur JU MMe i 24 1024 i i 4 iid POG 7042d i 7017 1 70434 i rota 7021 7022 T 52d T 53d j i Compress c C XDOCHME TSEDTTXDESKTUOPAICPDAS Cem c gt DOCUME 7 SCOTT c DESKTOP f ICPD amp 571 oelect the new function block in the Archive window that you want to add and then click on the Restore button When you click on
7. stem date amp tine SYSDAT_R SYSDAT W SYSTIM SYSTIM Move dawn in list Ka m in ni m z Seb F7 Eg demo 05 Bl demo 06 EE Mowe up in list E Project comment text Project simpleld Heference sim Author Comment A Simple LD Program Date of creation 12 Version number 1 K Description s You will now see the name of the new project in the Project Management window Double click on the name of the new project to open the new project User s Manual 7188 I 7188EG 2002 V1 0 35 3 1 Project Management Fi Edt Took D amp demon gn 01 Tener conira TOF Gu m Simple LD Program ec ED deme simt stop TSTART TSTOP ST OLO gn 03 system dete 8 ne W SYSTIM SYSTIM ED 04 Calculate amply cycle time TP 1 OLD 05 Birding outpur LD 06 Change mupul made 1 EFC Reference Author Date af creation 1271572001 Verzion number 1 ISat3HAF 3 41 Description 2 1 1 3 Declaring The ISaGRAF Project Variables Before you can start creating an ISaGRAF program you must first declare the variables that will be used in the ISaGRAF program To begin this process first click
8. I 7188EG 2002 V1 0 20 1 4 Linking I 7000 and I 87K Modules For Remote The l 7188XG and 1 7188 controller system can use its COM2 RS485 port to link to ICP DAS s 7000 and I 87K series of remote I O modules This configuration can be very useful in applications that require distributed remote I O throughout the system D2 DATA DATA RS485 D2 DATA DATA DATA 87 modules Addr No 7188XG 7188EG Addr 2 Addr 3 4 5 6 You can link to 64 l 7000 or 87 series remote modules to one l 188XG Il 188EG controller You must remember to set each l 7000 and 87 remote module must have a unique address and be set to the same baud rate as the Il 188XG 1 7188 controller system For more information regarding setting up and programming an l 7000 I 87K remote module please refer to Chapter 6 Linking To l 7000 and 87 Modules User s Manual 1 7188XG 1 7188 2002 V1 0 21 1 5 Creating Modbus Master Link I 7188XG and 7188 controller system can be a Modbus Slave and or Modbus Master controller depending on the application Through this method you can use the COM1 port of the I 7188XG I 188EG controller system to link to a PC or other HMI products In this type of configuration the 7188 I 188EG controller becomes a Modbus slave controller For more information about setting up and progr
9. If you need assistance on changing the baud rate or checksum of l 7000 87 modules please refer to the Change Baud Rate amp Checksum section in the Getting Started With 7000 Series Modules You can find all of the documentation on the CD provided with your l 7000 series module from ICP DAS in a file titled getstart pdf The l 7000 and 1 87 Analog Input type modules MUST have their data format set to 275 Complement This includes the l 7013 7017 7018 l 7033 87017 and 87018 analog input modules The l 7000 and 1 87xx Analog Output type modules MUST have their data format set to Engineer Unit This includes the 7021 7022 7024 and 87024 analog output modules User s Manual 1 7188XG 1 7188 2002 V1 0 74 6 2 Opening Bus7000 Function To create a link between the 7188 1 7188 controller system and an l 7000 and 87 module you need to connect the 7000 function through the ISaGRAF I O Connection window The Bus 000 function is considered virtual board and must be selected from the Equipments section of the select Board Equipment window The 7000 MUST be connected to slot number 1 or higher on the ISaGRAF I O Connection window since slot 0 is used to connect to I O expansion boards Only one Bus7000 can be linked to one I 7188XG I 7188EG controller system f you attempt to connect more than one 7000 to an I 7
10. When you click on Modbus SCADA Addressing SCADA is an industrial process control that stands for Supervisory Control And Data Acquisition the Modbus SCADA Addressing Map window will open Note that one of the variables D1 is already assigned from our previous network addressing example You will note that the other variables that are not yet mapped are displayed in the lower portion under the Variables Not portion of the Modbus SCADA Addressing Map window Modbus SCADA addressing E xl Lc I apa 3 ud pod Fi OLIT2 Culpur z QUT3 Remi 3 User s Manual 7188 7188EG 2002 V1 0 67 To assign the other variable address click on an unassigned Segment number and then double click on the variable you want to assign to the address and the variable will automatically assign itself to the Map Segment Modbus SCADA addressing map ig E File Edt Options Help DA Real Inout 31 02 Real Input 2 Variables not mapped Booleans IntegersiReals Timers Messages DS Real Input 3 OUTI Real 1 OUT Real Output 2 OUTS Real Output 3 5 For human s thinking method network address represented in hexadecimal format is inconvenient and it increases the chance to make mistake Therefore its better to c
11. Engineer 32767 6805 25 Complement HEX 7FFF E56B Engineer Unit 32767 ho 1 25 Complement HEX 7FFF 0000 Engineer 32767 8192 25 Complement HEX 7 000 Engineer 16384 32768 25 Complement HEX 4000 8000 rp put Range Celsius 9000 2000 ES 32767 7281 25 Complement HEX FFF User s Manual 7188 7188 2002 V1 0 130 l 7021 Range __ 30 32767 0 25 complement HEX 31 32767 2 s complement HEX FFF 0000 QutputRange Default Engineer Unit 32767 0 EngineerUnit 32767 0 O S s complement HEX 0000 EngineerUnit 32767 ZscomplementHEX 1 s complement HEX TFFF 0000 2 2 Output Range hoov 900 Default Engineer Unit 32767 2 s complement HEX TFFF 0000 User s Manual 7188 7188EG 2002 V1 0 131 8024 Each channel configured to different range Unit 32767 poomi poomi Bc Output Range OV HOOV Engineer Unit 32767 32768 87024 l 7024 i A Unit s 31 Output 7 0014 404 Engineer Unit 32767 32 00 toov EN Unit 32767 s s Ka Unit oy Engineer Unit 32768 0 User s Manual 7188 7188 2002 V1 0 132 Appendix E Dimension and Mountin O
12. CHAPTER 5 MODBUS PROTOCOL 542055 72 CHAPTER 6 LINKING 1 7000 amp 1 87 MODULES 73 6 1 CONFIGURING THE 7000 amp I 87XX MOoODpDULES 73 6 2 OPENING THE BUS7000 2 00000000000000 0 75 6 3 PROGRAMMING AN I 7000 MODUIE 77 CHAPTER 7 CONTROLLER CONTROLLER DATA EXCHANGE 79 CHAPTER 8 LINKING MODBUS RTU amp OTHER DEVICES 80 8 1 CONFIGURING AS MODBUS 00000000000000000 40 8 2 PROGRAMMING MODBUS DEVICE cccececcececcececcscececcecescsceseececescscsescesesceceseeceses 82 CHAPTER 9 COMMONLY USED ISAGRAF UTILITIES 6 CHAPTER 10 THE RETAINED VARIABLE AND DATA BACKUDP 7 10 1 THE REPAINED VARIABEE IMP IMS 47 10 2 DATA 48 CHAPTER 11 ISAGRAF PROGRAMMING EXAMPLES 9 APPENDIX A FUNCTION amp FUNCTION BLOCKS FOR THE I 7188XG I 7188EG T Sm
13. TMF 1 l variable 1 Enter new value D Start Stop When ISaGRAF Global Variables window opens click on the Timers tab and then double click on the TMR1 name this will open the Write Timer Variable window Change the Enter New Value from t 1s to t 500ms and click on the Write button Now when you click on either SW1 or SW2 button in the I O simulator the outputs will be turned on and off every 500 milliseconds 1 2 second versus the previous setting of every 1 second 2 1 5 Downloading amp Debugging The Example LD Project The last step required to running the example LD program on the I 7188XG amp I 188EG controller systems is to download the project to the controller frequently referred to as the Target platform Before this download can be accomplished you must first establish communications between your development PC and the I 7188XG I 7188EG controller User s Manual 7188 I 7188EG 2002 V1 0 53 ISaGRAF SIMPLELD Programs EN nj xj Make Project Tools Debug Options Help Oem 2 viel ms Begin mA AE Example LD Program Link Setup Begin LO1 Ladder Diagram begin this process click on the Link Setup icon in the ISaGRAF Programs window When you click on the Link Setup icon the following window will appear PC PLE link p parameters The Target Slave Number is the Node ID
14. always returns TRUE val 1 display hexadecimal integer 5 If TRUE display it if TRUE flash it the flashing period the value to be displayed Valid range from 1620 to 16 FFFFF Boolean always return TRUE Example val16led User s Manual 1 7188 7188 2002 V1 0 119 WD BIT Description Function block Convert a word value to 16 boolean values Arguments VAL _ integer the word to be converted ENO boolean no usage dont care about it B1 16 boolean the 16 boolean values after converted For ex If VAL is 4 will be TRUE and others will be FALSE If VAL is 3 B1 and B2 will be TRUE and others will be FALSE WD LONG Description wd long Function Convert two words to one long integer Lo Arguments Hi Le Lo integer Low word only the lowest 16 bit is used Hi integer High word only the lowest 16 bit is used Long integer the 32 bit integer composed by Lo and Hi word Example Lo Hi gt Long 32 68 8000 1 FFFF gt 32768 FFFF 8000 1 FFFF 1 FFFF gt 1 FFFFFFFF 32768 8000 0 0000 gt 32768 0000 8000 100 0064 4103 1007 gt 268 894 308 1007 0064 User s Manual 1 7188 7188 2002 V1 0 120 Appendix Setting Mask amp Gateway Address of The 7188 Controller This document describe the proper way to set the IP address address mask and gateway address of the I 7188EG controller
15. 16 bit integer value from the EEPROM ADR Argument integer address in the EEPROM where the word value is stored valid range value from 1 to 56 Q_ integer the word value returned 32768 32767 If you are using this function with the N N W BY W functions simultaneously you must be careful to arrange the ADR because they all occupy the same memory area For example ADR 2 of EEP N R occupies 4 bytes and it uses the same memory area as ADR 3 and ADR 4 of EEP WD R and the same address of ADR 5 6 7 and 8 of EEP BY R Read operation of the EEPROM will work without removing the EEPROM protection EEP WD W eep wd w ADR Description Function write a word 16 bit integer value to the EEPROM Arguments ADH integer address in the EEPROM where the word value is to be written to valid range values from 1 to 756 DATA integer the word value to be written to range from 32768 to 32767 Boolean Ok return TRUE If you are using this function with the N EEP N W and BY W functions simultaneously you must be careful to arrange the ADR because they all occupy the same memory area For example ADR 2 of EEP N R occupies 4 bytes and it uses the same memory area as ADR 3 and ADR 4 of EEP WD R and the same address of ADR 5 6 7 and 8 of EEP BY R Read operation of the EEPROM will work without removing the EEPROM protec
16. 49 InstallShield for Microsoft Visual C 6 S MetZero Internet internet Explorer New Visio Drawing k T Kel uvisionz 153 Norton Antivirus Corporate Edition BE Matrikon OPC Explorer NT Service Toole LF microsoft access 22 ActiveSync gt x fj PEWIN32PRO Microsoft Excel J Gy g i Placeware Snapshot Plug In KS Microsoft Outlook Once you have selected the 7000 Utility program the 7000 Utility window will open User s Manual 1 7188 1 7188 2002 V1 0 73 Search Run Terminal Help Searching for I 7000 8000 Modules ccc Checksum Description 4 Searching Status COM Part 2 Address Baud Rate ag ng The 7000 Utility will attempt to link to any l 7000 and 1 87 modules IMPORTANT NOTES Regarding 1 7000 amp 87 Modules One 1 7188 188EG controller can link up to a maximum of 64 7000 and modules It is recommended though that you do not link more than 24 modules to a single 1 7188 1 7188 controller system Each l 7000 and 87 module MUST have it s own unique address to properly link to an I 7188XG 7188 controller system Make sure to set the Checksum to disabled and make sure that all of the 7000 and 87 modules are set to the same baud rate as 7188 I 7188EG controller system
17. 7 isa7188 d to delete ISaGRAF project for 1 7188 0 8000 isa7188 isa7188e d to delete ISaGRAF project for 7188 8000 isa 188e 8 Remove the connection between INIT and GND User s Manual 1 7188XG 7188 2002 V1 0 16 1 3 3 Connecting Your The I 7188XG I 7188EG COM1 Port The 1 port of the 7188 amp I 7188EG is Modbus slave port which talk with HMI softwares or for the ISaGRAF workbench to download the ISaGRAF project COM of the I 7188EG is a pure RS232 port while COM 1 of the I 7188XG can be used as either a RS232 or a RS485 port One PC HMI only link to 1 5232 port of one l 188XG amp 7188 1 5232 Hmi 19200 8 1 I 7188XG 7188EG COM1 RS 232 Pin Wiring Assignments PL 7188 XB EX ISaGRAF 9 Pin D Sub LIT I F XD 2 rw TXO 3 rnn n z i For the ISaGRAF Workbench RS 232 communication to operate properly only the RXD TXD and the GND signals used If your is running a hardware device or software program that uses the CTS and DSR signals you will need to wire the RTS CTS and DTR DSR signals together as shown below PC 3 Pin D Sub RED 2 TAD 3 GND 5 DTE 4 DSE 6 EIS Ue User s Manual 7188 I 7188EG 2002 V1 0 17 One or can link to COM1 RS485 port of many 1 7188 if each of them on the same RS485 netwo
18. I 7188XG I 7188EG 2002 V1 0 78 Chapter 7 Controller Controller Data Exchange 7188 l 8437 amp l 8837 controller support Ebus Ebus is a software mechanism which allows controllers to access data to each other through the ethernet port This section wil be available the future The file name wil be Ebus 8xx7 pdf and will be found ftp icodas com pub cd 8000cd napdos isagrat 8000 english_manu User s Manual I 7188XG I 7188EG 2002 V1 0 79 Chapter 8 Linking Modbus RTU amp Other Devices The 7188 7188 can interface with the Modbus RTU Serial or other Modbus devices You must first make sure that the I 7188XG I 7188EG I O Libraries have been installed Please refer to Section 1 2 for the library file installation instructions and Section 1 5 for the connection interface between the 188 7188EG controller system to Modbus RTU and other Modbus devices 8 1 Configuring As A Modbus Device To begin configuring an 7188 7188 controller system to interface with a Modbus device you must first configure the ISaGRAF program by linking the Mbus function to the ISaGRAF project Open the ISaGRAF I O Connections window and double click on a slot number higher than 0 and the Select Board Equipments window will open From the Library click on the Equipments choice and then click on the Mbus Modbus Master On COM2 COM selection and then click on th
19. The value of Stat1 is connected to the output coil and if the operation is successful Stat1 will be true otherwise the value of Stat1 will be false User s Manual 7188 I 7188EG 2002 V1 0 84 stat If the ACTION input keeps at the status of TRUE it will continue to write these A1 through A3 many times to that Modbus device until it is reset to FALSE If you just want to write one time you can write a LD program similar as the following The MO is declared as an internal Boolean variable MBUS N W statl Q User s Manual 7188 I 7188EG 2002 V1 0 85 Chapter 9 Commonly Used ISaGRAF Utilities This section details some useful ISaGRAF utilities Please refer to Chapter 9 of Uses Manual Of 1 8417 8817 8437 8837 ISaGRAF Embedded Controllers User s Manual 1 7188XG 7188 2002 V1 0 86 Chapter 10 Retained Variable And Data Backup 10 1 The Retained Variable For some real applications data has to be retained when the power is dead and these data should be restored to its last value when the power is coming up again 188 1 7188 controllers provide battery backup memories to fit such kind of applications The battery used can provide the energy to keep the retained variables alive last for some years It also can provide the energy for the Real Time Clock maxinum of six integers signed 32 bit and sixteen Booleans can be retained To enable the retained
20. 1 200 188ex gt 9 Type mask to see the current address mask of the I 7188EG 7188ex gt mask MASK 255 255 0 0 7188 gt 10 setmask to set to new address mask 7188 gt setmask 255 255 255 0 Set MASK 255 255 255 0 ReadBack MASK 255 255 255 0 188ex gt 11 Type gateway to see the current gateway address 7188 gt gateway Gateway 192 168 0 1 188ex gt 12 Type setgateway to set to new gateway address 7188 gt setgateway 192 168 1 1 oet GATEWAY 192 168 1 1 ReadBack Gateway 7 192 168 1 1 7188 gt 13 Press ALT X to exit 7188x close the DOS SHELL COM1 COM2 of the PC will be occupied 14 Remove the connection between INIT reset the 7188 controller User s Manual 1 7188XG 7188 2002 V1 0 122 Appendix Update to New Hardware Driver The ISaGRAF embedded driver is firmware burned into the flash memory of the 7188 I 7188EG It can be easily upgraded by the user Our newly released driver can also be obtained from the following website ftp icpdas com pub cd 8a000cd napdos isagraf 7 1 88 ftp icpdas com pub cd 8a000cd napdos isagraf 7 188eg driver Warning The copyright of the firmware and ISaGRAF embedded driver belongs to ICP DAS CO LTD Only the I 7188XG 1 7188 l 8417 8817 8437 and 8837 have registered a legal ISaGRAF Target license To burn
21. 2 2 3 COM3 8 COM8 ARY NO integer gt Byte array ID 1 24 which is to write NUM _ integer the number of bytes starting from the first address in the byte array to write boolean return TRUE COMCLEAR comclear Description Function Clear receiving buffer of a COM PORT Argument PORT _ integer port ID 2 2 3 COM3 8 COM8 amp Q boolean OK return TRUE COMCLOSE Description Function Close COM PORT PORI PORT integer port ID 2 COM2 8 boolean OK return TRUE User s Manual 1 7188 7188 2002 V1 0 99 Description Function Open COM port Argument PORT integer port ID 2 COM2 3 COM3 8 COM8 BAUD_ integer baud rate can be 2400 4800 9600 19200 38400 57600 115200 CHAR_ integer character size can 7 or 8 PARI integer parity can be 0 none 1 even 2 odd STOP_ integer stop bit can be 1 or 2 Q _ boolean OK return TRUE Note After COM port is opeded function COMWRITE COMSTR COMCLEAR can be called to read write and test data values Recommended for use in SFC program Example Please refer to Chapter11 Demo01 02 amp Demo03 1 Open baud rate is 19200 The return is TRUE if open OK Write one byte 16 35 to COM3 2 Action TMF 3 1563
22. 4 D O X510 1 RS232 RS485 COM3 5 0 1 amp 5 D O Pin assignment X107 User s Manual l 7188XG l 7188EG 2002 V1 0 25 202 203 X303 User s Manual 7188 I 7188EG 2002 V1 0 26 304 X305 X310 27 User s Manual 1 7188XG 1 7188 2002 V1 0 X503 28 User s Manual 1 7188XG 1 7188 2002 V1 0 X506 X507 X508 User s Manual l 7188XG l 7188EG 2002 V1 0 29 X509 X510 X510 User s Manual 7188 I 7188EG 2002 V1 0 30 Chapter 2 ISaGRAF Programming Basics 2 1 A Simple Ladder Logic LD Program This chapter provides simple yet effective program examples of how you can use the different ISaGRAF programming languages Note Please refer to Users Manual Of l 8417 8817 8437 8837 ISaGRAF Embedded Controllers for simple programs of FDB ST IL amp SFC language or refer to Napdos ISaGRAF 8000 English_Manu user_manu_ For more extensive information regarding all of the capabilities of the ISaGRAF programming system please refer to the ISaGRAF USER S GUIDE manual which can be found from the CD ROM of the ISaGRAF workbench Its file name is either ISaGRAF pdf or ISaGRAF doc Ladder Logic Basics Ladder Logic programming LD is a graphical representation of Boolean equations combining contacts input arguments and coils output results Ladder Logic most clo
23. 7018 EngineerUnit 32767 2768 EngineerUnitt 832767 s Complement HEX 32767 32768 2 sComplementHEX 7 800 EngineerUnitt 832767 2 s Complement HEX 7 800 32767 2 3 7 8 3 s Complement HEX FFF 8000 Engineer Unit 32767 32768 s Complement HEX 8000 32767 32768 5 Complement HEX 8000 Engineer Unit 32767 32768 s Complement HEX 8000 100 7 8000 3 2 sComplementHEX FFF 800 Engineer Unt 32767 32768 amp 2 s Complement HEX 7 800 Default 100 00 00 00 2 s Complement HEX 7 800 Engineer Unt 267 32768 amp Range Code Hex 2 2 01 2 02 2 03 2 04 2 05 E 2 s Complement HEX 8002 EngineerUnt 32767 2768 25 Complement HEX TFFF 8000 Range Code Thermocouple Dats Engineer Unit 904 2 Engineer Unit 32767 9054 s Complement HE DCA2 OF 6 32767 npe 32767 25 Complement HEX 7FFF 32767 E6DO 10 T Type Engineer Unit 32767 22118 25 Complement HEX 7FFF User s Manual 7188 7188EG 2002 V1 0 129 Engineer 32767 8847 25 Complement HEX 7FFF 0071 Engineer 32767 0 25 Complement HEX 7 0000 Engineer 32767 0 25 Complement HEX 7FFF 0000 Engineer 32767 0 25 Complement HEX 7FFF 0000
24. 8000 7188 5 2 Type isa7188e s to set the NET ID for I 7188EG 8000 isa 188e 5 3 8 Remove the connection between INIT and GND User s Manual 1 7188 7188 2002 V1 0 15 1 3 2 Deleting The ISaGRAF Project Inside I 7188XG I 7188EG If one ISaGRAF project has been download to the l 188XG amp 7188 controller User may download a new ISaGRAF project to replace the old one by using ISaGRAF workbench Or by some resons user may want to delete the ISaGRAF project inside the 1 7188 amp 7188 controller To do this please follows below steps 1 Create a file folder named 7188 in your hard drive For example 7188 For Dos Windows 95 amp Windows 98 Users 2 Copy NapdosMsaGRAFV 188EG Driver 188x exe 7188x ini from the CD into your 7188 folder 7188 7188x exe in your hard drive A 7188x screen will appear For Windows NT Windows 2000 amp Windows XP Users 2 NapdosVSaGRAF V 188EG Driver 7 188xw exe 7188xw ini from the CD ROM into your 7188 folder Run 7188 7188xw exe in your hard drive 7188xw screen will appear 4 Link from COM 1 of your PC to COM1 of the I 7188XG I 7188EG controller by a 5232 cable 5 Power off the 1 7188 amp 7188 controller connect INIT to GND and then power it up 6 If the connection is Ok messages will appear on the 7188x screen 1188
25. ISaGRAF project is up to 64 Example Refer to Chapter 8 User s Manual 1 7188XG 7188 2002 V1 0 112 MBUS W Description Function block write 1 to 4 words booleans to the Mdobus device Use Modbus function code 6 when NUM W 1 Use Modbus function code 16 when NUM W 2 to 4 Arguments SLAVE integer gt slave No of the Modbus device valid range from 1 to 255 ADDR __ integer the starting Modbus address to write NUM W integer the number of words to write valid range values from 1 to 4 ACTION boolean Set true to write set FALSE to do nothing N1 N4 integer words to write Q boolean return TRUE else return FALSE Note The total number of MBUS W blocks that can be used one ISaGRAF project is up to 64 Example Refer to Chapter 8 PID AL Example Please refer to Chapter 11 Demo18 amp PID AL Complex PID algorithm implementation htm at CD ROM napdos isagraf 8000 english_manu User s Manual 1 7188XG 7188 2002 V1 0 113 SET LED Description Function Displays A Message To The S MMI Arguments RUN_ Boolean oet To TRUE To Display Message FLASH Integer Set each digit To 1 To Flash each Message Example Set To 11 0000011 Means The 6 amp 7 Display Positions Will Flash Set To 100001 0100001 Means The 2 amp 7 Display Positions Will Flash CLK Timer Amount Of Time For Display To Flash LED1 Integer Value Of Position Display 1 LED2 Intege
26. Program This chapter details how to make data from the I 7188XG I 7188EG controller system available to Human Machine Interface HMI programs This is a powerful feature that allows customers to create their own custom HMI programs and link them to the I 7188XG 7188EG controller system After you realize the material described in section 4 1 Additionally there are touch screen monitors provided by ICP DAS that support the Modbus protocol and these touch screen monitors can also access data from an 7188 7188 controller system Please refer to Section 4 4 of User Manual Of The 9417 8817 8437 8837 ISaGRAF Embedded Controllers 4 1 Declaring Variable Addresses For Network Access To make data from an 7188 I 188EG controller system available to other software programs or HMI devices you must first declare the variable with a Network Address Ihe variable must be declared with a network address number that is in the Modbus format The valid network addresses for an l 7188XG 7188 controller system is from 1 to FFF in hexadecimal 1 4095 Other software programs or HMI devices will access the I 7188XG Il 188EG controller information through these network addresses There are two methods available to declare a variable for network address access he first method is described below Open an ISaGRAF Programs windows and click on the Dictionary icon then double click on the variable to ass
27. Ul L Oi T sm 126 T TH 127 128 IECIT Oh u 129 E ENE nasa n ss 131 EOD uc ee MEME 131 rl 132 132 APPENDIX E DIMENSION AND MOUNTING 133 User s Manual 1 7188XG 7188 2002 V1 0 4 Reference Guide This manual can also be found at CD NAPDOS ISaGRAF 7188EG English_Manu User_Manual_ _7188XG_EG pdf Users Manual Of The l 8417 8817 8437 8837 ISaGRAF Embedded controllers CDINNAPDOSMSaGRAF 8000 English Manu VUser Manual 8xx7 pdf ISaGRAF User s Guide For more extensive information regarding all of the capabilities of the ISaGRAF programming system please refer to the ISaGRAF USER S GUIDE manual which can be found from the CD ROM of the ISaGRAF workbench file name is either 5 or ISaGRAF doc Installing ISaGRAF IO libraries Please refer to Chapter 1 Hardware Manual I 188XG CD NAPDOS 7188X 7188xb htm I 7188EG CD NAPDOS 7188E document 188eh pdf oet IP Mask and Gateway address of l 188EG Please refer to Appendix B CD on the Internet Newly updated ISaGRAF IO libraries drivers and manuals be found ftp ftp icodas com pub cd 8000cd napdos isagraf Upgrade to New Hardware Driver You may upgrade the hardwa
28. again User s Manual 1 7188 1 7188 2002 V1 0 10 Important Notice For Window Users If your computer is using the Windows NT operating system you will need to add one line to the isa ini file the IsaGRAF Workbench EXE subdirectory If the ISaGRAF program is installed on your computer s C hard drive you will find the required file in the following path C isawin exe isa ini You can use any ASCII based text editor such as Notepad or UltraEdit32 to open isa ini file Locate the WS001 header in the isa ini initialization file it should be at the top of the file Anywhere within the WS001 header portion of the isa ini initialization file add the entry shown below within the WS001 header WS001 NT 1 lsa C ISAWIN lsaExe C ISAWIN EXE Group Samples lsaApl c isawin smp lsaTmp C ISAWIN TMP The WS001 header should now look like the above example NT 1 entry addition is absolutely required for the RS 232 communications to operate properly in the Windows NT operating environment User s Manual 1 7188 7188 2002 V1 0 11 1 2 Installing The 1 7188 amp I 7188EG I O Libraries ISaGRAF Workbench software program must be installed before attempting to install the 7188 amp I 7188EG I O libraries If you have not already installed the ISaGRAF Workbench program please refer to section 1 1 before continuing There is a CD ROM supplied with each
29. an ISaGRAF embedded driver into other controllers is absolutely illegal and may be punished by law Make sure of your current driver version before you upgrade it 1 Create a file folder named 7188 in your hard drive For example c V 188 For Dos Windows 95 amp Windows 98 Users 2 Copy Napdos ISaGRAF 7188EG Driver 7188x exe 7188x ini from the CD_ROM into your 7188 folder Run 7188 7188x exe in your hard drive A 7188x screen will appear For Windows NT Windows 2000 amp Windows XP Users 2 Copy Napdos ISaGRAF 7188EG Driver 7188xw exe 7188xw ini from the CD_ROM into your 7188 folder Run 7188 7188xw exe in your hard drive A 7188xw screen will appear 4 Link COM1 or COM2 of your PC of the I 7188XG 7188 controller through a RS232 cable 5 Power off the I 7188XG 7188EG controller connect pin INIT to GND and then power it up 6 If the connection is Ok messages will appear on the 7188x screen 7188EX gt 7 isa7188e for I 7188EG while type isa7188 for I 7188XG the version No and copyright message will be displayed User s Manual I 7188XG I 7188EG 2002 V1 0 123 7188 gt isa 188e p for 7188 7188 gt isa7188 p for 7188 i 7188XG i 7188EG Driver V1 03 Mar 01 2002 DAS CO LTD Taiwan 10 84517297 To burn an ISaGRAF embedded driver follow the following steps 8 Copy t
30. and write them to Then 16 1 to calculate the checksum starting form address 3 of No 5 array total 4 bytes been calculated Write high and low byte of this checksum to EL Goto step 2 after 1 sec to write to COM3 again User s Manual 1 7188XG 7188 2002 V1 0 103 EEP B br Description Function read a boolean value from the EEPROM ADE lt Argument Integer address in the EEPROM where the boolean value is stored valid range values from 1 to 256 boolean the boolean value returned Read operation of the EEPROM can be used freely without to remove the protection careful to use B W EEP BY W WD W and N W the EEPROM can only to be written up to 100 000 times EEP B W b w ADR Description Function write a boolean value to the EEPROM DATA Arguments ADRES integer address in the EEPROM where the boolean value is to be written to valid range values from 1 to 256 DATA Boolean the boolean value to be written to Boolean Ok return TRUE To write to the the protection must be removed in advance Be careful to use EEP B W EEP BY W EEP WD W W EEPROM can only to be written up to 100 000 times User s Manual 1 7188XG 7188 2002 V1 0 104 Description ADR n Function read a byte 8 bit integer value from the EEPRO
31. bat and isa 188e exe or isa 188 exe are well burned 7188 gt dir 14 Press ALT X to exit 7188x 15 Remove the connection between INIT GND reset the I 7188XG I 7188EG controller User s Manual 1 7188XG 7188 2002 V1 0 125 Appendix D Table of The Analog IO Value I 87013 l 7013 l 7033 eie DUE Data Format Min Value Platinum 100 put Range Celsius 100 0 Default a 0 00385 Engineer Unit 32767 32 68 2 s complement HEX FFF 8000 Input Range Celsius 41000 5 Engineer Unit 32767 0 25 complement FFF 0000 e og put Range Celsius _ 200 0 2 _ D ODORE Engineer Unit 32767 0 25 complement TFFF 0000 Platinum 100 put Range Celsius 600 0 3 a 0 00385 Engineer Unit 32767 0 25 complement TFFF 0000 og oput Range Celsius _ 100 0 4 Engineer Unit 32767 32768 2 s complement HEX FFF 8000 BIET Input Range Celsius 41000 DM Engineer Unit 32767 0 25 complement LEFF 0000 op input Range Celsius 2000 5 Engineer Unit 32767 0 25 complement TFFF 0000 statin qog Put Range Celsius 6000 7 a 0 003916 Engineer Unit 32767 0 25 complement TFFF 0000 Nickel 120 Engineer Unit 32767 262140 25 complement FFF 999A Nickel 120 Engine
32. click on the Options and Variable Names selection and the variable names you have created will now appear next to each of the l O s in the simulator window In the ISaGRAF Debug Program window double click on the LD1 where the cursor below is positioned This will open up the ISaGRAF Quick LD Program window and you can see the LD program you have created User s Manual 1 7188XG 1 7188 2002 V1 0 50 ISaGRAF SIMPLELD Debugger File Contol Toole Optons Help hold Debug programs File Project Toole Options Help D smpleld EEDd File Tools Options Help Benin v Color display LESE UNDC A AE v iab le Hexadecimal values Always on top Begin Ladder Diagram Running The Simulation Program When you double click on LD1 in the ISaGRAF Debug Programs window the follow window should appear ISaG RAF SIMPLELD LDI Quick LD Program File Edit Options Help TRE Note the colors of the I O in the following example above SW1 SW2 normally open switches that have not been energized so their color is blue but the SHUT is a normally closed switch and its color is red because it is energized by default User s Manual 7188 I 7188EG 2002 V1 0 51 To see the example LD program run in the simulat
33. equipment bus 2000 1 7000 0 on Com3 or COM4 hus m lt New gt Set as Fhus Master hus s lt New gt Set as Fbus slave 188xb 1DI amp 100 for the 7188 1 8042 Isolated 16 CH DI amp 16 CH 1 8054 Isolated 8 CH DI amp 8 CH DO i 055 8 CH DI k 8 CH BO I 8063 Isolated CH DI k 4 CH BO 87 054 Isolated 8 CH DI amp 8 CH DO 1 87055 8 CH DI amp 8 EH DU 1 87053 Isolated 4 CH DI amp CH DO master Set az Fous Master lt Old Ver gt mbus Modbus master on COM4 slave Set az Fous slave lt Old Version x107 amp 00 for the 1 elele eehehe x304 10 400 ADI for 18 IMPORTANT NOTICE Slot 0 is reserved for I O expansion boards please refer Cancel Hate Library C Boards Equipments to section 1 7 You can use other slots for additional function User s Manual 7188 I 7188EG 2002 V1 0 46 To connect the Input attributed variables to X107 click on DI6 and then double click on channel 1 on the right Then select the name and click on Connect F SIMPLELD 10 connection File Edit Tools Options Help E mmm tlt o zm 0 aj ref 710 016 EB z DOF 2 4 Connect IO channel 1 GE MEM M SIMPLELD 10 connection File Edit Tools Options Help E mtm tl mm x10 Ej
34. etuer und 6 CHAPTER 1 SOFTWARE amp HARDWARE INSTALLATION 9 1 1 INSTALLING THE ISAGRAF WORKBENCH SOFTWARE PROGRAM 9 1 2 INSTALLING THE I 7188XG amp I 7188EG I O LIBRARIES 12 1 3 CONNECTING YOUR PC TO THE I 7188XG T7188EG 15 1 3 1 Setting The NET ID Address For The I 7188XG amp I 7ISSEG IJ 1 3 2 Deleting The ISaGRAF Project Inside The 1 7188 I 7188EG 16 1 3 3 Connecting Your PC To The 7188 1 7188 COMI Port 17 1 3 4 Connecting Your PC To The 1 7198 Ethernet Port 19 1 3 5 Multi Clients Connection to The I 7I88EG 20 1 4 LINKING 7000 AND I 87K MODULES FOR REMOTE O 21 1 5 CREATING MODBUS MASTER 22 1 6 LINKING AN MMI INTERFACE 4 00 0 00 000 24 1 7 USING I 7188 I O EXPANSION BOABDS 5 25 CHAPTER 2 ISAGRAF PROGRAMMING BASICS 31 2 1 A SIMPLE LADDER LOGIC LD PROGRAM a
35. kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk EACH l 7188EG USES TCP IP PORT NO 502 TO TALK TO THE HMI AND ISAGRAF WORKBENCH A MAX NUMBER OF 5 PCS CAN TALK TO THE l 7188EG THROUGH MODBUS TCP IP PROTOCOL kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk 1 Create a file folder named 7188 in your hard drive For example 7 188 For Dos Windows 95 amp Windows 98 Users 2 Copy Napdos ISaGRAF 7188EG Driver 7188x exe 7188x ini from the ROM into your 7188 folder Run 7188 7188 in your hard drive A 7188x screen will appear For Windows NT Windows 2000 amp Windows XP Users 2 Copy Napdos ISaGRAF 7188EG Driver 7188xw exe 188xw ini from the CD_ROM into your 7188 folder Run 7188 7188xw exe in your hard drive A 7188xw screen will appear 4 Link from COM1 or 2 of your PC to COM of the 7188 controller by a RS232 cable 5 Power off the I 7188EG controller connect INIT to GND and then power it up 6 If the connection is Ok messages will appear on the 7188x screen 7188 gt 7 Type ip to see current IP address of the I 7188EG 7188 gt IP 192 168 255 255 7188 gt 8 Type setip to set to new IP address 7188 gt setip 192 168 1 200 User s Manual 1 7188XG 7188 2002 V1 0 121 Set IP 192 168 1 200 ReadBack IP 192 168
36. load the library for the IO Boards The same procedure should be used for loading other appropriate libraries for the 1 7188 7188 amp 7 including C functions and C function blocks User s Manual 7188 I 7188EG 2002 V1 0 14 1 3 Connecting Your To I 7188XG I 7188EG 1 3 1 Setting The NET ID Address For The I 7188XG amp I 7188EG Each 7188 amp I 7188EG F has a NET ID No The valid be assigned is from 1 to 255 The default No is 1 To change the NET ID No please follows below steps 1 Create a file folder named 7188 in your hard drive For example c 188 For Dos Windows 95 amp Windows 98 Users 2 Copy NapdosMsaGRAFV 188EG Driver 188x exe 7188 from the CD ROM into your 7188 folder 7188 7188x exe in your hard drive A 7188x screen will appear For Windows NT Windows 2000 amp Windows XP Users 2 Copy NapdosVSaGRAFV 188EG Driver 188xw exe 7188xw ini from the CD ROM into your 7188 folder Run 7188 7188xw exe in your hard drive 7188xw screen will appear 4 Link from COM 1 of your PC to COM1 of the I 7188XG amp I 7188EG controller by a 5232 cable 5 Power off the 1 7188 amp 7188 controller connect INIT to GND and then power it up 6 If the connection is Ok messages will appear on the 7188x screen 1188 7 isa7188 s to set the NET ID for 7188
37. on the Dictionary icon and then click on the Boolean tab to declare the Boolean variables that will be used in our example program simplel D E 1 Make Project Took Debug Options Help m emnt mil a Qs SIMPLELD Global boolean To declare the program variables for the ISaGRAF project double click on the colored area below the Boolean tab and a Boolean Variable window will open Enter in the name of the variable to be used in the project For the purpose of this example program the variable Boolean Variable Name is SW1 and Switch 1 is added to the Comment Section The next item that must be declared is what type of Attribute the variable will possess In this example program SW1 s attribute will be an Input Lastly press the Store button to save the Boolean variable that has been created User s Manual 7188 I 7188EG 2002 V1 0 36 I5aGRAF Global bopnlenrs Extended The new Boolean variable has now been declared Note the other information areas that are provided for the programmer to fully explain how the variable will be handled ISaGRAF SIMPLELD Global booleans Edit Tools Options Help sc Booleans Integers Fes Name ers Messages FB Defined w
38. the EEPROM more than 100 000 times User s Manual 1 7188XG 7188 2002 V1 0 106 W eep n w Description Function write a 32 bit integer value to the EEPROM DATA 2 Arguments Integer address in the EEPROM where the 32 bit integer value is to be written to valid range values from 1 to 378 DATA integer the 32 bit integer value to be written to Q_ Boolean Ok return TRUE If you are using this function with the WD WD EEP BY and EEP BY W functions simultaneously you must be careful to arrange the ADR because they all occupy the same memory area For example ADR 2 of EEP N R occupies 4 bytes and it uses the same memory area as ADR 3 and ADR 4 of EEP WD R and the same address of ADR 5 6 7 and 8 of EEP BY R Read operation of the EEPROM will work without removing the EEPROM protection EEP W EEP BY W EEP WD W and EEP W functions should not be used to write to the EEPROM more than 100 000 times EEP PH Description Function Set the EEPROM write protection s Argument Boolean Ok return TRUE Fail return FALSE After writing to an it is better to turned off the write protection EEP B EEP W EEP WD EEP N W functions should not be used to write to the EEPROM more than 100 000 times User s Manual 1 7188XG 7188 2002 V1 0 107 EEP WD Description eep wd r Function read a word
39. which connect to the 7 l 87xx function block as Internal attribution Example 1 Programming An 1 70500 Module 500 CON n Address of 70500 Connect well will return TRUE 8 D O channels of pO 70500 Can declared k 7 channels of as Internal attribute 70500 be BOT declared as Internal attribute Example 3 Programming An l 7017 Module The Data Format Used must be 2 s Complement COM If connect well Address of return TRUE that 1 7017 8 channels of l 7017 Can be declared as Internal attribute User s Manual 1 7188XG 7188 2002 V1 0 77 For additional information regarding l 7000 1 87 module click on the function block press the F1 key for on line description with Technical Notes for the selected function block 3i ISaGRAF TEST TEST Quick LD Program File Edit Tools Options Help Bd F5 4H F7 19 Fo tae 7 97024 Br n Technical notes B Ei function blocks i 87024 4 CH analog output i 87024 connect extension modules 1 9 7024 to COM S3IA of I 8xx7 controller channel 4 analog output DET 87024 to ENGINEER UNIT by 7000 utility call ADH integer address of i 87024 17255 must be a constant valu integer 4 analog output value User s Manual
40. years EEPROM 2048 bytes 8 blocks each block has 256 bytes Data retention gt 100 years 1 000 000 erase write cycles Flash Memory 512K bytes Erase unit is one sector 64K bytes 100 000 erase write cycles D I 1 channel High 3 5V 30V Low 0 1V D O 1 channel 100 mA 30V max COM1 RS 232 or RS 485 RS 232 TXD RXD RTS CTS GND RS 485 D1 D1 self tuner ASIC inside Communication speed 115200 max Supports Modbus Serial Protocol for Connecting PC HMI amp Touch panels COM2 RS 485 D2 D2 self tuner ASIC inside Communication speed 115200 max Supports Protocol of l 7000 amp 87 Remote I O Modules Supports Modbus Master Protocol for connecting other Modbus devices Supports User self defined Protocol Display segmemt LED 5 digit for 7188XGD Power Power requirements 10 to 30VDC non regulated Power consumption 2 0W for 7188XB 3 0W for 7188XBD User s Manual 1 7188 7188 2002 V1 0 8 Chapter 1 Software amp Hardware Installation 1 1 Installing The ISaGRAF Workbench Software Program Before you can start programming the 188 8 l 188EG embedded controller system must first install the ISaGRAF Workbench software program on a target PC Steps To Installing The ISaGRAF Workbench Program Insert the ISaGRAF Workbench CD into your CD ROM drive Normally the auto start program will activate the install bat file automatically If your computer does not have the auto start feature act
41. 188XG I 198EG it will not work lt Hew gt Sel Fiekdbus slave re lealated 16 CH 16 CH 00 E B54 CH Di 8 CH D i 2059 B CH DI amp B CH 8063 Isolated 4 CH DIG 4 DO L B7 4 Isolated B CH DI amp amp CH OO i 87095 8 CH DI amp CH OO of bt 41H OI E LH Dill mazier Set ar Fieldbus Maxi mbus Modbus marke on COM or COMA Set Fieldbus slave Analog Ls fos simulation mr Us kmg wx Mszrags Fle Tools Options Help tod rel 1 com 3 Lora com baud 19200 g hostwaichdog 0 N walchdag timer TE User s Manual I 7188XG I 7188EG 2002 V1 0 15 Don t need to care the com port parameter Whatever you set the 7188XG 7188 controller system always communicate with the l 7000 87xx module through Com2 The com baud parameter defines the baud rate that the I 7188XG 7188 will communicate with the 7000 87xx module The possible values are 2400 4800 9600 19200 38400 5 600 and 115200 You must make sure that the 188 7188 controller system and the 7000 87xx modules are all set to the same com baud value The host watchdog parameter enables or disables the watchdog function for the l 7000 and 1 87 module S
42. 5 1 Modbus address 0000 is associate with network address 1 Read2words gt Req 51 03 00 00 00 02 lo gt _ To write long word to V1 is to write 2 words by using modbus function 16 49 9 9 E w Ans 10 00 00 00 02 Req To read write float 4 bytes is very similar to read write long word The difference is the variable should be declared as Real type and the next network address No should not be assigned to any other variable Comment Attributes Cancel Next Constant Initial value Previous Extended standard t Internal Input C Output User s Manual 7188 I 7188EG 2002 V1 0 71 Chapter 5 Modbus Protocol The Modbus protocol is a powerful and flexible communications protocol that allows numerous software programs and hardware devices to communicate with each other Any 7188 7188 variable that will be used to communicate through the Modbus protocol MUST have a unique network address before it can communicate through a Modbus link please refer to section 4 1 Please refer to Chapter 5 of Users Manual Of The 1 8417 8817 847 8837 ISaGRAF Embedded Controllers User s Manual 1 7188XG 7188 2002 V1 0 72 Chapter 6 Linking l 7000 8 I 87xx Modules 1 7188 1 7188 controller sy
43. 5 17 End action Close COM3 2 User s Manual 1 7188 7188 2002 V1 0 100 COMREAD Description comread Function Read one byte from a COM port PORT DATA Argument PORT Jj integer port ID 2 2 8 integer the data returned Note Call COMREADY to test data coming or not If there 15 data COMREAD can be used to read the data If no data comime do not call COMREAD or COM port will block COMREADY Description comready Function Test a COM port for data PORT PORT integer port ID 2 2 8 boolean If there is data coming return TRUE Else return FALSE Note This function should be called to test data coming or not If there is data COMREAD can be used to read the data If no data comime do not call COMREAD or COM port will block Example 1 Open baud is 19200 Test is there datas coming from Read COM3 to read another byte 2 User s Manual 1 7188 7188 2002 V1 0 101 COMSTR W comstr w Description d Function Write one string to a COM port 5 STR 8 PORT integer port ID 2 2 8 STR_ Message the string to be written max length is 255 boolean Ok return TRUE else return FALSE Example ws SW1 and TMP are declared boolean variables To test
44. 8 amp l 8417 8817 8437 8837 controller systems it is the responsibility of the programmer to properly select the correct Compiler Options You MUST select the ISA86M TIC Code For Intel option as described below To begin the compilation process first click on the MAKE option from the main menu bar and then click on Compiler Options as shown below 1 SIMPLELD Programe File Project Took Debug Options Help Bagir z GD The Compiler Options window will now appear Make sure to select the options as shown below then press the OK button to complete the compiler option selections Lemnpiler opens Ex I AT xj gt SIMULATE Workbench 5Samulatis TIE code for Motorola s TIC code bor lintel C soume code 04 v embedded SFC engine mane BURE Upload ER THESE BOXES ARE Run two optimizer passe Evaluate constant expressi D ef ult Suppress unused labels Optimise vasiable copying expressions Suppress unused code operations Optimize boolean operations Build binary decision diagrams DOD s Cancel TIME TO COMPILE THE PROJECT Now that you have selected the proper compiler options click on the Make Application Code icon to compile the example LD project I
45. EEP BY R Read operation of the EEPROM will work without removing the EEPROM protection B W EEP BY W EEP WD W and W functions should not be used to write to the EEPROM more than 100 000 times User s Manual 1 7188XG 7188 2002 V1 0 105 Description Function Remove the EEPROM write protection Argument Q_ Boolean Ok return TRUE Fail return FALSE BEFORE writing to the EEPROM the EEPROM write protection must be turned off EEP W EEP BY W WD W and W functions should not be used to write to the EEPROM more than 100 000 times NR Description n r Function read an 32 bit integer value from the EEPROM IR ADH Integer address the where 32 bit integer value is stored valid range values from 1 to 378 Integer the 32 bit integer value returned If you are using this function with the EEP WD WD EEP BY EEP BY W functions simultaneously you must be careful to arrange the ADR because they all occupy the same memory area For example ADR 2 of EEP N R occupies 4 bytes and it uses the same memory area as ADR 3 and ADR 4 of EEP WD R and the same address of ADR 5 6 7 and 8 of EEP BY R Read operation of the EEPROM will work without removing the EEPROM protection The EEP B W EEP BY W EEP WD W and EEP N W functions should not be used to write to
46. Function 8 Function Blocks For 71988 l 7188EG Appendix A 1 Standard ISaGRAF Function Blocks The following details the standard ISaGRAF function blocks that that be programmed with 1 7198 7188 controller system however labeled with is not supported ARWRITE F MSG SHR ASCII TRIG MUXA 5 GEN ASIN MUX8 SIN ATAN FA READ Neg SQRT AVERAGE WRITE MASK SR BLINK FIND ODD SIACKINT BOO FM READ OPERATE SYSTEM CAT WRITE OR MASK CHAR HYSTER POW TMR CMP INSERT R TRIG TOF COS INTEGRAL RAND TON CTD LEFT REAL TP CTU ALRM REPLACE TRUNC MASK DAY TIME LOG ROL DELETE MAX ROR DERIVATE MID RS AND MASK EXPT MIN SEL ARCREATE F CLOSE MLEN SEMA ARREAD SHL Please refer to the ISaGRAF User s Guide for more details regarding the Standard Operators Function Blocks amp Functions available from the ISaGRAF Workbench program User s Manual 1 7188XG 7188 2002 V1 0 92 Appendix 2 Adding New Function Blocks ISaGRAF add or update functions or function blocks for the ISaGRAF Workbench program click the Windows Start menu select Programs select ISaGRAF 3 4 then click on Libraries to begin installing or updating ISaGRAF functions or function blocks ug Je g z al amp EES
47. GRAF Debugger window click on the Download icon then click on ISA86M TIC Code For Intel from the Download window as shown below Salk AF SIMPLELD Debugger ajoj IS AGM TIC code for Intel Application The example LD program will now start downloading to the I 7188XG 7188EG controller system A progress bar will appear in the ISaGRAF Debugger window showing the program downloading progress SaGRAF SIMPLELD Debugger xj Fie Control Took Options Helo SH 43 39 17 application stepped When example LD program has successfully completed downloading process to the 1 7188 7188 controller system the following two windows will appear User s Manual 7188 I 7188EG 2002 V1 0 56 2 SIMPLELD Control Took pions k HM bk nv HUH allowe 1 ove 0 21 39 17 ME application stopped Pils Project Tools Options Help D Evange LO Progra 121 Ladder Diagrmm RUNNING THE EXAMPLE LD PROGRAM You can observe the real time I O status from several ISaGRAF windows while you are running the example LD program One of the windows is the I O Connections window which shows each of the inputs and outputs as assigned Click on the I O Connections icon the ISaGRAF Debugger window
48. If the development PC and the 1 7188 7188 controller system are communicating properly with each other the following window displayed below will appear or if a program is already loaded in the 1 7189 7188 controller system the name of the project will be displayed with the word Active following it If the message in the ISaGRAF Debugger says Disconnected it means that the development PC and the I 7188XG 1 7188 controller system have not established communications with each other The most common causes for this problem is either the serial port cable not being properly configured or the development PC s serial port communications DO NOT match that of the I 7188XG 7188EG controller system You may have to either change the serial port communication settings for the development PC which may require changing a BIOS setting or change the Serial Link Parameters in the ISaGRAF program User s Manual 7188 I 7188EG 2002 V1 0 55 ISaGRAF SIMPLELD Debugger 04 Control Tools Options Help No apolication 23 Stop application lication stopped If there is a program already loaded in the I 7188XG I 7188EG controller system you will need to stop that program before you can download the example LD program Click on the STOP icon as illustrated above to halt any applications that may be running STARTING THE DOWNLOADING PROCESS From the ISa
49. M Argument ADR_ integer address in the EEPROM where the byte value is stored valid range values from 1 to 1512 Integer the byte value returned 0 255 f you are using this function with the EEP WD EEP WD W functions simultaneously you must be careful to arrange the ADR because they all occupy the same memory area For example ADR 2 of EEP N R occupies 4 bytes and it uses the same memory area as ADR 3 and ADR 4 of EEP WD R and the same address of ADR 5 6 7 and 8 of EEP BY R Read operation of the EEPROM will work without removing the EEPROM protection EEP B W EEP BY W WD W and W functions should not be used to write to the EEPROM more than 100 000 times EEP BY W eep by w ADR Description Function write a byte 8 bit integer value to the EEPROM EB Q Arguments ADR_ integer address in the EEPROM where the byte value is to be written to valid range values from 1 to 1512 DATA integer the byte value to be written to valid range values from 0 to 255 Boolean Ok return TRUE f you are using this function with the EEP WD EEP WD R W functions simultaneously you must be careful to arrange the ADR because they all occupy the same memory area For example ADR 2 of EEP N R occupies 4 bytes and it uses the same memory area as ADR 3 and ADR 4 of EEP WD R and the same address of ADR 5 6 7 and 8 of
50. March 10 October Etc DD Integer Day Returned Valid Range From 1 To 31 Q Boolean If OK Returns TRUE Example oW is declared as a boolean variable Y1 M1 D1 are declared as integer variables ot equivalence DAT W1 SW1 Y1 1 01 call DAT W1 OUT1 DAT W1 Q get return value Wl is declared as a FB instance with type SYSDAT W OUT1 as a boolean variable User s Manual 1 7188XG 7188 2002 V1 0 116 SYSTIM systim r Description HH Function block Read system hour minute and second MM Arguments SS HH Integer Hour Returned Valid Range From 0 To 23 MM_ Integer Minute Returned Valid Range From 0 To 59 SS Integer Second Returned Valid Range From 0 59 Example H1 M1 and S1 are declared as integer variables ST equivalence R1 declared as FB instance with type SYSTIM 1 Call TIM R1 H1 R1 HH get hour M1 R1 MM get minute 51 R1 SS get second SYSTIM W systim Description Function block Set system hour minute and second Arguments IN Boolean Set System Date When Rising From FALSE To TRUE YY_ Integer Year Write Example 2002 2003 2010 Etc Integer Month To Write 1 Jan 3 March 10 October Etc _ Integer Day Returned Valid Range From 1 To 31 Q Boolean If OK Returns TRUE User s Manu
51. REMEMBER that you may have to offset the Modus addressing by 1 between these products so they will properly communicate with each other Developers who design and write their own software interface programs using Microsofts Visual Basic or Visual programming language should refer to Chapter 5 of this manual for more information on how to interface the Modbus protocol to these programming languages NOTE While talking to the I 7188XG ONE Modbus frame cannot request more than 255 bits and also cannot request more than 125 words It should be divided into 2 or more requests to achieve it For Il 7188EG can not request more than 255 bits and 122 words in one modbus frame User s Manual 1 7188XG 7188 2002 V1 0 69 4 2 Word Long Word amp Float through Modbus protocol provides function 3 for reading multiple words while function 6 and 16 to write words Please refer to Chapter 5 for more information about the protocol The word defined in the Modbus protocol of 7188 l 7188EG controllers is like a signed short integer which occupies 2 bytes and range from 32 768 8000 in hexa to 32 767 7 in hexa It is normally used to describe the behavior of analog channels For examples the X304 expansion board please refer to section 1 7 The long word defined in the Modbus protocol of the I 7188XG 7188 controller is like a signed long integer which occupies 4 by
52. TICE PRACTICE Now that you have successfully created and ran your first ISaGRAF program with the 1 7188 7188EG controller system you should practice creating more elaborate and powerful programs Like any other computer development environment practice and experimentation is the key to understanding and success GOOD LUCK User s Manual 7188 I 7188EG 2002 V1 0 58 2 2 A Simple Function Block Diagram Program 2 3 A Simple Structured Text ST Program 2 4 A Simple Instruction List IL Program 2 5 A Simple Sequential Function Chart SFC Program Note Please refer to Users Manual Of l 8417 8817 8437 8837 ISaGRAF Embedded Controllers for simple programs of FDB ST IL 8 SFC language or refer to 5 800 manu 8 7 User s Manual 1 7188 7188 2002 V1 0 59 Chapter 3 Establishing Connections Before you can operate ISaGRAF program with the 1 7188 7188 controller system you must make sure that the 7188XG 7188 Library has been installed If you haven t done so already please refer to Section 1 2 3 1 Linking I O Boards To An ISaGRAF Project The numbers on the left of the I O Connections window indicate the slot number Slots 0 is only for Expansion boards such as X107 X304 X507 X509 refer to section 1 7 Slots 1 and above be used for I 188xb or virtual I O b
53. User s Manual 1 7188XG 8 7188 ICP DAS LTD April 2002 All Rights Reserved This manual is intended for integrators programmers and maintenance personnel who will be installing and maintaining 7188 8 7188 controller system Legal Liability ICP DAS CO LTD assumes no liability for any and all damages that may be incurred by the user as a consequence of this product ICP DAS CO LTD reserves the right to change this manual at any time without notice ICP DAS CO LTD constantly strives to provide our customers with the most reliable and accurate information possible regarding our products However ICP DAS CO LTD assumes no responsibility for its use or for any infringements of patents or other rights of third parties resulting from its use Trademark amp Copyright Notice The names of products are used for identification purposes only and are the registered trademarks of their respective owners or companies Copyright April 2002 by ICP DAS CO LTD All Rights Reserved User s Manual 1 7188 7188 2002 V1 0 1 Table of Contents USER S MANUAL I 7188XG amp I 7188EQG 1 TABEEQOEPCONIENTS ihi uei E eve E eR Ee eA etii 2 i 5 SPECIEICATION uid te ori E o o
54. a the apeciled address The Archive 8 Boards window will appear as shown below To find the drivers for the I 7188XG 8 1 7188 controller system click on the Browse button as shown below Ara hive 18 birari Help When you click on the Browse button an Archive Location dialog box will open User s Manual 7188 7188 2002 V1 0 13 File Di backup c e c gt 1 E gt Fe DESETI Lost ees of tuper The important item to locate is the NAPDOS ISaGRAF ARK sub directory the location of these sub directories may be different depending on where you have the driver files located After you have located the CD ROM NAPDOS ISaGRAF ARK sub directory click on the OK button fanis L VDDCUME 71500 T TUDE SE PMO The I O library for the 7188 amp 7188 amp 8417 8817 8437 8837 control boards now appear in the Archive list box Select all the items and then click on the Restore button The selected drivers will now install into the ISaGRAF sub directory 5 lit channel Oc 418 max c 1 43 5V 18V Open Callecher 125m fchannel ICP July 16 2001 Follow the same procedure for loading the IO Complex Equipment library like you did to
55. address for the I 7188XG I 7188EG controller system Default NET ID is 1 to change the NET ID please refer to section 1 3 1 The Communication Port is the serial port connection on your development PC and this is normally either COM1 2 The communication parameters for the target controller MUST be set to the same serial communication parameters for the development PC For 7188 I 188EG controllers serial port communications the default parameters for COM port are Baudrate 19200 Parity none Format 8 bits 1 stop Flow control none User s Manual 7188 I 7188EG 2002 V1 0 54 IMPORTANT NOTE It may be necessary to change the COM port settings for the development PC Depending on which computer operating system you are using you will need to make sure that the COM port can properly communicate to l 7188XG 7188 controller system DOWNLOADING THE EXAMPLE LD PROJECT Before you can download the LD project to the I 7188XG I 188EG controller system you must first verify that your development PC and the I 7188XG 7188 controller system are communicating with each other To verify proper communication click on the Debug icon in the ISaGRAF Programs window as shown below ISab RAF SIMPLELD Programs gt Make Project Tools Debug Options Help A Om Ss 4 Begin HABIE Example LD Program Begin LD1 Ladder Diagram
56. al 1 7188XG 7188 2002 V1 0 117 TWIN LED Description Function show a 2 screen values to the S MMI Arguments RUN boolean to show if TRUE V1 integer value displayed on the 2 digits on left of 1st screen 0 99 V2 integer value displayed on the 2 digits on right of 1st screen 0 99 VAL integer value displayed on the 2nd screen 99999 99999 CLK timer the blinking period of these 2 screens boolean always TRUE VAL HEX Description val hex Function Convert an integer to a fixed length hexa message VAL Arguments DIGIT HEX VAL integer the value to be converted DIGIT integer number of digits of HEX valid values are 1 8 Given others will do no conversion and force HEX to empty message HEX message the hex message after conversion Example val hex 100 3 gt 064 192 4 gt 00C0 val hex 4589 2 gt 11bED DIGIT_ is 2 force 11 trucated val_hex 4589 9 gt DIGIT_ gt 8 output val hex 2 8 gt FFFFFFFE User s Manual 1 7188XG 7188 2002 V1 0 118 VAL10LED Description Function disply an decimal integer on the S MMI Arguments RUN Boolean FLASH Boolean CLK Timer VAL Integer Example VAL16LED Description Function Arguments RUN_ Boolean FLASH Boolean CLK Timer VAL integer If TRUE display it if TRUE flash it the flashing period the integer to be displayed Range from 9999 to 99999
57. amming for Modbus slave please refer to Chapter 4 Either COM2 or can be used to link to other devices that support the Modbus protocol then the 1 188XG 7188 controller system will be the Modbus master controller For more information about setting up and programming for Modbus master please refer to Chapter 7 Linking A Modbus RTU Or Other Devices If COM2 RS485 is used one 1 7188 1 7188 can connect to many other Modbus devices Each device on the link must have a unique NET ID 1 255 address and communicate at same baud rate settings 2 D2 4 3 RS4854 RS485 RS485 D2 RS 485 5485 Other PLC support Modbus NEI ID 1 Other device support Modbus ID 2 188 7188 User s Manual 1 7188 1 7188 2002 V1 0 22 If COM3 RS232 with of 503 504 505 506 expansion board plugged or COM3 RS422 with X507 I O expansion board plugged is used one Il 188XG I 188EG can connect to one Modbus device Other Modbus Device 7188XG 7188EG RXD 7 TXD COM3 TXD LL RXD RS232 GND GND RTS DIR DSR COM3 TX RX RS422 RX TP lt s TX User s Manual 7188 I 7188EG 2002 V1 0 23 1 6 Linking To MMI Interface Device The COM1 RS 232 port of the l 7188XG and I 7188EG controller system can be used to interface w
58. annel x window User s Manual 7188 7188 2002 V1 0 63 3 2 Linking Analog Boards The method to connect analog type I O boards to the 1 7188 7188 controller system is very similar to that of connecting digital I O boards You may click on Note to see the A D amp D A transfer table m ISaGRAF S1 I O connection File Edit Tools Options Help Select board equipment l 7000 105 Com3 OK m lt Mew gt Set Fbus Master fbus s lt Mew x Set as Fbus slave qd 7188xh 1D1 amp 1DO for the 7188XB Cancel i 8042 Isolated 15 CH DI amp 16 CH DO i 6054 Isolated 8 CH DI amp 8 CH DO 8055 8 CH DI amp 8 CH DO 8063 Isolated 4 CH DI amp 4 DO i 87054 Isolated 8 CH DI amp 8 CH DO i 87055 8 CH DI amp 8 CH DO Library i 87053 Isolated 4 CH DI amp 4 CH DO master Set as Fbus Master Old ver mbus Modbus master on or COM4 Bg slave Set as Fbus slave Old Version Equipments x107 amp 7DO for the 7188 B EX N x304 400 401 for 7188XB EX Note EDDBDDOB Technical notes 4 ch 3 5V 30V non isolated 4 ch 100m 30V max non isolated 3 ch AID 5 1 ch DIA 4 5V 3Y 7 5V 32 68 3275 User s Manual 7188 I 7188EG 2002 V1 0 64 Chapter 4 Linking To An HMI
59. before you can assign any input or output you must FIRST declare the variable in the ISaGRAF Global Variables window as shown below b kaGRAF 51 Global booleans File Edit Tools Options Help Pp a Booleans IntegersReals Timers Messages FB instances Defined words Hame Attrib Addr Comment input 0000 Su 020000 input false true Click once on slot 0 then double click on 1 on the right hand side of the ISaGRAF I O Connection window With the Connect I O Channel 1 window now open click on the Connect button to create the link between the variable SW1 and channel number 1 of the X107 DI6 input a ISaGRAF S1 IFO connection File Edit Tools Options Help aj ref 7107A 016 L mem 1 2 00 4 5 Connect Next User s Manual 7188 I 7188EG 2002 V1 0 62 If you connect an input an output variable to wrong undesired location double click on the point you wish to remove The Connect Channel x will open then click on the Free button to remove that variable from the I O point When you click on the Free button you will see that the variable is removed from the I O point in the ISaGRAF I O Connection window and the variable is placed in the Free portion of the Connect I O Ch
60. can store up to 256 integers Example Refer to the ARRAY example User s Manual 1 7188XG 7188 2002 V1 0 97 ARY N W Description Function Arguments NUM integer ADR_ Integer DATA integer boolean Save one integer to an integer array array ID to be operated valid range values from 1 to 6 address in the array where the integer is to be stored valid range values from 1 to 256 the integer value to be saved to If OK return TRUE else return FALSE There are 6 integer arrays that can be used Each array can store up to 256 integers Example Refer to the example BIT WD Description Function Arguments B1 B16 boolean VAL integer Convert 16 boolean values to a word value the 16 boolean values to be converted the word value after the conversion For If B1 and B2 are TRUE and others are all FALSE VAL will be 3 If only 4 is TRUE and others are all FALSE VAL will be 8 User s Manual 1 7188XG 7188 2002 V1 0 98 comary Description Function Read all of the ready data of a COM PORT to a byte array z ARY M NUM Argument PORT integer port ID 2 2 3 COM3 8 COM8 ARY NO integer Byte array ID 1 24 which is used to store the read bytes NUM integer return the number of bytes been read COMARY W Description Function Write a byte array to a COM PORT Argument PORT integer port ID
61. ditional outputs in parallel with the first output SIMPLELD LOW Quick LO Program Took Options Help we Keds Rb Gags FEIE PE Fegi FR ouem ky After adding two additional outputs move your cursor to left of the timer function block to where the word CYCLE is and double click at that position User s Manual 7188 I 7188EG 2002 V1 0 43 Now ready to assign our program variables to each of the program components Place the cursor over the first normally open switch as shown below then double click on the contact A Select Variable window will now open AER SIF34PLELDGED T Quick LD Program g Pk D FAO Pu User s Manual 7188 7188EG 2002 V1 0 44 Using same method described above now assign rest of the program variables to the contacts and coils in the example program Lastly remember to click on the Save button to complete the programming of the example LD program Your program should now look like the below illustration Si 1SaGRAF SISfFLELDzLD L Quick LD Program E E lal xj Edt Tools Help Bert ARR a 2 1 2 Connecting The I O The ISaGRAF Workbench software program is an open programming system This allows the u
62. e OK to complete the installation IMPORTANT NOTE Only ONE Mbus complex equipment function can be linked to ONE 7188 I 188EG controller system we SaGRAF TEST 120 Edit Tools Options Help a E A 2000 1 7000 10s Com3 or COM4 fbus m lt Mew gt Set Fieldbus Master s lt gt Set as Fieldbus slave Isolated 16 CH DI amp 16 DO L Set as Fieldbus slave Analog for simulation xboo 10 Boolean 5 for simulation 1 10 Message I Os for simulation Mbus com port Parameter The Mbus com port parameter sets the same baud rate that the I 7188XG Il 188EG controller system and all Modbus devices will communicate at ALL User s Manual 7188 I 7188EG 2002 V1 0 80 devices MUST to the same baud rate setting The default setting for the Mbus com port parameter is 19200 ISaGRAF TEST 1 0 connection E Dj x Edit Tools Options Help E tl port 4 mu baud 19200 char 8 mw parity 0 stop 1 9 mbus 10 Mbus Parameter The Mbus port no parameter defines which COM port the Modbus devices will communicate with the 7188 7188 controller system Mbus port no parameter can be set to either a
63. eady to create the example LD program To start this process click on the Create New Program icon and the New Program window will appear Enter the Name as LD1 the name of our example program next click on the Language scroll button and select Quick LD Ladder Diagram and make sure the Style is set to Begin Main Program You can add any desired text to the Comment section for the LD program but it isn t required 2 ISaGRAF SIMPLELD Programs k E Haes Proect Took Debug Sotions Heu Ru e Progr as The LD1 program has now been created open the LD1 program double click on the LD1 name 5a B AF Prodgraivis Hse Project Tons Debug Heb BEES ODA Au Example LD Program Begn asas Oran 2 1 1 5 Editing The Example 101 Program When you double click on the LD1 name the Quick LD Program window will appear To start programming our LD program click on Edit from the main menu bar then click on Insert Rung as shown below Insert Rung means to Insert a basic LD rung just above the current position User s Manual 7188 I 7188EG 2002 V1 0 40 SIMPLEL D T Quick LO Programi Togs Options Hep Rem Gui d Cur J FE FX FBT Copy Chri Delete Die Fear ira Set beak k Ent
64. els User s Manual 1 7188 7188 2002 V1 0 6 2 RS 485 Data Data self tuner ASIC inside Communication speed 115200 max Supports Protocol of l 7000 amp 87 Remote I O Modules Supports Modbus Master Protocol for connecting other Modbus devices Supports User self defined Protocol Ethernet 10 BaseT Connector 10M bps NE2000 compatible oupports Modbus TCP IP Protocol for Connecting PC HMI amp Touch panels Display segment LED 5 digit for 7188EGD Power Power requirements 10 to 30VDC non regulated Power consumption 2 0W for 7188 3 0W for 7188EGD ISaGRAF Embedded Controller 7188 amp I 7188XGD General environment Operating temperature 25 C to 5 C Storage temperature 40 C to 85 C Humidity O to 95 Built in Watch Dog Timer 1 6 seconds Built in power protection amp network protection circuit Program downloadable from PC Built in expansion bus interface System Module name embedded controller CPU Am188 ES 40M Hz SRAM 512K bytes FLASH ROM 512K bytes COM port COM1 COM2 Built in EEPROM D O oupports Expansion Bus Program download port COM1 oupports ISaGRAF Programming languages LD FBD SFC ST IL amp FC User s Manual 1 7188XG 7188 2002 V1 0 7 Time Clock Year 2000 compliance Seconds minutes hours date of the month Month year valid from 1980 to 2079 NVSRAM 31 bytes battery backup data valid up to 10
65. er Change space Pind Fired nane 2 aj Fined c harga col N EB PO Copy drawing metafile Or you may just simply click on the F2 Contact On The Left icon and the following will appear within the Quick LD Program window SaGRAF SIMPLELD LD1 Quick LD Program E Edit Tools Options Help Sb F3 3HE Fd GH F5 4H F7 25 tF 90a Contact on the left i Click on F4 Parallel Contact icon and you will add a parallel input contact below the first input contact that was created SIMMPLELDA DI Quick LD Program Edit Took Opters Ks GG rH Flo Pel PREM FG D FAO F w Parara contacs contact Click on coil contact at the end of the LD rung and then click the F2 Contact On The Left icon User s Manual 7188 I 7188EG 2002 V1 0 41 F Chak LO Program File Edt Took Options Help xi Get g PRE FRE PRO FERE Fk b Contact on the lett A new normally open input contact to the left of the output coil now appears Click on the Coil Contact Type icon to change the normally open contact
66. er Unit 32767 0 2 s complement HEX TFFF 0000 Platinum 100017044 Range Celsius 6000 4 0 00385 Engineer Unit 32767 10922 N N NO NO NO NO NO NO NO NO gt O CO abr 5 complement TFFF D556 User s Manual 1 7188XG 7188EG 2002 V1 0 26 801 Each channel can be configured to different range ID Engineer Unit 32767 s Complement HEX TFFF 32767 s Complement HEX TFFF 32767 s Complement HEX TFFF 2s Complement HEX 2 2 2 Input Range Default Engineer Unit 32767 25 Complement HEX TFFF 2 EngineerUnit 32767 s Complement HEX TFFF User s Manual 1 7188XG 7188EG 2002 V1 0 Min value 32768 8000 32768 8000 32768 8000 32768 8000 32768 8000 127 87017 l 7017 Input Range 400 400 Desai 32767 2768 s Complement HEX 7FFF Engineer Unit 32768 20 2 s Complement HEX 80 EngineerUnit 532767 2768 s Complement HEX 7FFF 8000 3 8 3 8 Engineer Unit 32767 32768 s Complement HEX 8000 3 8 3 8 3 Engineer Unit 32767 2768 s Complement HEX 7FFF 2 s Complement HEX EngineerUnit 2 s Complement HEX 32767 2768 s Complement HEX 7FFF Engineer Unit 0 2 32768 20 Engineer Unit 32767 2 s Complement HEX 8000 E 2 2 2 2 2 2 2 User s Manual 7188 7188EG 2002 V1 0 128 87018 l 7011 l
67. es a boolean up to 256 booleans can be stored BY W Writes one byte up to 1 512 bytes can be stored WD W Writes one word 2 bytes signed up to 756 words be stored EEP W Writes one integer 4 bytes signed up to 378 integers can be stored Bytes words and integers will be stored to the same memory area in the EEPROM Be careful to arrange their address before using the above write functions There are total 1 512 bytes in this EEPROM memory area The addressing No of bytes is range from 1 to 1 512 while words is 1 to 756 and integers is 1 to 378 The following No will use the same memory address in the EEPROM Byte 4n 3 4n 2 4n 1 4n n 1 2 378 Word 2n 1 2n Integer n When using the write functions the EEPROM will be damaged if the write operation is more than 100 000 times For example the following program is dangerous since the EEPROM will be written once per cycle normally the cycle is about 1 to 40 ms depends on the application ST program Val is declared as an integer TEMP is declared as a boolean TEMP n w 1 dangerous User s Manual 1 7188XG 7188 2002 V1 0 88 However the following program is safe if is not changed frequently ST program Val Old Val declared as integers TEMP declared as a boolean IF Val Old Val THEN TEMP n w 1 Val Old Val Val END IF Each read write operation on
68. etting the host watchdog parameter to non zero value will enable the host watchdog feature The watchdog timer parameter defines the amount of time before a host watchdog will occur The value for the watchdog timer is defined in a hexadecimal value with the units defined in 0 1 second increments For example if the watchdog timer is set to a value of 1E the watchdog timer is set for 3 seconds If the watchdog timer value is set to 2A the watchdog timer is set for 4 2 seconds If the host watchdog feature is active and the watchdog timer is exceeded on the I 7188XG 7188EG controller system it means the connection is break between the 1 7188 I 7188EG controller and l 7000 87xx modules the l 7000 87xx modules will go to a safe predetermined value There is an analog input channel available on the Bus 000 Remote virtual board This analog input channel will return a value equal to the currently set baud rate User s Manual 1 7188XG 7188 2002 V1 0 76 6 3 Programming l 7000 Module To link any l 7000 and 87 module to 1 7189 7188 controller system the Bus 000 module MUST be opened first Once the 7000 is opened the 7 l 87xx function block now be programmed you can access all of the channels available from that function block and that data can now be used in a LD program NOTE You can declare all variables
69. f there are no compiler errors detected during the compilation process CONGRATULATIONS you have successfully created our example LD program User s Manual 1 7188 1 7188 2002 V1 0 49 If errors are detected during the compilation process just click the CONTINUE button to review the error messages Return to the Project Editor and correct the errors as outlined in the error message window ISaGRAF SIMPLELD Programs xj Make Project Tools Debug Options Help B og Begin Hi Generator Ho eror detected Begin Do you want to exit the Code Generator now Continue 2 1 4 Simulating The LD Project A powerful program debugging feature of the ISaGRAF software program is the ability to SIMULATE the program you have developed before loading it into the Il 188XG 1 7188 controller system After successfully compiling the example LD program click on the SIMULATE icon as shown below AF Programs 4 eke Took Deb OF Example LO Program LOT Leecher When you click on the Simulate icon three windows will appear The windows are the ISaGRAF Debugger the ISaGRAF Debug Programs and the I O simulator windows If the I O variable names you have created DO NOT appear in the I O simulator window just
70. function click on Retain for each associated variable SaGRAF SA Programs Ede Make Project Tools Debug Options Help E Mew Dm E mx ge Rm A ISaGRAF SA Global integers reals File Edit Tools Options Help xa Booleans Integers Reals Timers Messages FB instances Defined words Hame Attrib Addr Comment internal 0000 Intezer Real Variable Name NUM Network Address WW Attributes Format Integer standard t Internal El Real Cancel Output Mext Constant Initial value 20 DE Previous Extended User s Manual 7188 I 7188EG 2002 V1 0 87 10 2 Data Backup Data stored into the value will always hold even power is dead unless the value is updated The EEPROM of 1 7188 I 188EG controller can be read freely however be written only about to 100 000 times To read a value from the EEPROM the following functions can be used EEP B R Reads one boolean EEP BY Reads one byte _ WD Reads one word 2 bytes signed EEP Reads one integer 4 bytes signed To write a value to the EEPROM should remove the protection of the EEPROM first and then write operation is possible The following functions can be used EEP EN Removes the protection of EEPROM EEP PR Set the protection of EEPROM B W Writ
71. ger the byte value returned There are 24 byte arrays that can be used Each array can store up to 256 bytes Example Save 4 hexadecimal values of 41 42 43 44 to address 1 to 4 of No 5 array is declared as a boolean Read 4 bytes from address 1 to 4 of array 5 write TMP COMWRITE 3 ARRAY R 5 ii them to COM3 END FOR th End action ii is declared as an integer variable Goto step 2 after 1 sec to write to COM3 again User s Manual 1 7188 7188 2002 V1 0 96 ARRAY W Description Function Save one byte to a byte array Arguments NUM J integer array ID to be operated valid range values from 1 to 24 ADR __ integer address in the array where the byte is to be stored valid range values from 1 to 256 DATA integer the byte value to be saved to valid range values from to 255 Q boolean if OK return TRUE else return FALSE There are 24 byte arrays that can be used Each array can store up to 256 bytes Example Refer to the example ary n NUM Description Function Read one integer signed 32 bit from an integer array p Arguments NUM J integer array ID to be operated valid range values from 1 to 6 ADR _ integer address in the array where the integer is to be stored valid range values from 1 to 256 DATA integer the integer value returned There are 6 integer arrays that can be used Each array
72. hange it to be represented in decimal format To do that is as below Modbus SCADA addressing map Ede Edit Options Help Hexadecimal User s Manual 7188 I 7188EG 2002 V1 0 68 IMPORTANT NOTE REGARDING MODBUS NETWORK ADDRESSING The Modbus network address definition scheme is sometimes different between devices and other software programs The difference is typically that the other programs may assign a network address number that is one 1 less than that of the 1 7189 I 188EG controller system Known addressing disparities include LabLink and Hitech HMI software programs and devices If you are assigning a network address of B hexadecimal of these products the I 7188XG I 188EG network address should be set to C A network address of 2 should be associated with a network address of 3 in the 1 7188 1 7188 controller system HMI or devices such as lconics Citech Wizcon Kepware s OPC server Intellution s iFix Wonderware s Intouch National Instruments Labview and ICP DAS s Touch 200 Touch 250 Touch 506 Touch 509 and Touch 510 do have the exact same addressing scheme as the 7198 I 7188EG controller system ICP DAS has not been able to test every possible HMI software program or hardware device that has Modbus addressing capability lf you are trying to connect your HMI software program or hardware device with Modbus to an I 188XG 7188 controller system
73. he driver of the correct version into your 7188 folder For example version 1 03 7188 copy Napdos ISaGRAF 188eg Driver 1 03 isa 188e exe to 1 188 7188 copy Napdos ISaGRAF 7188eg Driver 1 03 autoexec bat to 1 18 7188 copy Napdos ISaGRAF 7188xg Driver 1 03 isa 188 exe to 188 isa 188 exe copy WapdosMSaGRAFV 188xgWDriverM 03Xautoexec bat to 188 autoexec bat 9 Power off the I 7188XG 7188EG controller connect pin INIT to GND and then power it up 10 Type del and reply y to delete the current driver 7188 del Total File number is 2 do you really want to delete y n 11 Type load then press ALT E and then type autoexec bat 7188 gt load File will save to 8000 0000 StartAddr gt 7000 FFFF Press ALT E to download file Input filename autoexec bat Send file info total 1 blocks Block 1 Transfer time is 0 329670 seconds Back to Terminal mode 12 Type load again then press ALT and then type isa 188eg exe for I 7188EG while isa 188 exe for 1 7188 6 It will take about 55 seconds to finish 8000 load File will save to 8003 0002 StartAddr gt 8000 0031 Press ALT E to download file Input filename isa 188e exe or isa 188 exe User s Manual 1 7188XG 7188 2002 V1 0 124 Send file info total 1070 blocks Block 1070 Transfer time is 54 505495 seconds Back to Terminal mode 13 Type dir to make sure autoexec
74. ign a network address number User s Manual 1 7188XG 7188 2002 V1 0 65 ISaGRAF ST Programs b File Make Project Tools Debug Options Help ROS SaGRAF ST_INTER Global booleans File Edit Tools Options Help Sx Od Note LLLI The value displayed Real fi always hexadecimal QUT _ Boolean Variable Extended When you click on the Store button you will see that ISaGRAF Global Variables window will now be updated with the new network address for the variable ISaGRAF ST_INTER Global booleans 1012 File Edit Tools Options Help Ope Booleans Integers Reals Timers Messages FB instances Defined swords BE Bd 000S JRealnputsl D input D AA 0000 Real Input 2 put Z Real Input 3 t Real Gutput 1 Real Output 2 Real Output 3 put put D1 Real Input 1 00005 input false true The second method for assigning network addresses to variables requires that you declare the variables BEFORE you assign them This method allows you to assign numerous network address variables before you link them to an ISaGRAF program User s Manual I 7188XG I 7188EG 2002 V1 0 66 _ Programs
75. input an hexadecimal integer from the S MMI When TRUE Process amp Display Value To S MMI Initial Value Displayed On S MMI Minimum Value Is 0 maximum 15 162FFFF Number Of Digits To Display Valid Range From 1 To 5 When Rising From FALSE To TRUE Add 1 To The Currently Displayed Digit When Rising From FALSE To TRUE Subtract 1 From The Currently Displayed Digit When Rising From FALSE To TRUE Shift Left 1 Position From Currently Displayed Digit When Rising From FALSE To TRUE Shift Right 1 Position From Currently Displayed Digit The Displayed Integer Value After Operation Example Inp16led ST equivalence INPTGLED TRUE 1622F04 4 UU FALSE LL FALSE declared integer variable UU LL are declared as boolean variables be linked to push4key board User s Manual 1 7188XG 7188 2002 V1 0 110 Description long wd Function block Convert one integer to two words Lo Long Hi Arguments LONG integer the 32 bit integer to be converted LO integer the low word value after the coversion valid from 32768 to 32767 HI _ integer the high word value after the conversion valid from 32768 to 32767 MBUS Description Function block Read 8 bits booleans from the Mdobus device Use Modbus function code 1 Arguments SLAVE integer slave No of the Modbus device valid range from 1 to 255 ADDHR integer the starti
76. ions Help Zee Begin NE Simple Test Program Begin Test Ladder Diagram A PC PLC Link Parameters dialog box will appear as shown below From here select the Ethernet communications option and click on the Setup button User s Manual 7188 I 7188EG 2002 V1 0 19 PC PLC link Time out ETHERHET Once you have clicked on the Setup button an Ethernet Link Parameters dialog box will appear Set the Port Number to 502 and enter in the Internet address IP of the I 7188EG controller link parameters Internet address Port number The Workbench uses the WIHSOCK DLL library TCP IP communications Ensure that this file is correctly installed on the hard disk Once you have entered the appropriate information click on the OK button and now you have configured your PC to communicate with the I 7188EG through the Ethernet port 1 3 5 Multi Clients Connection to The l 7188EG Each 1 7188 has an IP address and with a fixed Ethernet port No 502 Up to 5 PCs can link to one I 7188EG throughout Ethernet Modbus TCP IP protocol Another PC or MMI can link to COM1 RS232 port Modbus protocol Therefore the maximum number of clients can be linked 15 6 Modbus TCP IP PC HMI Modbus I 188EG IP 1 IP2 User s Manual 7188
77. ith additional Man Machine Interface MMI devices such as touch screen displays ICP DAS provides a full line of touch screen displays such as the Touch series screens The models in the product line include the Touch 200 Touch 250 Touch 506 Touch 509 and Touch 510 MMI products Touch RS232 200 250 906 509 510 l 188XG 7188EG RS232 COM1 RS232 TXD 2 Mc E Mo RXD 3 RAD GND5 GND CTS 7 RIS User s Manual 1 7188XG 1 7188 2002 V1 0 24 1 7 Using 1 7188 Expansion Boards The I 7188XG 1 7188 can plug an I O Expansion board inside the main body To install it user have to loosen screw remove the shell of I 7188XG 7188 The supported I O expansion boards are as below It will be more X107 6D amp 7D 0 X202 7 A D 0 20mA X203 2 A D 0 20mA 2 D I amp 6 D O X303 1 A D 5V 1 D A 5V 4 D I amp 6 D O X304 3 AID 5V 1 D A 5V 4 amp 4 D O X305 7 AID 5V 1 D A 5V 2 amp 2 D O X310 2 AID 0 10 or 0 40mA 2 D A 0 10V 3 D I amp 3 D O X503 1RS232 5 wire RTS CTS RXD TXD GND COM3 X504 1RS232 5 wire COM3 amp 1 RS232 9 wire X505 3RS232 5 wire COM3 5 X506 6 RS232 3 wire RXD TXD GND COM3 COM8 X507 1 RS422 TXD TXD RXD RXD COM3 4 D I amp 4 D O X508 1 RS232 5 wire 4 amp 4 D O X509 2 RS232 3 wire COM3 4 D I amp
78. ive use the Windows Explorer and go to the CD ROM drive where the Workbench CD is installed then double click on the install bat file listed on the ISaGRAF CD If the install bat file is not found on your ISaGRAF CD then double click on the ISaGRAF exe file to start the installation process Once you have started the install bat file a dialog box will appear as shown on the next page Select the language version of the ISaGRAF software program you would like to use and then press the Install button The English version is used on all subjects and examples throughout this manual xj pali AF Discur ation 4 0 lc 15990 20060 interested l SalaHA amp F is m ademni of CJ Pnitermmabionol The first dialog box to appear allows the user to define what drive and subdirectory the ISaGRAF program will install into x Install fSaGRAF 24 The hapa h will be inatalled on the Following directory you wand to the workbench on anmolhes dick pleata change thas pathname Init ali on m EN NU Cancel The next dialog box asks user how much of the ISaGRAF program to you wish to install By default it is best to allow all of the ISaGRAF programs to install User s Manual 7188 I 7188EG 2002 V1 0 9 Instali I5aGRAF 3 4 program Install sample application
79. moj ref 71074 B 016 ma SWI 2 Swe 3 amp SHUT EN 6 7 6 xl User s Manual l 7188XG 7188 2002 V1 0 47 To connect the Output attributed variables to X107 click on and then double click on channel 1 on the right Then select the name and click on Connect Once you have completed making the input I O connections remember to click on the SAVE icon to save the connections that have been created for the example program SIMPLELD 10 connection File Edit Tools Options Help mmm tse mm x10 2 mi REF 71078 DIB 007 gt 71 I channel 1 3 4 Connect SIMPLELD 10 connection File Edit Tools Options Help mtm Ga o zm x10 DIB ne Remember B 007 n OUTO2 to click on ol OUTD3 save p 4 6 E IMPORTANT NOTE All of the Input and Output variables MUST be connected through the I O connection as described above for any program to be successfully compiled Only the Input and Output variables will appear in the I O Connections window User s Manual 1 7188XG 7188 2002 V1 0 48 2 1 3 Compiling The Example LD Project For ANY AND EVERY ISaGRAF program to work properly with any of 7188 718
80. ng Modbus address to read boolean Ok return TRUE else return FALSE B1 B8 boolean the 8 boolean values that have been read Note The total number of MBUS B blocks that can be used in ISaGRAF project is to 64 Example Refer to Chapter 8 User s Manual 1 7188XG 7188 2002 V1 0 111 MBUS W Description Function block write 1 to 4 bits booleans to the Mdobus device Use Modbus function code 5 when NUM W 1 Use Modbus function code 15 when NUM W 2104 Arguments SLAVE integer slave No of the Modbus device valid range from 1 to 255 ADDR integer the starting Modbus address to write NUM W integer the number of bits to write valid range from 1 to 4 ACTION boolean oet true to write set FALSE to do nothing B1 B4 boolean bits to write Q boolean Ok return TRUE else return FALSE Note The total number of MBUS B W blocks that can be used in one ISaGRAF project is up to 64 Example Refer to Chapter 8 MBUS N R Description Function block Read 8 words 16 bit integer from the Mdobus device Use Modbus function code 3 Arguments SLAVE integer slave No of the Modbus device valid range from 1 to 255 ADDR integer the starting Modbus address to read Q boolean Ok return TRUE else return FALSE N1 integer the 8 word values that have been read valid range values from 0 to 65535 Note The total number of MBUS blocks that can be used in one
81. oard that has 6 digital inputs and 7 digital outputs all on the same board To begin the linking I O board process double click on the slot that you want to associate an board to ISaCcrE AF 51 Programs Eile bake Exojgct Tools Debug Options Help E B ys x we um Ha VO connection connection ppm Eile Edit Tools Gptions Help E ES p m 7000 7000 lOs Com3 COMA fbus m lt New gt Set as Fbus Master tbus_s lt New gt tiet as Fbus slave Cancel Note Library Boards t Equipments x304 4DO ADI for 71 s6x6 EX If you link board to an incorrect slot first click the slot number you wish to correct then just click on the Clear Slot icon to delete the connection The connection is now cleared and now you can make a connection to the desired slot location User s Manual 7188 I 7188EG 2002 V1 0 61 3 1 2 Linking Input amp Output Board Variables All of the input and output board variables or names must be linked connected in the I O Connection window Click on the slot you wish to link the variable to then double click on the channel or point number on the right hand portion of the I O Connection window Lastly choose the variable name you wish to link to and then click on the Connect button IMPORTANT NOTE Remember that
82. oards such as the bus 000 and mbus functions In the below example I O connection we are using the l 188EG controller system that has the X107 expansion board installed and has connected to some 7000 modules please refer to section 1 4 8 chapter 6 olot 0 X107 expansion Board 6 digital inputs amp 7 digital outputs Slot 2 7000 for l 7000 amp 87 remote I O modules File Edit Tools Options Help PRP 1 m x107 g The second example is using the l 7188XG controller system has the the X107 expansion board installed and the l 7188xb is the built in one Ch and one Ch D O inside the 7188 controller olot 0 X107 expansion Board 6 digital inputs amp 7 digital outputs Slot 1 1 188xb built in one Ch one Ch D O inside the l 188XG w ISaGRAF 1 VO connection File Edit Tools Gptiens Help 0 107 EB i 7188xb User s Manual 7188 I 7188EG 2002 V1 0 60 3 1 1 Linking Boards The 7188 1 7188 controller library defines two basic types of real I O boards Boards and Equipments The Boards selection is for I O boards are single type meaning that all of the channels on that board are of a single type and attribute The Equipments selection is for boards that are multi type which means boards that have multiple types such as the X107 digital 1 expansion b
83. of the I 7188XG amp 1 7188 controller with the appropriate libraries Please insert the library CD into your CD ROM drive The following details the installation process for the operating systems that support the ISaGRAF Workbench program oetting Up The Libraries For Windows 95 98 Windows NT amp Windows 2000 Operating Systems Click on the Windows Start button then click on the Program button then click on the ISaGRAF button then click on the Libraries button as shown below A When you click on the Libraries icon the following window will open Sar AF Libraries E D xj Offer Help Cmdr nes chil Gha aC Iniernatianal e qM Cw o Nw Example ad boolean inpet using block ut mode C funciona C mie MES functions CJ 32 nb ad chanmels 1 1609 nate Makes s read 2 x B bits 16 chola chsnnmels sottes to the wpec ied address When ISaGRAF Libraries window opens select Boards from the drop down menu just below the file menu bar Next select the Tools option from the main menu bar then select Archive from the file menu bar as shown below User s Manual 1 7188 1 7188 2002 V1 0 12 Example Of boltan ipm using 13195 4 16 Wakes a read x bits 16 small access b
84. or window click on either the SW1 or SW2 button in the I O Simulator window Es ISaGRAF SIMPLELLCLDH Quick LD Program File Edit Options Help TRE TEE TEE TEE File Tool Options Help In the example above you see that SW1 button has been turned on which allows the logic power flow to go true for the example LD program When either SW1 SW2 15 energized their respective green buttons are pushed in the I O Simulator window and the SHUT switch button IS NOT on button 3 remains off this creates a true state for the logic to flow through the example LD circuit Now OUT1 OUT2 OUT3 will now turn on and off in one second intervals as defined by the 1 variable User s Manual 7188 I 7188EG 2002 V1 0 52 You can adjust the TMR1 variable while the program is running accomplish this click on the Dictionary icon in the ISaGRAF Quick LD Program window which will open the ISaGRAF Global Variables window as shown in the first two pictures below ISaGR AF SIMPLELD LDH Quick LD Program File Edit Options Help TT AL C t Dictionary onary Fie Tools Options Help sw a TMR1 zag OTOI E T pups ouroz it Too Options Help pes Oe Booleans Integers Reals Timers Attrib Messages FB instances Defined Addr Value internal 0000 t 500ms Write variable
85. ords E m F wu Note Variahle s Imtal State At Program Start Is Provided At The Bottom Of The Screen SW Switch L NEM 0000 input false true NOTE You MUST make sure that the variable you have declared has the desired Attribute assigned If you decide that you want to change a project variable s attribute just double click on the variable name and you can reassign the attribute for the variable Using the same method described above declare the additional Boolean variables for this example program SW2 and SHUT When you have completed the Boolean variable assignments the Global Boolean window should look like the example below User s Manual 7188 I 7188EG 2002 V1 0 37 SIMPLELD ET There three outputs used in this example program named OUTO1 2 OUTO3 ISaGRAF provides a quick and easy way to declare like variables that are sequentially ordered begin this process click on the Quick Declaration icon and enter in the output number that you will start with in the Numbering from and To field this example uses from 1 to 3 Enter the oymbol name for the output variables being declared and lastly set the attribute to Output ai B SAPULUH Glnhal booleans Tod Options Ls ao e m 4 Boolean tegere mers FB Quick dexileralimn
86. r Value Of Position Display 2 LED3 Integer Value Of Position Display 3 LED4 Integer Value Of Position Display 4 LED5 Integer Value Of Position Display 5 LED6 Integer Value Of Position Display 6 Integer Value Of Position Display 7 Refer to section to see the display char of LED1 LED5 LED6 Example set led TRUE RUN 1000110 500 5 User s Manual 1 7188 7188 2002 V1 0 114 SYSDAT Description Function block Read system year month day and date in Arguments _ Integer Year Returned Example 2002 2003 2010 Etc Integer Month Returned 1 Jan 3 March 10 October Etc DD _ Integer Day Returned Valid Range From 1 To 31 WW_ Integer Date Returned 1 Monday 4 Thursday Sunday Etc Example Y1 M1 D1 and W1 are declared as integer variables SYSDAT_R ST equivalence DAT 1 call DAT R1 Y1 DAT 1 get year 1 DAT R1 MM get month D1 DAT R1 DD get W1 DAT R1 WW get date is declared as FB instance with typed SYSDAT User s Manual 1 7188XG 7188 2002 V1 0 115 SYSDAT W sysdat w Description Function block Set system year month and day Arguments Boolean Set System Date When Rising From FALSE To TRUE YY_ Integer Year To Write Example 2002 2003 2010 Etc MM_ Integer Month To Write 1 Jan 3
87. re driver to the new version Refer to Appendix C Technical Service Please contact the local agent or email to service icpdas com New information can be found at www icpdas com User s Manual 1 7188 7188 2002 V1 0 5 Specification ISaGRAF Embedded Ethernet Controller 7188 amp l 7188EGD General environment Operating temperature 25 C to 75 Storage temperature 40 C to 85 C Humidity 0 to 95 Built in Watch Dog Timer 1 6 seconds Built in power protection amp network protection circuit Program download from PC Built in expansion bus interface System CPU Am188 ES 40M Hz or compatiable SRAM 512K bytes FLASH ROM 512K bytes COM port COM1 RS 232 COM2 RS 485 Ethernet 10 BaseT Built in RTC NVRAM amp EEPROM Program download from COM1 amp Ethernet Built in 64 bits hardware unique serial number Supports ISaGRAF Programming languages LD FBD SFC ST 8 FC Real Time Clock Year 2000 compliance Gives seconds minutes hours date of the month Gives month and year from 1980 to 2079 NVSRAM 31 bytes battery backup data valid up to 10 years EEPROM 2048 bytes 8 blocks each block has 256 bytes Data retention gt 100 years 1 000 000 erase write cycles Flash Memory 512K bytes Erase unit is one sector 64K bytes 100 000 erase write cycles 1 RS 232 TXD RXD RTS CTS GND Communication speed 115200 max Supports Modbus Serial Protocol for Connecting PC HMI amp Touch pan
88. reates new sub directory corresponding to the project group name in the c isawin sub directory To start the new project either double click on the new project name or click on the new project name the name will be highlighted to select the new project group and click on the Select button User s Manual 7188 I 7188EG 2002 V1 0 34 2 1 1 2 Creating New ISaGRAF Project To start a new ISaGRAF project click on the Create New Project icon and then enter in the name for the new project You can then enter additional information for your project by clicking on the Edit and then Set Comment Text menu as illustrated below 4 ISaGRAF Project Management Edit Project Tools Options Help 2 demo 1 im r control TON TOF QLD Create new project od reset timer TSTART TSTOP ST QLD EH E m demo 03 RAN system date amp time SYSDAT_R SYSDAT Vv SYSTIM SYSTIM Eg demo 04 Calculate empty cycle time 1 QLD demo 05 emere project E Eg demo 06 _ a Reference Author 10 configuration Date Of Creatio none E Version Numbe Project Management a ioj x File Edit Project Tools Options Help Set comment kext 25 DemoPgm antro TP TOF Toggle separator Sort and reset timer TSTART TSTOP ST
89. rk has a unique NE T ID 520 1 5485 19200 8 1 RS232 PC HMI I 188XG COM1 RS 485 Pin Wiring Assignments l 7520 5232 5485 I 7188XG I 7188XG I 7188XG 39232 Convertor COM1 RS485 COM1 RS485 COM1 RS485 D1 D1 D1 DATA Dl D1 v D1 Note Please make sure each I 7188XG on the same RS485 network has a different NET ID Please refer to Section 1 3 1 to set the NET ID User s Manual 1 7188XG 1 7188 2002 V1 0 18 1 3 4 Connecting Your PC I 7188EG Ethernet Port The ethernet port of the I 7188EG controller provides Modbus TCP IP protocol It can be used to connect to the PC HMI software Up to 5 PC HMI can talk to one 1 7188 at the same time through the ethernet port PC HMI pg Ethernet o 7188 Port No 502 Before you can download ISaGRAF application to the 1 7188 controller using the Ethernet port you must first setup the Ethernet port to properly communicate with the host PC At the 1 7188 Set IP Mask and Gateway address Refer to Appendix B or CD_ROM NAPDOS ISaGRAF 7188EG driver setip txt At your PC First open an ISaGRAF project and select a program you wish to communicate between your PC and the 1 7188 controller system Next select the Link oetup button on the project screen as shown below ISaGRAF TEST Programs inl xl Make Project Tools Debug Opt
90. s w install libras v help Files Once you have selected which programs and applications are to be installed the installation process begins Just wait the installation process to complete To begin the ISaGRAF 3 x software program click on the Windows Start button then on Programs and you should see the ISaGRAF program group as illustrated below 3 4 Diagnosis zd Libraries Projects Read Report NOTE You must install the hardware protection device dongle provided with the ISaGRAF software on your computers parallel port to for the ISaGRAF program to achieve fully authorized functionality While using ISaGRAF and the dongle is plugged well if the Help About says Maximum number of IO variables 32 it means ISaGRAF workbench cannot Project Managemen File Edit Project Took Options Help Ey Ez 3 EE ff ae Users evide creation IS aGHAF Workbench ersion 3 41 Copyright 1990 2000 CI International Configuration Reference Wo Maximum number of 10 variables 32 find the dongle well Please reset your PC and then check the Help About again If it still displays Maximum number of IO variables 32 the dongle driver may not be installed well Please execute the ISaGRAF CD Sentinel5382 setup exe for ISaGRAF 80 or Sentinel setup exe for other ISaGRAF version and then reset the PC
91. sely resembles the electrical schematics that an electrician or technician may use to diagnose and troubleshoot an industrial process controller system The LD language enables the programmer to describe the conditions and modifications to Boolean data by placing graphical symbols to represent hardware devices used in a process control application A Simple Ladder Example Program The following is a step by step example on how to create a ladder logic hence forth referred as LD program using the IsaGRAF Workbench software program provided with the 1 7189 I 188EG controller system In the example two normally open switches are programmed in parallel illustrating a Boolean OR operation a normally closed switch acting as a shutdown or emergency stop switch followed by a timer set to one second When the logic flow becomes true starting at the left power rail through all the input path logic then three 3 outputs are turned on User s Manual 1 7188 7188 2002 V1 0 31 Variables Used In The Example LD Program SHUT Boolean Input Shutdown input Output 1 OUTO2 Output 2 OUTO3 Output 3 Outputs LA 0 O TMR1 Timer Internal Time Period of blinking initial value is set at Ims Ladder Logic Program Outline Process Operation Actions 1 Monitor Switch 1 Normally Open amp Switch 2 Normally Open 2 Monitor Shutdown Switch Normally Closed 3 If Either Switch 1 2 Is True AND Shutdo
92. ser to create an ISaGRAF program that can operate a large number of different PLC controller systems It is the responsibility of the PLC hardware manufacturer to embed ISaGRAF kernel in their respective controller for the ISaGRAF program to operate properly The ICP DAS product line of I 7188XG I 7188EG amp l 8417 8817 8437 8837 series of controllers has the ISaGRAF kernel embedded creating a powerful and flexible industrial controller system Now that you have created the ISaGRAF example program now you must connect the LD1 example program to the 1 7188 1 7188 I O controller system Click on the I O Connection icon as shown in the below picture and the I O Connection window will appear as shown in the next illustration In this example if you have a X107 I O expansion board please refer to cataloge or section 1 7 you should double click on the 0 slot for X107 however If you don t have X107 just double click on any slot for xboo io simulate boolean I O then Set Board Equipment window will appear Select Equipment and double click on X107 or 10 User s Manual 1 7188XG 1 7188 2002 V1 0 45 RAF SIMPLELD Programs File Make Project Tool Debug Help P B 2 59 connection Begin MH ABS om Sar AAF SIMPLELD connection File Edit Tools Options Help E mtm te a select baoard
93. stem provides capability to integrate with ICP DAS s l 7000 and 87 87 4 87K5 87 8 87K9 series modules This functionality to interface with these modules expands the capability of the l 188XG 7188EG controller series products You must first make sure that the 1 7188 I 7188EG I O libraries have been installed please refer to Section 1 2 for the library installation procedure and refer to Section 1 4 for connection instructions between the 1 7189 I 188EG controller system to the 000 and 87 series modules 6 1 Configuring The l 7000 amp 1 87 Modules To begin configuration of the l 7000 and 87 series modules to the I 7188XG I 188EG controller system use the 7000 Utility program to set up l 7000 and 87 modules Galimaufry D StorageTools SEP Uninstall 7000 Utility 53 Hardcore Visual Basic Sleuthhound Pro 3 2 S HTML Help Workshop S Total VB Tools US ImpulseStudio 3 0 Turbo Setup Pro Js ISaGRAF 3 4 123 Turbo PMAC Setup US Jase Software 0500 Logitech Meuse Ware 24 Urad Matrikon LER d dj MCSD Training VergonStamper D Ej Mroangelo WebFerret J Microcim 23 Window Washer G Mixo IDE Fa Microsoft NET Framework 50 F Morpheus chesi 21 MSDN HelpDesk Sample image Expert
94. tes and range from 2 147 483 648 8000 0000 hexa to 2 147 483 647 FFFF in hexa It is normally used to describe the value of internal integer variables declared on ISaGRAF workbench All integer variables declared on ISaGRAF are signed 32 bit format however the integer variable which assigned with a network address will only occupies 1 word 2 bytes in the Modbus transportation format Since a long word occupies 2 words 4 bytes to Read Write long word through Modbus the network address assigned to the integer variable has to be followed as below W ISaGRAF SA Global mtegers rea s V1 16 assig ned to a network Edit Tools Options Help address 1 If the network xBs address 2 is not assigned to NE eee any other variable V1 will occupy a long word 4 bytes in Booleans Integers Reals Timers Messages FB instances Defined words Vi the Modbus transportation y formate v However if 2 is assigned to vi one another variable V1 will Vr only occupy one word 2 bytes in the Modbus transportation vb formate In this example V1 V2 V3 V6 V7 and will occupy 4 J bytes however V4 and V5 only occupy 1 word Lowest word in the Modbus transportation formate User s Manual 1 7188 7188 2002 V1 0 70 read long word value of V1 is to read 2 words using modbus function 3 please refer to section
95. the Restore button the function block will be added to the ISaGRAF Workbench window Archive C function blocks Workbench Archive Backup Close Help Compress Archive location 1SSCUOTTXDESKTOPSICPDAS Browse User s Manual 7188 I 7188EG 2002 V1 0 94 Appendix A 3 7 Segment LED Reference Table The following table provides the reference definitions for programming 7 LED indicators on the 1 7188 I 7188EG controller system 01023010 LEDZ LED4 LED6 LED 6 Set to TRUE to display colon LED 7 Set to TRUE to display period above LED 4 Display Table LED 1 Through LED 5 Displayed Given Displaye Given Displaye Given Char Value d d Value Char Char 4 O O Q OQ N O OO gt O UCr 2 250 UC 235r a Others 0 1 2 3 4 2 6 7 8 9 d E F 0 1 2 3 User s Manual I 7188XG I 7188EG 2002 V1 0 95 Appendix A 4 Function Blocks For I 7188XG 7188EG The following function blocks have been developed specifically for the l 188XG I 188EG controller system ARRAY R array r Description Function Read one byte from a byte array NUM ADR DATA Arguments NUM integer array ID to be operated valid range values from 1 to 24 ADR _ integer address in the array where the byte is to be stored valid range values from 1 to 256 DATA inte
96. the EEPROM will consume a lot of CPU time of Il 188XG I 7188EG controller system The following approximate time is for each function being called Recommend to read values from the EEPROM at one time when the I 7188XG l 188bEG is powered up and then updated the associated address in the EEPROM when the value is changed User s Manual 1 7188XG 7188 2002 V1 0 89 Chapter 11 ISaGRAF Programming Examples The ISaGRAF programming examples are installed on the same CD ROM as the Il 188X 1 7188 I O library that you receive with the controller You will find the programming example files in the Napdos lISaGRAF 7188XG Demo Napdos ISaGRAF 7188EG Demo sub directory on the CD ROM When you install the ISaGRAF programming example for the 1 7188 I 188EG controller system it is recommended that you create an ISaGRAF Project Group to install the demo program files into A 15aGRAF Project Management File Edit Project Tools Options Help Eg bottlef Flow Chart Simulation of botf 2 E demo with Guick LD programming a EH demonstatres array management functions Project groups EN xl Default vapi samples emp Hew group Close H ame Path c XigzawinlXD emo Location 5 ub dir Hrowze To install the demo programs into the project you have created open the ISaGRAF Project Management windo
97. the Modbus protocol in an LD program Mbus Reads 8 bits booleans from modbus devices Mbus b w Writes 1 to 4 bits to modbus devices Mbus n r Reads 8 words short integers from modbus devices Mbus n w Writes 1 to 4 words to modbus devices NOTE The maximum number of each Mbus x x function block that can be used with 1 7189 I 188EG controller system is 64 Modbus Example Function 1 Mbus b The following example the Mbus b r function block is reading five 5 bits from a slave Modbus device with a NET ID address of 1 with the Modbus address starting from 1 In this example the results of B1 contains the value of the Modbus address 1 B2 equals the value of Modbus address 2 etc B5 equals the value of the Modbus address 5 User s Manual 1 7188XG 1 7188 2002 V1 0 82 Modbus Example Function 2 Mbus b w The following example of the Mbus b w function block is writing one 1 bit to a slave Modbus device with a NET ID address of 1 The Mbus b w function will only write this one bit when the ACTION line is true In the example below the resulting value of B1 is written to the Modbus address 16721001 or 4097 of that Modbus device when the ACTION line is true The value of Stat1 is connected to the output coil and if the operation is successful will be true otherwise the value of Stat1 will be false If the ACTION input keeps at the status of TRUE it
98. this example turns 2 3 Action Write Hello to COM4 IMP COMSTR Wid Hello End action 1 fbe Turn to FALSE to write another string a i o 2 COMWRITE comwrite PORT Description DATA A Function Write one byte to a COM port Argument PORT_ integer port ID 2 COM2 3 COM3 8 COM8 DATA integer the byte to be written valid range values from 0 255 Q boolean Ok return TRUE else return FALSE User s Manual 1 7188 7188 2002 V1 0 102 CRC 16 Description Function Block Argument NUM_ integer ADR_ Integer SIZE _ integer CR integer CR L integer Calculate checksum CRC 16 byte array ID to be operated valid range values from 1 to 24 starting address in the array which is to be calculated the number of bytes to be calculated the returned high byte of the CRC 16 after calculation the returned low byte of the CRC 16 after calculation There are 24 byte arrays that can be used Each array can store up to 256 bytes Example TMP is declared as a boolean ii and CR as integers CRC16 1 is declared as FB instance of type CRC 16 Action P FOR i 3 TO 6 DO TMP COMWRITE 3 ARRAY R 5 ii END FOR CRCI6 1 5 3 4 TMP COMWRITE 3 CRC16 1 C TMP COMWRITE 3 CRC16 1 C End action Ts pmo Save 4 hexadecimal values of 41 42 43 44 to address 3 to 6 of No 5 array Read 4 bytes from address 3 to 6 of array No 5
99. tion EEP B W EEP BY W EEP WD W and EEP N W functions should not be used to write to the EEPROM more than 100 000 times User s Manual 1 7188XG 7188 2002 V1 0 108 INP10LED Description Function Arguments RUN Boolean VAL Integer NUM Integer U1 _ Boolean D1 Boolean L1 _ Boolean H1 _ Boolean VAL O integer Example inp 10led input an decimal integer from the 5 When TRUE Process amp Display Value To o MMI Initial Value Displayed On S MMI Minimum Value Is 0 maximum 15 99999 Number Of Digits To Display Valid Range From 1 To 5 When Rising From FALSE To TRUE Add 1 To The Currently Displayed Digit When Rising From FALSE To TRUE Subtract 1 From The Currently Displayed Digit When Rising From FALSE To TRUE Shift Left 1 Position From Currently Displayed Digit When Rising From FALSE To TRUE Shift Right 1 Position From Currently Displayed Digit The Displayed Integer Value After Operation inp 10led TRUE RUN FALSE ST equivalence INPTOLED TRUE 100 4 UU DD LL FALSE declared integer variable UU DD LL declared as boolean variables be linked to push4key board User s Manual 1 7188XG 7188 2002 V1 0 109 INP16LED Description Function Arguments RUN_ Boolean VAL Integer NUM Integer U1 _ Boolean D1 Boolean L1 _ Boolean H1 Boolean VAL O integer
100. to a normally closed contact i AF SIPIPLELTELD EL Quick LD Program Fie Tools Options sI mg Click on the F7 Block On The Right icon to function block which will be used for the timer to the right of the normally closed contact m F D abAF SIPIPEELLUCLDE Duick LD Presgram Pie Ede Gophers Hele m Z ke Fic FRE FF D FE m Double click anywhere inside the new function block the Function Block assignment window appears Select the BLINK type function block for the type of timer we are using in our example program To learn how the BLINK function User s Manual 7188 I 7188EG 2002 V1 0 42 you click Info button for a detailed of its functionality Function pea tbe Trom aem od Loc verla ariy of 8 iy karpapi inna Tari Bara kong ES url Ex get cole at srapami pania avere 15 bit 1 vcr 4 carre booker OOo quere block magis gei Coe ese CORCA al Hiz Now move your cursor to the output coil on the right side of the LD program Click on the F5 Coil icon two times to add two ad
101. to open the I O Connections screen Another VERY helpful window you can open is the Quick LD Program window From this window you can observe the LD program being executed in real time SIMPLELD Debug programs Project Tools Options Help B Begin k IE D Program Begin LD1 Ladder Diagram In the window below the SW1 switch is pressed which is creating a true logic state for the outputs to be turned on and off blinked at a one second interval The Quick LD Program window shows the entire ladder logic program in REAL TIME and is an excellent diagnostic tool for development and troubleshooting User s Manual 7188 I 7188EG 2002 V1 0 57 SIMPLELD 1 0 connection Fla Toc Heb ref 11 1 SWI TRUE Swich SWESFALSE Seach 2 A SHUT FALSE C Shutdown Emergency Slap gt 4 Li U i z 5 E 11 PITEETUEETUUETTTTEDTUUITTT A File Opbons b Sv EHLIT SZ Bii s dC CILITD Though there are numerous steps involved in creating and downloading an ISaGRAF program each step is quick and easy to accomplish and the end result is a powerful and flexible control development environment for the I 7188XG 7188 controller systems PRACTICE PRAC
102. value of 2 2 or 3 COM3 Mbus baud Parameter The Mbus baud parameter defines what the communications baud rate setting will be The Mbus baud can be set to 2400 4800 9600 19200 38400 57600 115200 baud rate The default baud rate value is 19200 for the 1 7188 7188 controller system All controllers on the same Modbus MUST be set to the same baud rate Mbus parity Parameter The Mbus parity parameter defines what the communications parity setting will be Setting the Mbus parity parameter to a value of 0 sets the parity to none a value of 1 sets the parity to even and a value of 2 sets the parity to odd Mbus stop bit Parameter The Mbus stop bit parameter defines the number of stop bits will be used in the Modbus communications If the Mbus stop bit parameter is set to 1 this equals 1 stop bit and a value of 2 equals 2 stop bits User s Manual 7188 I 7188EG 2002 V1 0 81 8 2 Programming Modbus Device To access data from a Modbus device you must first make sure the Mbus library function has been installed If you haven t installed the Mbus library refer to oection 8 1 on how to install the Mbus library function Once the Mbus library function has been installed you can program to pass data through the Modbus protocol between 7188 7188EG controller and Modbus devices The following function blocks can be used to pass data through
103. w to select Tools from the menu bar then select the Archive option and then click on Projects 3b Sa RAF Project Management E ali xi Fle Edt Project Took Options Help Bc nr ES bottict B ess Import IL program Dg ED Haray ribars demonsirabes graphic bra graphs ribool demonstrates SF C boolean actions Reference Hf Timer FB CJ Date af creation 8 2 04 User s Manual 1 7188XG 1 7188 2002 V1 0 90 When you click Projects selection the Archive Projects window will open Click on the Browse button to select the drive and the sub directory where the demo files are located NapdosIl SaGRAF V 7188XG Demo the CD ROM To install all of the Demo files click on the demo01 file then press and hold down the Shift key continue to hold down the Shift key and use your mouse to scroll down to last file in the Archive window Click on the last file name from the demo file location and that will select the entire group of demo files Lastly click on the Restore button in the Archive Projects window and all of the demo files Will be installed into the sub directory you have created Archive Projects ul nrklh ni k abi 067 7 Browse User s Manual I 7188XG I 7188EG 2002 V1 0 91 Appendix
104. will continue to write this B1 many times to that Modbus device until it is reset to FALSE If you just want to write one time you can write a LD program similar as the following The MO is declared as an internal Boolean variable MBUS B W statl en User s Manual 7188 I 7188EG 2002 V1 0 83 Modbus Example Function 3 Mbus n The following example the Mbus n function block is reading eight 8 words from a slave Modbus device with a NET ID address of 2 the Modbus addressing starts from 1 In this example the results of A1 contains the value of the Modbus address 1 A2 equals the value of Modbus address 2 etc through A8 which equals the value of the Modbus address 8 The value of is connected to the output coil and if the operation is successful Stat1 will be true otherwise the value of Stat1 will be false Modbus Example Function Z4 Mbus n w The following example of the Mbus n function block is writing three 3 words to a slave Modbus device with a NET ID address of 1 and the Modbus address is starting from 162201 The Mbus n w function will only write when the ACTION line is true In this example when the ACT 1 line is True the value of will be written to the value of Modbus address 168201 of that Modbus device the value of A2 will be written to the value of Modbus address 1672202 and will be written to the value of Modbus address 1672203
105. wn Switch Is Closed Active Blink Timer 4 Turn Outputs 1 2 amp 3 On And Off At One Second Interval Rate User s Manual 1 7188XG 1 7188 2002 V1 0 32 2 1 1 Programming Starting amp Running The ISaGRAF Workbench Program Click on the Windows Start button then click on Programs then click on ISaGRAF 3 4 then click on Projects as shown below 3 h b h h 3 h 4 B h 4 User s Manual 7188 7188 2002 V1 0 33 2 1 1 1 Creating An ISaGRAF User s Group Click on the Select Program Group and then click on New Group then type in the name for the new user s group you wish to create and last click on OK J 4 p Fis Zub Propet Tode mua tp sas i blinkseq fares with var Wo oo mamam bottle Fire Coat dema der with Quick LD pesos mal Prossci From loanni m ria Ladder Progen Punch HII rers prope br propi demones actiones n ehari Fire Cert Tames mon Aclerener Dems F Pru ed groupe Authoe ICP DAS _ Date ad creation ret Versian member 5 E E Descrsptinn Eu B p cui I ELETT ES Note that the name that you give the New Project Group also c

Download Pdf Manuals

image

Related Search

Related Contents

Npaq-Hardware-Handbuch  Habilitation à Diriger des Recherches  Yazoo/Kees YHR-SERIES User's Manual    Casio TE-4000F Cash Register User Manual  Orientia tsutsugamushi の毒力決定因子  {全上 「`〝 =  Scrivener 2.0  Plumatic 2 extra  Olympus E-1 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file