Home

User`s Manual of ISaGRAF Embedded Controllers

image

Contents

1. Check the coming message For ex T1500 will result T1 1500 ms while T0300 result T1 300ms however TAB10 will result T1 0 ms not valid check Ist char is T or not if mid data 1 1 T then extract 4 bytes starting from string position 2 and then convert to an integer TMP v ANA mid data 4 2 valid format if TMP v gt 50 and TMP v lt 9999 then T1 TMR TMP v convert to timer Msg to send Current Tl change to Msg TMP_v ms M2 TRUE else invalid format Trigger to send a report message to sender Msg to send Wrong command Val should be between T0050 to T9999 Current T1 remains at Msg Ana T1 ms M2 TRUE end if ifmd data 1 1 I then end if QI then FAQ 067 Aug 2011 6 ICP DAS ST program snd_msg if message sending status is not busy if Msg_ status lt gt 1 and SMS available then if M1 then alarm triggering Message sending status 0 waiting for a new sending request 1 busy message is processing now 21 The TEXT mode the first parameter is not added L at beginning TMP SMS_send to_who K1 is pushed message is sent successfully M1 FALSE 1 SMS system is not available 2 Timeout No response elsif M2 then Report triggering TMP SMS send phone Msg to send report message back M2 FALSE elsif M3 then Local Language mode please add L at beginning of the phone
2. Variables Trigger to send a report message when a message 1s coming Internal Boolean _ Internal Internal Use the function block blink to trigger L1 the timer is T1 Boolean Internal oe MS available phone Message Internal To who Message Internal nteger nteger nteger teger nteger nteger nteger nteger nteger Internal SUS TS SSS SSS a Operation actions ee O X 1 If K1 is set as true an Alarm message g File Make Project Tools Debug Options Help will be sent Ey wa S eh k 2 If the user send a message in format for ex T0200 or T1500 to the controller the blinking period will change to 200ms and 1500ms And then the controller will response a report message back to the user 3 It will be triggered to send a short message in local language when K2 or K3 is set as true FAQ 067 Aug 2011 4 ICP DAS Begin TC Y msg receive message snd msg send alarm message Begin work Ladder Diagrami I O connection a SaGRAF DEMO 43 I O connection ah Git imps one lis The setting of Com Port a PBeO tl Fk rar Lo aj imj ref 123 cows Com port 4 iP 8xx7 COM4 5 o SM3_available C s WP 84x7 88x7 Com4 5 WP 8147 Com1 5 VP 25w7 23w7 Com3 5 I 8xx7 I 8x37 80 Com4 5 6 u Pac 7186ED Com1 3 4 1 7188EG Com1 3 4 an SMS 1 7188XG Com1 3 4 re Status at J XP 8xx7 CE6 Com5 6 version for EP DAS i 71881 0000fiview A
3. amp time call P1 P2 ANA Target 641 7 8817 8437 8837 l 7188EG FF1T88xG return Q addition of Pl call CFsample Ref integer to get what 1 get year 2 get month 3 get date FAQ 067 Aug 2011 7 ICP DAS 1 4 How to use SMS Message Converter Please download SMS Message _ Converter exe to your desktop form the below FTP site ftp ftp 1cpdas com pub cd winpac 8xx7 napdos isagraf some_utility How to Use Step 1 Enter your words in local language that you want to translate in the first column Step 2 Click the button Copy then Click the button OK to exit MS SHE Message Converter Step Enter the message that vou wank bo convert in the below Box Ke CEE A True Steppe Click the Copy button to copy the Unicode message and then paste it to the 2nd parameter of the SMS send Function in your SaGR4F program ODO46003250F 2 09 A 460420 0B 400540072007 50065 For ex below is bo send How are you in Traditional Chinese once to the phone number 886958321630 when Actioni is True iF Action then Action False TMF SMS send L 88695683271630 4F60597D end if 11 word s entered 52 word s can be added oe kK at Step 3 In the IsaGRAF program press Ctrl V to paste the converted string that we just copied to the second parameter of the function SMS_send ex if Action then Action False TMP SMS send L 886958321630 004B003
4. The length of the second parameter must be less than 255 characters or some data will lose FAQ 067 Aug 2011 9 ICP DAS
5. complex equipment SMS The SMS Message Converter exe tool is for generating the short message in user s local language which can be found from the below ICP DAS s web site ftp ftp 1cpdas com pub cd winpac 8xx7 napdos isagraf some_utility GSM Modem GTM 201 RS232 http www icpdas com products GSM_GPRS wireless GTM 201 htm You may purchase it from ICP DAS or from your local agent Note There is no guarantee that other GSM modems can work with ICP DAS PAC except the GTM 201 RS232 Note Please REMOVE the password setting in the SIM card then plug it into GSM modem or it would not work uPAC 7186EG COM1 3 4 1 7188EG COM1 3 4 1 7188XG COM1 3 4 WP 8147 COMS iP 8xx7 COM4 iP 8xx7 WP 8xx7 COMS GSM cable of WP 84x7 WP 88x7 COM4 VP 25w7 23w7 COMS GTM 201 RS232 VP 25w7 23w7 COM3 GSM cable of I 8xx7 I 8x37 80 COMS I 8xx7 I 8x37 80 COM4 GTM 201 RS232 RXD 2 TXD TXD 3 RXD 2RXD 2TXD GND 5 GND 3 TXD 3 RXD DTR or RTS 4 DSR 5 GND DTR or RTS JTCTS l ae WP 8147 COM1 GSM cable of GTM 201 RS232 2 TXD 2 TXD 3 RXD 3 RXD 5 GND 5 GND FAQ 067 Aug 2011 3 ICP DAS 1 3 A SMS example program The demo project is demo 43 and demo 43a please refer to section 11 1 of the ISaGRAF User s manual to install it to your ISaGRAF workbench It can be download at ICP DAS s ftp site ftp ftp icpdas com pub cd 8000cd napdos isagraf 8000 demo
6. number the content of the second parameter means K2 has been set true in Tranditional Chinese It is generated by SMS Message Converter exe please refer to the next section 17 3 TMP SMS send L to_who 004B00325DF27D9388A B8A2D70BA0054007200750065 M3 FALSE elsif M4 then Report triggering report message back the content is the value of the timer is set as lt T1 gt ms in tranditional Chinese Please refer to the section 17 4 for the To unico function TMP SMS send L to_who 9583720D76848A2D5B9A503C76EES24D70BA To_unico MSG ANA T1 006D0073 M4 FALSE Must disable it set to FALSE after SMS send is called Pr A Must disable it set to FALSE Ge after SMS _ send is called More description of SMS_ sts SMS_send SMS test SMS get SMS gets and To unico Please refer to ISaGRAF s On line Help Library C functions SMS _xxxx Eo Me x A SaGRAF Project Management File Edit Project Tools Options Help E ki ml CE g User s gide tbus mas Language reference mm testi m fbus_sliw m boch_3 mo boct Technical notes a x Referen LLL zal Date of 1 Technical notes Version C functions gt SHS Functions Function blacks sam E functions Liege C function blacks _ g Descript C e obs get SE aT Tate Ta _ 995 author CJ International Get message date and time from controller s date
7. supports 2G GPRS GSM Please insert the SIM card into the SIM card socket of the 8212W card and make sure the antenna has installed well If your PAC is XP 8xx7 CE6 or XP 8xx6 CE6 plug the I 8212W in its slot 1 leftmost I O slot If your PAC is WP 8xx7 or WP 8xx6 or VP 25W 7 VP 25W6 or VP 23W 7 VP 23W6 please plug the I 8212W in its slot 0 Then power on the PAC and run PAC Utility for example run WinPAC utility for WinPAC to setup the MSA1 port of the I 8212W Remember to run File gt Save and Reboot once to save the settings If the PAC is XP 8xx7 CE6 XP 8xx6 CE6 this step is not necessary MSA 1 is already in the XP 8000 CE6 However it is necessary for WinPAC and ViewPAC Make sure your PAC utility is the version 2 0 2 6 or later version before setup the MSA1 port If yours is older version please visit the below web site to download the utility and update it to the System_Disk Tools WinPAC_Utility directory for WinPAC ViewPAC is System_Disk Tools ViewPAC_ Utility WP 8xxx ftp ftp icodas com pub cd winpac napdos wp 8x4x_ce50 system_disk tools ViewPAC ftp ftp icodas com pub cd winpac napdos vp 2000_ce50 system_disk tools The MSA1 port number for the WP 8xx7 and VP 2xW7 is COMB The MSA1 port number for the XP 8xx7 is COM6 WinPAG Utility 210 216 5 F Help Configuration Save Save and Reboot Reboot Without Save W 6 a Slot 9212 Restore Default Settings _ i
8. 25DF27D9388A B8A2D70BA0054007200750065 end 1f Attention Please add L at the beginning of the 1 parameter of SMS _ send to send a short message in local language FAQ 067 Aug 2011 8 ICP DAS 1 5 How to use To Unico to convert number string and ascii string to unicode string Usage TO UNICO convert ascii string to unicode string in PDU mode format Target Target 1 I 8417 8817 8437 8837 I 7188EG I 7188XG Target 2 VP 25W7 23W7 Target 3 uPAC 7186EG Target 4 1PAC 8x47 Target 5 WinPAC 8xx7 8xx6 call MSG_ Message The string to be converted MAX length is 60 return Q Message return value 123ABC gt 003100320033004100420043 45 002 gt 00340035002E003000300032 gt 0021004000230024 1223221211 231 Gflength is 61 gt The string will not be converted exl T1 is a timer variable if Action then Action1 False TMP SMS send L to_who 9583720D76848A2D5B9A503C76EE524D70BA To unico MSG ANA T1 006D0073 end if ex2 Int2 is a integer variable if Action then Action False TMP SMS send L to_who 9583720D76848A2D5B9A503C76EE524D70BA To_unico MSG Int2 006D0073 end if ex3 Real2 is a real variable if Action then Action False TMP SMS send L to_who 9583720D76848A2D5B9A503C76EE524D70BA To _unico real_str2 Real2 2 006D0073 end _ if Attention
9. SMS Short Message Service The iP 8447 8847 uUPAC 7186EG WP 8xx 7 I 8xx7 I 8x37 80 I 7188EG I 7188XG VP 25w7 23w7 and XP 8xx6 CE6 controller can integrate with a GSM Modem to support SMS Short Message Service This allows user to request information or control something from his own cellular phone to the ISaGRAF controller Beside the controller can also send information and alarms with short message in user s local language to user s cellular phone 1 1 Hardware Installation of the I 8212W If your PAC is XP 8xx 7 CE6 XP 8xx6 CE6 or WP 8xx7 WP 8xx6 or VP 25W7 VP 25W6 or VP 23W 7 VP 23W6 please use the I 8212W GSM GPRS card The I 8212W is better than the GTM 201 RS232 And make sure if your ISaGRAF driver fit the following listed version The following ISaGRAF driver version supports the I 8212W acrd XP 8xx7 CE6 1 17 or later WP 8xx7 1 37 or later VP 25W7 23W7 1 29 or later If your application is not only to send receive SMS but also to send data or file via GPRS please refer to http www icpdas com faq isagraf htm gt 143 IiSaGRAF PAC B212W aT ag industrial Quad band 2G GSM GPRS Module WinPAC on us ON N A za f j 4 WP 8Bxx7 XP 8xx7 CE C s a 2 FAQ 067 Aug 2011 1 ICP DAS To use the I 8212W card in the XP 8xx 7 CE6 XP 8xx6 CE6 or WP 8xx7 WP 8xx6 or VP 25W7 VP 25W6 or VP 23W7 VP 23W6 controller first setup the MSA1 port for the I 8212W as below steps The 8212W
10. incon series controllers only LD program work Trigger to send an alarm message when K1 is set as true i l C Trigg Le i hl 0 Trigger to send an alarm message when K is set true FP C Trigger to send an alarm message when K2 is set as true S lt q LE Trigger to send an alarm message when K2 is set true a a E Trigger to send an alarm message when Ka is set as true KS ie Trigger to send an alarm message when K2 IF cp J 1S set true set message status every scan cycle SMS STS 2 Show the system is working Blink outputs gt Message coming count 211 crt is declared as retained variable FAQ 067 Aug 2011 5 ICP DAS ST program rcv_msg Attention the ISaGRAF PAC supports receiving short message in pure text format It can not receive short message in local language However it can send the short message in local language Q1 SMS_test Test ifa message is coming or not Yearl SMS get 1 Monl SMS_get 2 callSMS_ get to get message coming date Dayl SMS_get 3 amp Time in integer format Wdayl SMS get 4 Hourl SMS get 5 Minl SMS get 6 get phone No of sender Secl SMS _get 7 ee get message coming date amp time in string format phone SMS gets 2 date time SMS gets 3 get message data SMS_ gets 1 should be called in the last one because it will reset SMS_test status to FALSE No message data SMS gets 1 coming
11. r Driver enabled etting System Information Auto Execution Multi serial port wizard Sys d Exit Loe gi Ee x Driver disabled ea Here may display 8212 or 8112 Slot 3 lf the real card is 8212W then both display are ok site Install driver Apply to 1 81 r aiie radie SEPE J T USE coms Step2 Go to File gt Save nd Reboot to enable driver Slot scan Refresh 5 3 FAQ 067 Aug 2011 2 ICP DAS 1 2 Hardware Installation of the GIM 201 RS232 The 1P 8447 8847 supports SMS since its driver version of 1 05 while version 1 08 for uwPAC 7186EG and version of 4 1 for I 8xx7 I 8x37 80 and version of 3 09 for I 7188EG and I 7188XG The XP 8xx7 CE6 XP 8xx6 CE6 and WP 8xx7 WP 8xx6 and VP 25W7 VP 25W6 and VP 23W7 VP 23W6 supports both I 8212W GSM GPRS card and GTM 201 RS232 Please update their SaGRAF dirver to the version listed in the Page 1 If your driver is older one please upgrade the hardware driver to the associate version or a later version The driver and I O library can be found from the below ICP DAS s web site http www icpdas com products PAC 8000 isagraf htm The I O library should be re installed if yours is older one Please refer to section 1 2 of the ISaGRAF User s manual Or you can refer to Appendix A 2 of the ISaGARF User s manual to simply install C functions with the below items SMS _ test SMS get SMS gets SMS send SMS sts To unico and I O

Download Pdf Manuals

image

Related Search

Related Contents

  PRO PATCH SUPREME™  Severin ES3564  Factory Gateway User Manual  FleetBroadband 150 quick guide  CyberPower OL2200RTXL2U uninterruptible power supply (UPS)  Samsung B3310 Grey  Siesta -C RX - Sutecal.com    ITA compact series Decorative laser with wireless remote User manual  

Copyright © All rights reserved.
Failed to retrieve file