Home

Please refer to faq143

image

Contents

1. Connection specific DHS Suffix IP Address Subnet Mask Default Gateway D HDP seruer ping 8 8 8 8 Pinging 8 8 8 8 with 32 bytes of data Check Ping Ok 61 218 42 16 255 255 255 H 61 218 42 1 Reply from 8 8 8 8 hytes 32 time 27ms TTL 54 Reply fram 8 8 8 8 hytes 32 time 116ms TTL 54 Reply from 8 8 8 8 hytes 32 time 27ms TTL 54 Reply from 8 8 8 8 bytes 32 time 25ms TTL 54 Ping statistics for 8 8 8 8 Packets Sent 4 Received 4 Lost B 05 loss Approximate round trip times in milli seconds Minimum 25ms Maximum 116ms Average 48ms If all are fine start UDP exe D HDP server gt UDP 1585 Receive message via UDP IP port 1 505 to create socket Socket Ok ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a Then modify the ISaGRAF demo program faq143 3 to fit for your test environment it is similar to the figure below and then compile the program SaGRAF FAQL43 3 Programs mi x File Make Project Tool Debug Optons Help Gu Begin Desi PT TT TEM Een 15 _ip GPRS means delivering File Edit Tools Options Help the UDP message by GPRS 2 E ES IB D 177 E amp conncetion 4 raj ref 127A mus this 12001 Security passwd 0 mm Send lime Gap 250 reserved 0 reserved 0 reserved 0 porti
2. ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a 1 2 4 Enable Dial up utility Dial up Utility is a software tool developed by ICP DAS for the GPRS dial up automatically It allows an ISaGRAF program or VB net C net and C program to connect or disconnect GPRS by sending commands and it can also read the connection status or command status Please follow the steps below to enable the Dial up Utility Then click Connect to check if the connection is good and click Disconnect to check if the connection is broken Finally you need to run PAC Utility and add the dial utility exe to the list of Auto Execution and then run File Save and Reboot to save the settings system_DiskilSaGRAFidial_utility exe My Device isawinpAc size Type SOFGRAFY File Folder s dbnetlib dll 76 5KB Application Extension s dial up dli SEB Application Extension s dial up 2 4KE Application Extension dial_ utility exe 24KB Application Dial_up_utility e es User and Passwd must fit the setting of Curren command the Telecom company Comm status Disconnected For some case blank is ok 8 9 Entry Connect when starting up ver 1 01 4 7 ol Efl 2 27 A E The Entry is the name of the 3 new connection Make eu Connection WinPAG Utility 20 2 1 Help T
3. 5 Save and Reboot Reboot Without Save ju AM 1 System_DiskWSAGRAF salWinPAC exe hSystem DiskgS amp GRAFWsaWlinPAC exe Browse Restore Default Settings Exit am 24 System _DiskISAGRAP dial utility exe _ Browse 10 11 ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 1 3 Function Descriptions for Controlling 2G 3G Connection The ISaGRAF demo program below shows how to use COM MRTU 999 TRUE to connect 2G 3G Set up connect GPRS as TRUE it will instruct Dial up utility to connect 2G 3G connect_GPRS and TMP are declared as Boolean Internal if connect GPRS then connect GPRS False TMP COM MRTU 999 TRUE Connect GPRS end if The program below shows the way to use COM MRTU 999 FALSE to stop the 2G 3G Set up disconnect GPRS as TRUE it will command Dial up utility to disconnect disconnect GPRS and TMP are declared as Boolean Internal if disconnect GPRS then disconnect GPRS False TMP COM MRTU 999 FALSE Disconnect GPRS end if The program below shows the way to use COMREAD 999 to read the current status of the 2G 3G connection and use COMREAD 998 to read the current status of the 2G 3G command GPRS state and GPRS cmd type are declared as Integer Internal GPRS status 0 No action 1 7 Connecting 8 Connected 9 Disconnected 10 Others GPRS
4. Select a modem Security Settings Advanced Security Settings security use Extensible Authentication Protocol MOS Challenge odem GPRS Linencrypted password PAP Challenge Handshake Authenticati Select a modern Ei cese pee rose CPDAS I 82 DW Luc Ln V icrosott CHAP version 2 IMS CHA TCP IP Settings Preview user name and password Phone Number GPRS This Phone number should fit the Telecom Company 5 setting This example is for some Telcom company in Taiwan Country region cade Area code Phone number d Force long distance Don t Check them TUUS ICP DAS Co Ltd Technical Document Classification ISaGRAF English 143 a Next double click on the new connection ex GPRS that you have created and get into the Dial Properties dialog box and then get into the Dialing Patterns to change the content of those three fields as and click F Make Mew LANZ LAML Connection Dial Up Gonnection cA GPRS User Mame Phone uisi BE Dial from Password Work Domain Dial Properties Dialing Properties When daing tor Remove Local settings are The local area code is 425 Dialing Patterns The local country region code is 1 Dial using 9 Tone Pulse A Disable call waiting by
5. Connection Preferences Baud Rate Date Bits Use terminal window Parity before dialing Stop Bits Security Settings Terminals TCP IP Settings Device Properties 1 Bort Settings Cell Options F Lise terminal window after diding Flow Control Call Setup Must fit the setting provided by C the call if not ted withi RS p m wm 220 seconds Me Telecom Company Or visit v Wait for cial tone before dialing web to search GPRS APN to Wait for credit card tone 0 seconds find the settinas Extra Settings goecial modem commands may Ee erted inta t This example Is for Taiwan s CGDCONT 1 IP INTERNET some Telecom Company P JL This part is VPN ol 2 27 A E ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 Then get into the TCP IP Settings dialog box and follow the same settings as below TGP SIP Settings GPRS Select a modem use Slip Use software compression TCP IP Settings Mame Servers DNS Alt DNS wins 1 ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a Then get into the Security Settings dialog box and follow the same settings as below Afterward type the phone number for GPRS dial up and it must fit for the number provided by Telecom Company and then click Finish Modem GPRS
6. 1505 port 12001 ioe ae Port No and IP address mus to ip3 N A of the remote UDP ms potd 12001 Server mum to 1 4 NJ 2 udp ip t Socket ICP DAS Co Ltd Technical Document Classification ISaGRAF English 143 Next please download the ISaGRAF demo program faq143 3 to your ISaGRAF WinCE by using another PC If it is normal it will show up the window as below oet the Connect GPRS as TRUE the settings will auto return to False immediately and it will start to connect the GPRS If the GPRS state is 8 that means it has connected to the GPRS 9 stand for disconnected If it is properly connected to the GPRS the value of UDP IP ok will become to TRUE Then set Send1 as TRUE the settings will auto return to False immediately and it will send out an ISaGRAF Message in this example it sends Hello to the remote UDP server Now the message you sent will show up on the PC screen UDP Server y _ SaGRAF FAQ143_ 3 LIST1 List of variables B x File Edit Options Help He Comment 1 Current cmd type 0 Mo action 1 Connect 2 Disconnect B 0 Mo action 1 7 connecting amp connected 9 disconnected FALSE set TRUE to connect GPRS Disconnect GPRS FALSE set TRUE to disconnect GPRS send FALSE set as TRUE to send UDP messa
7. 25W7 23W7 1 36 or later If the is WP 5xx7 ISaGRAF driver version 1 01 or later its COM3 RS 232 can link one GTM 201 RS232 2G or GTM 201 3GWA 3G to dial up If the ISaGRAF driver version of your PAC is older than the above listed version please visit the http www icpdas com products PAC i 8000 isagraf link htm to download the newer driver This paper is the ISaGRAF FAQ 143 Users can download the document and demo programs from http www icpdas com faq isagraf htm gt 143 ICP DAS Co Ltd Technical Document Classification ISaGRAF English 143 a I 8212W 1 8212W 3GW 8213W 3GWA htto m2m icodas com m2m_layer2 rs html GTM 201 RS232 GTM 201 3GWA http m2m icpdas com m2m layer2 gprs html Note Please refer to the section 1 5 for the GPS function in the 8213W and 1 8213W 3GWA Note Please refer to the http www icpdas com faq isagraf htm gt FAQ 151 for the application to deliver files to a remote ftp server in a PC on the Internet 2G 3G Wireless Application GSIVI 201 R5232 GTMI Z01 3GWA COMS R5 237 WP 5xx7 ph E a E e mail with attached file Control Center ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a 1 1 Hardware Installation The I 8212W supports 2G GPRS GSM Insert the GPRS SIM card that registered the GPRS function from the Telecom Company into the SIM car
8. Current second 10 EMAIL state 0 DI Sleep 1 Busy 21 serverl 2z serverz succeed n Error EMAIL progrezs 0 progress D Mo action 1 10 11 100 percent to send FALSE Set az ta trigger to send an email i21 cnt 0 Message coming count Meg status 0 Message sending status to wha 296958111222 775 phone receiver please Use your oven Meg to send Message to send out FALSE Set as True to send a Short Message send af list ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a 1 4 2 Demo FAQ143 2 Send and Receive TCP String Message or binary Data by GPRS The demo program FAQ143 2 allows connecting the GPRS via 1 8212 or 8213W plus the SIM card and then the ISaGRAF PAC can connect to the remote TCP Server via enabling the Client function When the TCP Client and the TCP Server are online working the ISaGRAF PAC can send string data Message String one string packet contains up to 255 bytes or binary data one binary packet contains up to 512 bytes and it can also receive the string and binary data from the remote Server but the receiving function only works while a TCP connection is established For more information about How to enable the TCP Client function of ISaGRAF please refer to the ISaGRAF User s Manual Section 19 3 For testing the program faq143 2 you need to prepare a PC as TCP server and apply for a fixed Inte
9. dialing Dialing Patterns Edit the dialing patzern for each type af call to change the phone is dialed agal calls dial For Infernational calls cial en Ale Country Region Code F f Area Code G g ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a Now you need to make a dial up connection to check if the GPRS network is OK Please type the User Name and Password that provided by the Telecom Company or online search the word GPRS As figure below we use a Taiwan SIM card for Telecom Company as example keep two fields blank and then click Connect to make the I 8212W or i 8213w plus SIM card to start dial up Dial Up Gonnection Must fit the setting of the Telecom Company User Name Phone BEC qe Dial fram Password Domain GPRS Status S Connected Hide this message Disconnect After successfully connecting open Command Prompt and give a ping command to check if the connection is fine If ping internet fail refer to the next section 1 2 3 After ping is ok must run Disconnect then continue the next important steps gt Communication Command Prompt fan Prograrre c Internet Explore GPRS Status oi Favorites ZY isalw35 Documents RF Microsoft WordPad Connected DF Settings gl Regview FE TaskMgr Hi
10. net addr 192 168 71 9 TRUE end if ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 1 4 GPRS Demo Programs User can download related files from http www icpdas com fag isagraf htm gt 143 faq143 demo english zip including three ISaGRAF demo files faq143 1 pia faq143 2 pia and faq143 3 pia please follow the steps to restore the files into your PC ISaGRAF as below figure Note Please refer to the http www icpdas com faq isagraf htm gt FAQ 151 for the application to deliver files to a remote ftp server in a PC on the Internet Note Please refer to the section 1 5 of this paper for the GPS function built in the 8213W and l 8213W 3GWA 4M ISaGR AF Project Manazement IB File Edit Project Tools Options Help fe Mbus 1 Em crel Import Reference tudp 7 x Author Workbench Archive Common data vw Compress Archive location DL TEMP Browse M ISaGRAF Project Management IOl xl File Edit Project Tool Optons Help SE Lf tt test SMS email via GPRS declare your oven phone Mo amp mail server in the send TCP Message via GPRS http w icpdas comfaqisagrat htm gt 2 ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 1 4 1 Demo FAQ143_1 Send an email with one attached file by GPRS In the demo FAQ143 1 you can send or receive
11. your PAC can connect to the Internet by using LAN1 or LAN2 then recommend not to use the GPRS in such a case then please set the gateway of LAN1 or LAN2 The reason is LAN1 LAN2 speed is much faster than the GPRS 2 In the previous page the connection has been established For now the following configuration is very important and can t be ignored or else it will cause some problem when you connect to the GPRS network using the ISaGRAF program If the status of GPRS connection is still Connected please click the Disconnect button first GPRS Status 2 Connected Hide this message i Hide Disconnec ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 After that the new connection here is GPRS and then click Cancel At this time Do Not click Connect you must click Cancel first Finally run File gt Save and Reboot in each PAC Utility ex XPAC Utility to save all the settings including this and those in the previous section and then the PAC will restart automatically once S n Make Mew GPRS LANZ LANI Connection Dial Up Connection cA GPRS User Mame Phone Dial fram Password Work Domain Dial Properties XPAC Utility 1 0 2 5 Sue o This Cancel operation must set Cava and Reboot once Then run PAC s Utility to Reboot i save this Cancel setting Restore Utility Default Settings Exit
12. 5xxT After completing the installation remember to open the WinPAC Utility or ViewPAC Utility XPAC Utility and run File Save and Reboot to save the settings then the PAC will restart automatically once In the below figure we use XP 8000 CE6 as a sample XP 8xx CE6 XP 8xx6 CE6 please select Manual Save To Flash and then run File gt Save and Reboot XPAC Utility 1 0 2 5 5 File Help pec EE EET ork Device Information Auto Execution Rotary Execution Save and Reboot J ee eee Reboot TUA Restore Utility Default Settings _ Exit Welcome to use XPAC Utility This tool will help you easy to use XPAC CE series Task Bar setting Auto Hide Always On Top hi TEN XPAC WINCE Series HIVE Registry ILT 1 Promos 5 Ful Auto Save To Flash Default Maunal Save To Flash Configure the synchronization with a time server Configure ICP DAS Co Ltd Technical Document Classification ISaGRAF English 143 1 2 2 Configure the GPRS Dial up Parameters At first get into the Network and Dial up Connections and then run Make New Connection in the PAC Programs Favorites Documents E Settings control Panel c Help e Network and Dial up Connections 2 Run al Taskbar and Start Menu Network Connections 9 LAM LANI Connection Select Dia
13. CI FestBtheme BE T Bll 8 Su eRe SOLERE EGY IP ESTE xe BER H 0 E Los Packet scheduler _ Ey i bins Monitor Driver EJ amp nE d E 3 v i FH IF EHER fdk 51 218 42 10 fee i 4 255 255 255 0 TAs e Lh 5 218 42 1 aA Eesnime Aene BHES DNS 1520 E EHA DNS AAR SSfsrtE CE M RARE IRR DNS elites D ps v EGER tray DNS V 7 omes TETE ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a Please copy the file UDP exe into a path such as DAUDP _ server Next open the Windows Command Prompt and get into D UDP_ server as figure below then type ipconfig to check if the settings are correctly Afterward using ping 8 8 8 8 command or ping other website IP to check if the network connection is good If all of the above operation is correct please type UDP 1505 to run the UDP Server test program at Port No 1505 Due to the ISaGRAF demo program faq143 3 instruct to send data to the UDP Server at Port No 1505 UDP 1505 Bl x Documents and Settings Administrator D cd UDP server D HDP server gt indows IP Configuration Check these settings Ethernet adapter E
14. Classification ISaGRAF English FAQ 143 How to Make ISaGRAF WinCE PAC to Connect to the Internet and Send Data by 2G 3G wireless Dial up How to get the location by using GPS Sending back the collected data to the control center is necessary in some application However there may be no cable can reach the field or the cost of the network wiring is too expensive ICP DAS released the ISaGRAF PAC I 8212W or l 8213W solution for such applications Or WP 5147 GTM 201 RS232 or GTM 201 3GWA Designers can collect I O data or other application data by program PLC application Ladder ST Function block with ISaGRAF software Using the device I 8212W or I 8213W insert the SIM card inside that has registered the GPRS service from the Telecom Company to connect internet by dial up GPRS then the PLC can send e mail or TCP UDP data to the center GPRS Wireless Application E I 8212W 1 8213W 2G GSM GPRS module ISaGRAF E gt x 1 8212W 3GWA 1 8213W 3GWA 3G D WinPAC WP Bxx7 XPAC XP Bxx7 CE5 View PAC VP 2xW7 i Control Center The following ISaGRAF driver version supports the dial up GPRS 2G access with l 8212W XP 8xx7 CE6 1 17 or later WP 8xx7 1 37 or later VP 25W7 23W7 1 29 or later The following ISaGRAF driver version supports the dial up access with the l 8212 3GWA or l 8213W 3GWA XP 8xx7 CE6 1 24 or later WP 8xx7 1 44 or later VP
15. ISaGRAF demo program faq143 2 to fit for your test environment The configurations are similar as below and then compile the program ipi x _ 143 2 Programs File Make Project Tool Debug Options Help E m 5 356 D 8 f 9 XE Control GPRS SI senda TCP message jR 2 Be Begin connection PRETIO FAQ143_2 connection Ede Edit Toole Optone Help 82 his ip GPRS means this tcp client use GPRS to connect to the remote TCP server aj ref 128A mus Time to Sleep 40 mus this ip GPRS mu Security passwd 0 port 1505 aus to ipl 61 216 42 10 mum Sen Ime ha Le REDE any aoe TCP server s Port No me porte 14001 and IP address tcp clie oma to 1 2 N A Es oocket 4 mum Sen Ime bape B Sock send Time 250 3 ports 14001 mus to ip3 N A 11 NR Sen Ime Gapi ER send Time Gap3 250 port4 14001 mus to_ip4 14 Nu Sen Ime 4 send Time Gap4 250 al connection 1st TCP connection is connected TRI 2 means the TCP server is connected j he TCP i FALSE means disconnected a A ICP DAS Co Ltd Technical Document Classification ISaGRAF English 143 a For now download the ISaGRAF demo program faq143 2 to the ISaGRAF WinCE PAC by using another PC if the
16. a short message from cell phone by using the l 8212W 1 8213W plus SIM card and you can also send an email with one attached file by connecting GPRS If you want to know how to send receive a short message from your cell phone to ISaGRAF please refer to http www icpdas com fag isagraf htm gt FAQ 111 If you want to know how to send an email by ISaGRAF PAC please refer to http www icpdas com fag isagraf htm gt FAQ 067 First please modify the program faq143 1 to fit for your application environment 1 Please get into the IO connection dialog box modify the port number used for the SMS _ SaGRAF FAQ143 1 Programs ml x File Make Project Tool Debug Optone Help D me Dos mw md AG Begin Wo connection Z Msg receive messag Fe snd msg send alarm message om SaGRAF FAQ143_ 1 connection Bl x File Edit Tools Options Help Be SBro 6 L8 tnj ref 123 314 D SMS available is SM avaiable connect to 4 WP 8xx7 6 VP 25WT 23WT 8 gm SMS WP 5xx Status s For 8212W 8212W 3GWA 8213W 3GWA 1 8213W Poxxf COM GTM 201 RS232 or GTM 201 3GWA ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a 2 Click the Dictionary button and modify the initial value the phone number of the SMS receiver of Message variable to_ who iB
17. ceived Meg Hello The recent received Message len is 255 zend af list ot tep3 1505 Bl x D ICP server tcp3 1505 Here display as Hex value 48h means H GCP IP server testing 65h means reate TCP IP server at port_No 1585 aiting for client to connect lient connected i 7 bytes 48 65 6C 6C 28 21 Send the same data back to the TCP IP Client Send 7 bytes Ok ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 i If you want to send the binary data via TCP cliet you need to enable the eth tcp function one TCP packet can transmit up to 512 bytes and you can send data by using eth send function ow SaGRAF FAQ143 2 TAD connection File Edit Tools Options Help O x PBem tl a a E cun E Begin ut L 3 chnical notes Via Message ID _ Integer A ryMo Integer start Integer NUM Integer TOS FAQL43 2 Programs File Make Project Tools Debug Options Help E m ex 29 X E User s snide pc EE Control GPRS MM About Begin LD1 Ladder Diagram ref 128AB Time to Sleep 40 this ip GPRS port 1505 to 1 1 61 218 42 10 send lime Gapl 250 porte 19001 to_ip2 send Time Gap 250 ports 19001 to ip3 N
18. ctly Afterward using ping 8 8 8 8 command or ping other website IP to check if the network connection is good If all of the above operation is correct please type Tcp3 1505 to run the test program for TCP Server at Port No 1505 Due to the ISaGRAF demo program faq143 2 instruct to connect to the TCP Server at Port No 1505 TIT 1 3 1505 5 x Documents and Settings Admin istrator gt D NICP_server gt ipconfig indows IP Configuration Check these settings Ethernet adapter ism Connection specific DNS Suffix IP Address ew Subnet Mask Default Gateway D TCP seruer ping 8 8 8 8 Pinging 8 8 8 8 with 32 bytes of data Check Ping ok 61 218 42 18 255 255 255 H 51 218 42 1 Reply from 8 8 8 8 hutez 32 time 45ms TTL 54 Reply from 8 8 8 8 hutez 32 time 46ms TTL 54 Reply from 8 8 8 8 hutez 32 time b54ms TTL 54 8 8 8 8 Heplu from hutez 32 time 42ms TTL 54 Ping statistics for 8 8 8 8 Packets Sent 4 Received 4 Lost H 05 10552 Approximate round trip times in milli seconds Minimum 42ms Maximum 54ms Average 46ms D SICP_server gt tcp3 1585 If all are fine start the tcp3 exe CPYIP server testing reate TCP IP server at port Ho 15H5 aiting for client to connect ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a Then modify the
19. d socket of the 1 8212 card and make sure the antenna has installed well However plug in a 3G SIM card for the I 8212W 3GW and l 8213W 3GWA If your is XP 8xx7 CE6 or XP 8xx6 CE6 plug the l 821xW in its slot 1 leftmost I O slot If your PAC is WP 8xx7 or WP 8xx6 or VP 25W7 VP 25W6 VP 23WT7 VP 23W60 please plug the I 821xW in its slot If your PAC is WP 5147 link its COM3 RS 232 to a GTM 201 RS232 2G or GTM 201 3GWA 3G and set the GTM 201 s SW1 to the None position Then power on the PAC and run PAC Utility for example run WinPAC utility for WinPAC to setup the MSA1 port of the I 821xW 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 MSA1 is already in the XP 8000 CE6 If the PAC is WP 5147 this step is not necessary because it is using COM3 not MSA1 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 MSAT1 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 ICP DAS Co Ltd Technical Doc
20. de this message cJ Run windows Explorer wWINPAC Utility ping ao 3 Pinging Host google com 7d 125 153 1 04 Must click Disconnect from 74 125 153 1 4 size 3zZ time 6z65ms P from 74 125 153 104 2 time 796ms after ping is ok Then from 74d lz25 153 1 04 2zize 3z timnme e dsms from 74 l1 2b5 153 1 04 zize 3z2 time 795 7ms important steps ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a 1 2 3 Important Configuration DO NOT ignore it Please must do the following two important settings 1 If the PAC is going to use the GPRS to go to the internet to send mail TCP UDP data then must clear the gateway settings of LAN1 and LAN2 Or the GPRS will not work Remember to run the PAC s utility File gt Save and reboot once to save the settings File Edit View Advanced Edit View Advanced E Iz E 7 a E Vy a Make New CONNS Eur LANI Connection LAN1 Fast Ethernet Adapter Settings f k IP Address Name Servers Leave gateway blank address can be ja Obtain an IP address via DHCP automatically assigned to this 5 computer If your network Specify an IP address does not automatically assign IP Add 192 168 1 181 IP addresses ask your network administrator for an address Subnet Mask 255 955 255 0 and then type it in the space provided Default Gateway lf
21. difications of step 1 to 3 please re compile the program faq143 1 once to confirm it is correct and then download it to your ISaGRAF WinCE PAC to run When the connection between the PC ISaGRAF and your PAC is normal the window as figure below will show up on the PC screen If SMS available is TRUE that means the connection between PAC and 1 8212W plus SIM card has been established and now you can send or receive the short message Please set K1 as TRUE it will start sending a text message to the phone number of to who and then auto set K1 as False immediately Then you will see the Msg status value is slowly changing from 1 to 21 that means the sending is successful If you want to send an email via the GPRS connection please set the Connect GPRS as TRUE the settings will auto return to False immediately Now you will see the GPRS cmd type changed to 1 Connect and the SMS available changed to FALSE then the GPRS state will change too If the state value finally changes to 9 that means disconnected bad GPRS connection and if the value is 8 that means connected successful GPRS connection After connecting the GPRS successfully you can send an email by setting up the to send as TRUE the settings will auto return to False immediately Before sending the email the PAC will start to search LAN1 LAN2 and GPRS connection If the PAC s LAN1 amp LAN2 unable to c
22. ge stri nu Hello IP ak TRUE True enabled False something wrong end of list AGREL UDP 1505 Bl x D HDP server gt UDP 1505 Receive message uia UDP IP port 1 505 to create socket Socket Ok Receive 7 bytes 48 65 28 21 ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 1 5 Using the GPS function built in the 1 8213 and 1 8213W 3GWA The 1 8213 and I 8213W 3GWA support both of the GPRS and GPS To use the GPS function of these two cards first refer to the setion 1 1 of this document to well configure the MSA1 and MSA2 serial ports 1n the WP 8xx7 or VP 25W7 XP 8xx7 CE6 Then make sure your PC ISaGRAF has the gps installed If it is not follow the following steps to restore it to the PC ISaGRAF You can find the gps in the ZIP file downloaded at http www icpdas com fag isagrat_ c htm gt 143 59 ISaGRAF Project Management P B x File Edit Project Tools Options Help B amp y HJ Archive hE BS TESTS 2 creation pg tt Ern t Libraries 8 x fe fb File Edit Tools Options Help hES Beo standard note format WINSZintegrahon on board for getting date tim Longitude and Latitude Archive 40 complex equipments x Workbench Archive Backup Restore software gt 15 if gps exists here then you don t need to resto
23. iBl Language reference send via which protocol Valid value i send ta which connection Valid value is the byte array number to send Valid value the starting address inside the byte array to number of bytes in the byte array to send ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 1 4 3 Demo FAQ143 3 Send UDP String Message by GPRS In the demo program FAQ143 3 after connecting the GPRS by using 1 8212W 1 8213W plus the SIM card the ISaGRAF PAC can send a string data Message String one string packet contains up to 255 bytes to the remote UDP Server via enabling the UDP function UDP is a connectionless protocol that is different from TCP In the section 1 4 2 For more information about How to enable the UDP function of ISaGRAF please refer to the ISaGRAF User s Manual Section 19 2 For testing the program faq143 3 you need to prepare a PC as a UDP server and apply for a fixed Internet IP provided by a Telecom company Then you can run a test program UDP exe for UDP Server and the program is in the faq143 demo english zip you can download it from our website http www icpdas com fag isagraf htm gt 143 Please refer to the following operation to enable the UDP Server At first please set up the Internet IP Subnet mask and Default gateway for the PC UDP Server 2 x i sere 2 SEA D Link DFE 530TX P
24. ix File Make Project Tools Debug Optons Help TH 55 5 m SaGRAF FAQ143 1 Global messages C File Edit Tools Options Help 2 0 c 8 d gt end mail tor Booleans IntegersiReals Timers Messages FB instances Define Addr Comment The coming Messa Mo af se Begin roy msg Structured Text phone D SS S Q Q QD Dn Message coming d Begin 1 ae snd msg ser Msg to send Message Variable Comment phone of receiver please use Your own Init 11222 o Maximum length Attributes Internal C Input Output Constant 123456 Extended 3 Modify the following contents in the program snd_mail TMP MAIL SET 1 father icpdas com Modify email receiver amp address TMP MAIL SET 100 mao Q hotmail com Modify email addresser amp address TMP MAIL SET 101 168 95 4 211 Modify the usable mail server IP in the area TCR OE FAQ143 1 Programs ml x File Make Project Tools Debug Optone Help E mp e Emm swirl ome Rom Begin HE Mark Control GPRS and SMS zz rcv msi receive message snd msg send alarm message for sending email Begin snd mail Structured Text ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 How to test the demo program faq143 1 After finished the mo
25. l Up Connection and type an English name ex GPRS it allows to contain the numbers 0 to 9 then click Next and select the modem ICPDAS I 821xW 1 If the PAC is WP 5147 select the ICPDAS GTM 201 RS232 COM3 Make New Gonnection Type a name for the connection sens connection tvpe 3 Dial Up Connection S GPRS Select a modem Direct Connection Virtual Private Network PPTP Virtual Private Network LATP PPP over Ethernet PPPoE TCP IP Settings 5ecurity Settings lt Back ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 Then click the Configure button In the Port Settings tab select Baud Rate as 115200 Data Bits as 8 Parity as None Stop Bits as 1 and Flow Control as None and then click Call Options tab to set up the Extra Settings the settings depends on each of the Telecom Company For example the settings provided by a Telecom Company in Taiwan is CGDCONT 1 IP INTERNET and a Telecom Company in China is CGDCONT 1 IP CMNET This configuration includes the GPRS APN please contact your SIM card provider Telecom Company to get the settings or you can also visit the web to search the word GPRS APN to find the settings Device Properties Port Settings Call Qatians F Manu Dial user supplies dial strings
26. l is auto modified by the satellite state Reserved 0 Reserved 0 Ch 2 Longitude unit is 0 00001 degree Reserved 0 Positive val means East negative means West mn Reserved 0 Value can be 17999999 179 99999 degree to Reserved 0 18000000 180 00000 degree Reserved 0 Longi Lati ok Ch 3 Latitude unit is 0 00001 degree amp Longitude Positive val means North negative means E Latitude South Value can be 9000000 90 00000 to leal 39000000 90 00000 degree ICP DAS Co Ltd Technical Document
27. onnect to internet such as the gateway of LAN1 or LAN is not set it will try to send mail by GPRS connection finally Now you will see the EMAIL progress value increased slowly from 1 to 100 100 means the email has been sent out completely 10096 For the next sending the email will be sent out via GPRS directly If you want to break the GPRS connection please set the Disconnect GPRS as TRUE the settings will auto return to False immediately and you will see the GPRS cmd type changed to 2 disconnect and the GPRS state value changed to 9 disconnected After some time the SMS will resume available and you will see the SMS available changed to TRUE If it is unable to work correctly please refer to the section 1 1 amp 1 2 to confirm all the settings are correctly and refer to the section 1 4 1 to check if you had modified the demo program to fit for your regional settings F ISaGRAF FAQ143_1 LIST1 List of variables B 2 iBl xl File Edit Options Help DB Q Mame Value Comment GPRS type 2 Current Cmd type 0 No action 1 Connect 2 Disconnect GPRS _ state d 0 Ma action 1 7 connecting connected 9 disconnectec sz available TRUE is SMS available connect to SMS status Connect GPRS FALSE set TRUE ta connect GPRS Disconnect_GPRS FALSE set TRUE ta disconnect GPRS Current Year 2011 Current Month Current Day ae Current Hour 1 Current Minute 53
28. operation is correctly the window will show up as below Please set the Connect GPRS as TRUE the settings will auto return to False immediately it will start to connect the GPRS If the GPRS_ state is 8 that means it can access GPRS connection 9 stands for disconnected Then set Send1 as TRUE the settings will auto return to False immediately and it will start to connect to the TCP Server and send an ISaGRAF Message in this example it sends Hello to the remote TCP Server If the connection is normal the TCP_connection1 value will change to TRUE and the Tcp3 test program will show up the received data on the PC screen TCP Server It will reply the same message to the ISaGRAF and you will see the Msg value plus one then the Msg value will equal the message you just sent out y FAQIAS ZLISTI List of variables _ E x File Edit Options Help YA Comment GPRS cmd type 1 Current cmd type 0 action 1 Connect 2 Disconnect GPRS_state B 0 Mo action 1 7 connecting connected 9 disconnected Connect GPRS FALSE set TRUE ta connect GPRS Disconnect GPRS FALSE set TRUE to disconnect GPRS FALSE Set as True to send a Message ta the TCP server str1 Hello Message to send init Hello lenis 255 TCP connectiaon1 TRLIE 1st connection iz connected TRUE or not FALSE za cnt 2 Message count has been received Re
29. re it again Archive location CHUN DAM 05 Browse ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 Then connect the gps_ channel 1s as the following figure Next page for the definition of the location ETT IET 163 298 9 CREATION 1 0 Select board equipment in the IO connection of your ISaGRAF project The definition of each integer input x Cancel ddi Hote Library C Boards Equipments File Edit Tool Options Help bus 000 000 10s on Coma ar COM4 P me at E BS d 700010 on Com or COMA 0000 1 000 Os on Coma or CO M4 o am gps can b3ll Connecting i 5830 CAM converte Dat Time ru d ebus m Set as Ebus Master m ebus s Set as Ebus slave E Location ee ebus zz Set as slave eth tcp TCP for eth send amp eth recy eth udp UDP for eth send amp eth recy bus m lt Mew gt Set as Fbus Master bus s lt Mew gt Set as Fous slave 4 81 2 mmn 19860 101 amp 100 for the 19856 5 GUT 7a 8 CH Analog Input with Alarm 9042 Isolated 16 CH DI amp 16 EH DO ar ISaGR AF CREATION I O connection File Edit Tools Option Help tl RR IG gps_ mun ref 124 B Dat Time o Time Sync 1 ta Location nu d UTC diffirence 600 18008 reserved 0 mn rese
30. rnet IP provided by a Telecom Company and then you can run a TCP Server test program Tcp3 exe The file is in the 143 demo english zip you can download it from our website http www icpdas com fag isagraf htm gt 143 Please refer to the following operation to enable the TCP Server At first set up the Internet IP Subnet mask and Default gateway for the PC TCP Server NUI RI A 2 x E Internet Protocol 3 xg Db FH EB D Link DFE 530TX PCI FestEteme SUE EL aa IP BE m Bll AES TE I HEY IP Er xe fel RGB H 07 C a os Packet scheduler IP ur Network Monitor Driver En IP come neers Qo IERITEPIS TP HEO A IP Bl 218 42 10 88 CT 255 2202 290 0 TRE 58 D 6l 218 42 1 gn EISEN EE ARAB SET ace TCPITP E ERROR C CURE DNS RSLS 71 BAA TUBE DNS SR EATER RII DNS taliikes P v EERS pray DNS Y 6 WEE Mj s un ICP DAS Ltd Technical Document Classification ISaGRAF English FAQ 143 a Please copy the file Tcp3 exe into a path such as D TCP_server Next open the Windows Command Prompt and get into D TCP_server as the figure below then type ipconfig to check if the settings are corre
31. rved 0 isa reserved 0 in reserved 0 ina reserved 0 18008 reserved 0 EB Date Time ok a U Year U Month amp U Day amp U Hour U Minute amp U Second Satelite num 14 Time Sync value 1 means enable the auto time synchronization function Value 0 disable it UTC diffirence The time difference between the UTC Time and local time Value can be 1200 to 1200 for ex 800 means 8 hour 230 means 2 hour and 30 minutes 700 means 7 hour Ch 1 means the Date Time from satellite is correct or not Value 1 means correct Ch 2 to 9 are all correct However value 0 means incorrect then Ch 2 to 9 data can not be used Chl val is auto modified by the satellite state Ch 2 Year Ch 3 Month Ch 4 Day Ch 5 Hour Ch 6 Minute Ch 7 Second Ch 8 Satellite amount found can be 0 to 8 Ch 9 Reserved GPS working state normally is 1 ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a air SaGRAF CREATION I O connection x File Edit Toole Optons Help P Ch 1 means the Longitude and Latitude correct PBPO not Value 1 means correct Ch 2 and 3 are am gps_ L mwn ref 125 correct However value 0 means incorrect Dat Time ru e Reserved 0 then Ch 2 and 3 data can not be used Location wej Reserved 0 Chl va
32. state COMREAD 999 GPRS command type 0 No action 1 Connect 2 Disconnect GPRS cmd type COMREAD 998 ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 The following two usage is supported from the below ISaGRAF driver version XP 8xx CE6 1 53 or newer WP 8xx7 1 74 or newer VP 25W7 23W7 1 65 or newer WP 5147 1 18 or newer The program below shows the way to use COM MRTU 998 TRUE to keep the current 2G 3G connection state when user press stop application by PC ISaGRAF workbench Keep 2G 3G connection state when user press Stop application by PC ISaGRAF INIT is Boolean Internal variable and inited as TRUE TMP BOO is Boolean Internal if INIT then INIT False TMP COM MRTU 998 TRUE end if When the 2G 3G dial up state is connected The driver will try to ping DNS server and 0 9 8 8 every 15 minutes to test if the 2G 3G communication is ok If both ping timeout at 15 seconds later the ISaGRAF PAC will automatically reset the 2G 3G module and then re dial up to recover the 2G 3G communication If user don t want to ping this 8 8 8 8 can modify it to ping one another ip address for example 192 168 71 9 Like as below code set to ping one another IP address INIT is Boolean Internal variable and inited as TRUE TMP BOO is Boolean Internal if INIT then INIT False TMP BOO COM MRTU
33. ument Classification ISaGRAF English FAQ 143 WinPAC Utility 210 216 Sl s Help Configuration TOE i i Multi serial part wizard b Saye System Information Auto Execution Sy Reboot Without Save Cx Driver enabled Restore Default Settings e Driver disabled Exit Ld Here may display 8212 or 8112 or Slot 3 8213 If the real card is 8212W l 8213W then they are all ok Slot 6 Install driver Slot 7 x yere Stepz Go to File gt Save nd Reboot to enable driver Slot scan Refresh 5 Ca ICP DAS Co Ltd Technical Document Classification ISaGRAF English FAQ 143 a 1 2 Software Installation Please check the ISaGRAF driver version for your PAC is the correct version that listed in the first page of this document If not update it Note Please refer to the http www icpdas com fag isagraf htm FAQ 151 for the application to deliver files to a remote ftp server in a PC on the Internet 1 2 1 Install the 1 8212W 1 8213W or GTM 201 Driver Double click the icpdas i 821xw MSA1 v1 00 cab file in the path of ISaGRAF PAC System_Disk ISaGRAF to install the 1 8212W 8213W driver if the PAC is WP 8xx7 VP 25WT or XP 8xx7 CE6 Double click the ICPDAS GTM 201 RS232 winpac v1 01 cab in the path of PAC SDAISaGRAP to install the GTM 201 Rs232 2G or GTM 201 3GWA 3G driver if the is WP

Download Pdf Manuals

image

Related Search

Related Contents

  フリーワンタイプ取扱説明書 [PDF:15.7MB]  Micro AH-64 Apache Manual    MEM2610U  HQ W7-52252/ N  DA-ST512 User`s Manual - Diagnostic Associates Ltd  

Copyright © All rights reserved.
Failed to retrieve file