Home

User`s Manual of ISaGRAF Embedded Controllers

image

Contents

1. an SaGRAF WHMI_O5 LO connection OoOo 0j x Fie Edit Tools Options Help B aeBem IIFA am i 8077 D DOs elect board equipment En 8063 Isolated 4 CH DI amp 4CH OO 870630 8 CH 1 0 amp Cnt Max 100H2 6 87082c 2 Counter amp 2 read back DO LofUS2F 2 Frequency amp 2 00 Cancel i iw diob 4 CH DI amp 2 CH Relay DO E iw dio8 4 CH DI amp 4 CH DO H Hote EE Woke Keypad Input mbus Modbus master on COMS or COM4 MMICON Connect MMICON by Com or Ce modem ps Set Password of Com Modem Library rtepes000 Link to MTCP 6430 8830 5256_512 Batter backup SRAM for 6xe SMS Short Message Service vio Permissive IP via Modbus TCP IP s107 BOL amp FOO for the 186sG EG HITS FOL amp FOO for the 71084G EG Boards G R ow SaGRAF WHMI_OS 1 0 connection E 0 x Fie Edit Tools Optone Help a pBen tt FR S Lo al Emi a am i 8077 oo IP_1 10 0 0 2 DIB n IP_2 10 0 0 4 DOB m an Pye cos IP_ 4 NJA cos IP 5 NJA 4 cos IP_ 6 NJA coun IP_ 7 NJA e m IP_8 NjA 4 Am wip i B ip nt 4 La fa ES 7 F Jul 2007 Copyright by ICP DAS 5 2 Using dis_stop to disable enable the ISaGRAF Download function For some reason to prevent someone to use ISaGRAF software to stop or to download a different controller project already running in the 1 7188EG I 8437 8837 and W 8xx7 the
2. s ISaGRAF driver to below version http www icpdas com products PAC A 8000Asagraf link htm 1 7 188EG Ver 2 19 or later version 1 8437 8837 Ver 3 21 or later version W 8xx 7 Ver 3 38 or later version Please visit www icpdas com FAQ Software ISaGRAF 070 to download the demo program If you want to know more about the UDP protocol used in this sample please refer to the section 4 The ISaGRAF demo programs used in this sample are as below PAC 1 wdmo_64a pia Please set PAC s IP as 10 0 0 103 Mask as 255 255 255 0 PAC 2 wdmo_64b pia Please set PAC s IP as 10 0 0 105 Mask as 255 255 255 0 Note Sometimes PC Server reside at the Internet with a fixed Internet IP address Then all the local controllers in the same application must assign its proper Gateway IP The value of this Gateway IP can be found in a PC which is in the same local area with the local controller First please set IP of that PC as DHCP Obtain an IP address automatically then open a Command Prompt key in ipconfig as below then we got the Gateway IP setting Documents and Settings Administrator gt ipconfig indows IP Configuration thernet adapter ae Poe Connection specific DNS Suffix banchiao icpdas com IP Address Subnet Mask 255 255 255 0 Default Gateway 10 0 0 254 gt Documents and Settings Administrator If the PC resides at the Internet it must use a fixed Internet IP And also please
3. Local Controller Msg_ip_addr and ip_port are the source IP address and UDP port No which sent message to the local controller Normally it is the IP and port No of the central PC Server If it is not that means some other un friendly station or PC sending UDP data to the Local Controller R_Command is the lt command gt field in the message from the PC Server Here in this demo is 2 or 4 Then please run VB 6 0 demo_8 program in your testing PC refer to Section 3 Jul 2007 Copyright by ICP DAS 3 VB 6 0 demo program Please finish the steps listed in section 2 first before doing the steps in this section Please set your PC s IP address to a fixed IP 10 0 0 91 Mask 255 255 255 0 for testing this demo Because the ISaGRAF demo program wdmo_64a and wdmo_64b running in the Local Controller will report message to the PC with IP 10 0 0 91 and with UDP port No 12001 The VB 6 0 demo program demo_8 exe resides at vb6_demo demo_8 Please visit www icpdas com FAQ Software ISaGRAF 070 to download it Please run MS VB 6 0 development studio to open the source code of this demo_8 the file is vb6_demo demo_8 demo_8 vbp After running this demo_8 exe a VB 6 0 Demo_8 window will show up as below Please enter the proper value of the following items and then click on Start to test it UDP_port_No is the UDP port
4. No which this PC is going to bind it to receive message coming from local controllers value can be 1001 to 65535 This demo uses value of 12001 Security_passwd is the protocol security password Value can be 0 or 1 to 2147483647 or 2147483647 to 1 This demo uses value of 1234567 Output_File_name is an option You may specify it or leave it empty If specifying a name to it then demo_8 exe will create a new empty file to record all valid message from the local controllers O x Please refer to wii icpdas com FAG Software SaGRAF O70 for more Please set PE IP 10 0 0 97 Controller 1 IP 10 0 0 103 Mask 255 255 255 0 IF you have the second or more controller please modify its SaGRAF programm s variable Station No to other different value 1002 1003 Local controller 7188EG asar or w oee will auto report data to this PC Server via UDP IP protocol 1 This program is only for demo purpose ICP OAS and Chun has no responsibility for it 2 This program iz to receive udp frame from a rfl S6EG oresar or W Sex Then PC reply time synchronization command to the controller If the local controller is 7 168EG please use its SaGQRAF diver version of 2 19 or later version If the local controller is Asar please make sure its lsalAAF driver is 3 21 or later version If the controller is Wincon Seey please make sure its SaGRAF driver ig 3 38 or later version The lsaGRAF program in this dema is wdm
5. Ses or W Dwar wall auto report data to this PC Server via UDP IP protocol 1 This program is only for demo purpose ICF DAS and Chun has no responsibility for it 2 Thiz program i to receive udp frame from a i 7158EG or Ssa or woe Then PC reply time synchronization command to the controller IF the local controller is r 188EG please use its lSaGRAF driwer version of 2 19 oar later version IF the local controller is 8837 please make sure its lac RAF driver is 3 21 or later version if the controller is Wincon 6ee please make sure its SaGRAF driver is 3 38 or later version The lsaGQRAF program in this demo ig wdmo_ Eta for station No 1001 while wdmo_64b for station Ho 1002 please download it to 7 188EG Lasar or Wat Cie Parameters UDF _port_ o i200 Security passwd 1234567 Dutput_File_name datat tst wWinsock state Socket open 2007 7 17 14 4 1 Local controller ig on Line orng Controller 1001 Cr ne Controller 1002 Gite gt YB 6 0 Time synchronization demo tor PE 7 Server Starting at 2007 7 17 PAF 02 02 35 PCY Server IP 10 0 0 91 UDP Port Wo 12001 1 Receive 51 bytes 1002 191 7412756 1 2007 7 17 142 47 42295 b444 Reply 47 bytes 9001 191 7412738 2 2007 7 17 14 2 47 21544 59447 2 Receve 49 bytes 1002 2835026861 2007 7 17 14 5 2 59316 46062 Reply 45 bytes 9001 283802696 2 2007 7 17143 22 547377791 wees SOOT Pe 02 05 52 Local station No 1001 communication is broken B P
6. modify the initial value of the IP_correct_PC variable and modify the IO connection udp_ip to_ip1 value in the ISaRAF project wdmo_64a and wdmo_64b to be the same as that Internet IP Then re compile them before downloading to the controller Jul 2007 Copyright by ICP DAS If successfully download ISaGRAF program the below similar window will show up SaGRAF WDEMO 61 Debugger Ioj x Fie Control Toole Options Help imis gt Hb S Hh RUN allowed 0 current 3 maximum 15 overtlow 0 y SaGRAF WDOEMO 61 LIST1 Last of variables Ioj x File Edit Options Help A He lt Q Name Value Comment Year 2007 Wanthi 3 Date amp Time of Local Controller Day 30 Hour 13 Minute a Second 17 a Auto report Interval setting and progressing state receiving state information T1 timer to show the time elapse Report_interval interval ta report data to PC Server int as 1 minute Timeout interval interval that PServer must reply init az 15 seconds mag 1001 16631546825 1 2007 5 320 138 1 999990 9 the sending message ID Mo 1663154625 modified before every sending int as 1 meq the coming message ip_port T WIDP_IP port Mo of the sender mecq_ip addr ip addr of the Sender string format R_Command T Command in the coming data send of list Msg1 is the message from Local Controller sent to the PC Server Msg is the reply message from the PC Server to
7. not 0 With 4 byte Checksum at the end lt Station_No of PC Server gt lt Same ID No from the local controller gt lt Command gt lt Y ear gt lt Month gt lt Day gt lt Hour gt lt Minute gt lt second gt lt User defined CRC gt lt 4 byte Checksum gt lt Command gt definition 2 to inform the local controller that PC Server receive its correct data 4 to inform the local controller that its date and time differ more than 20 seconds than the PC Server please adjust controller s date and time and then send data to PC Server once again lt User defined CRC gt definition Using the same definition as item 4 Jul 2007 Copyright by ICP DAS 5 Controller Ethernet security 5 1 Modbus TCP IP security There are some ways user can get access to the Wincon 8xx7 via its ethernet port 1 Using Modbus TCP protocol at port No 502 SaGRAF and other HMI can do this 2 Using ftp for example keyin ftp 10 0 0 103 on the Internet Explorer 3 Using telent for example keyin telnet 10 0 0 103 in the command window 4 Using the Web server The Web HMI does Note 1 While for 1 8437 80 8837 80 1 8437 8837 and 1 7188EG only item 1 is possible 2 If the controller is W 8x47 8x46 when using ftp telnet Web HMI amp Modbus TCP IP please connect your PC HMI to W 8x47 8x46 s LANT port and please use NS 205 or NS 208 Ethernet switch For safety
8. Dis_stop can be applied Please connect dis_stop at a slot No larger than 8 and init the channel value to become TRUE Then stop download command is not allowed in this controller aii ISaGRAF I5 140 connection ia 6E EA g Ea att Cc To disable Dis_stop to accept stop download command please run the original ISaGRAF project to link to this controller and set the channel value to become False Jul 2007 Copyright by ICP DAS
9. How to do Time Synchronization and record state of many ISaGRAF PAC By chun icpdas com 1 Introduction The method listed in this document is similar as www icpdas com FAQ Software ISaGRAF 065 Here use one PC Server to receive UDP report data from one or many ISAGRAF PAC 1 71 88EG 1 8xx7 1PAC 8x47 W 8xx7 Then the PC Server can send time synchronization command to the ISAGRAF PAC if it is necessary This demo sample apply one PC IP 10 0 0 91 Mask 255 255 255 0 to link to two ISaGRAF PAC can be any of W 8xx7 1 8x37 1PAC 8447 8847 or 1 7188EG in a local Ethernet area The PAC 1 s IP 10 0 0 103 Mask 255 255 255 0 PAC 2 s IP 10 0 0 105 Mask 255 255 255 0 Time Synchronization command Ethernet Status Report a E W 8xx7 i 8xx7 _ i 7188EG iPAC 8847 If this sample is applied in the Internet then the PC Server must set to a fixed Internet IP address And also each ISaGRAF PAC in the different local area should be possible to connect to the Internet Normally is through the Gateway Server of the ISP company Each IsaGRAF PAC also named as Local controller must set their proper Gateway IP address Time Synchronization command Wee an is Gateway Server an W xxT 8xx7 IPAC 8847 i r 188EG Jul 2007 Copyright by ICP DAS 2 Install software and hardware for demo testing To run this demo sample correctly please update your Controller
10. Jul 2007 Copyright by ICP DAS user may use 5 6 and may not use 200 whatever this depends on your own decision Please use your own algorithm for safety d Calculate lt User defined CRC gt as two byte gt lt CRC_Hi gt lt CRC_Lo gt Then lt User defined CRC gt 256 lt CRC_Hi gt lt CRC_Lo gt It is a value between O and 65535 e using a different algorithm to get value 2 proceed a then proceed b by using user_buf 4 user_buf 4 4 unsigned char 48 then proceed c by using _ user_buf 6 user_buf 6 unsigned char 197 then proceed d Then we get value 2 It is a value between 0 and 65535 Please use your own algorithm for safety UDP message format of the PC Server replying to local controller Security_passwd Using the same definition as item 4 PC Server will reply below format to the local controller Security_passwd is 0 No 4 byte Checksum at the end lt Station_No of PC Server gt lt Same ID No from the local controller gt lt Command gt lt Y ear gt lt Month gt lt Day gt lt Hour gt lt Muinute gt lt second gt lt User defined CRC gt For example 9001 519805546 2 2007 5 30 18 59 53 6830 42679 It means lt Station No of PC Server gt is 9001 lt ID No gt is 519805546 lt Command gt is 2 Date and Time in PC Serveris 2007 5 30 18 59 53 lt User defined CRC gt 1s 6830 42679 there is one Space Char Before the first 6 Security_passwd is
11. byte Checksum gt lt Command gt definition 1 Local Controller report data to the PC Server lt User defined CRC gt definition Can be defined as a different algorithm by the User This demo apply the following algorithm Please apply a different algorithm in real application for safety 66 99 Value is fixed as 11 bytes Character It contains two value of 0 to 65535 separated by a For example value_1 value_2 fixed length of 11 bytes Character 0 0 0 O with 4 Space Char before 0 1 1 1 1 with 4 Space Char before 1 21 21 21 21 with 3 Space Char before 2 321 321 321 321 with 2 Space Char before 3 4321 4321 4321 4321 with 1 Space Char before 4 54321 65535 54321 65535 No Space Char Below steps a to d is to get value 1 while e is to get value 2 Please apply a different algorithm in real application for safety a extract the string not including the lt User defined CRC gt and lt 4 byte Checksum gt into byte array user_buf for convient we call this byte array as user_buf b replace user_buf 3 as user_buf 3 xor 100 That is user_buf 3 user_buf 3 unsigned char 100 user may use 2 4 and may be not using 100 whatever this depends on your own decision Please use your own algorithm for safety c replace user_buf 7 as user_buf 7 xor 200 That is user_buf 7 user_buf 7 unsigned char 200
12. lease modify the time of this PC Server For example two hours moving ahead then wait about one minute you will see the connected PAC s time will be modified to become the same time as the PC Server The principle is every time the PAC sends message to the PC Server the PC Server will calculate the time difference If it 1s larger than 20 seconds the PC Server will send a time synchronization command to the PAC If the application is applied in a local Ethernet area you may modify this allowed time difference to a smaller value for example modifying from 20 to become 5 seconds Please modify the below statement in the VB 6 0 demo_8 source code and re compile it Modify If Temp gt 20 Or Temp lt 20 Then To become If Temp gt 5 Or Temp lt 5 Then C Please observe if receiving a message every minute Jul 2007 Copyright by ICP DAS 4 UDP protocol definition in the demo listed in this document This protocol definition is valid for the ISaGRAF demo program wdmo_64a and wdmo_64b and VB 6 0 demo program demo_8 l Local Controller is as UDP Client while PC Server is as UDP Server Only Local Controller can auto send data message string to the PC Server The message variable IP_correct_PC and integer variable Port_correct_PC in the IsaGRAF demo program wdmo_64a and wdmo_64b specify the IP address and UDP port No of the target PC Server And also there is si
13. milar definition of the target PC Server in the ISaGRAF IO connection window udp_ip PC Server must reply a message with lt Command gt 2 or 4 to the local controller in 15 seconds after it receives a valid message from the local controller The replied message must contain the exact same lt ID No gt as the lt ID No gt it received from the local controller The local controller will drop the replied message with incorrect lt ID No gt If the local controller doesn t receive a valid replied message from the PC Server in 15 seconds it will send message once to the PC Server with a different lt ID No gt Then if PC Server still not replied it in 15 seconds local controller will continuously send message again until it receives a valid replied message The timer variable Timeout_interval in the IsSaGRAF demo program wdmo_64a and wdmo_64b defines this Timeout value The local controller will send message to the PC Server when below events happen in this demo 1 15 seconds later after the Local controller is power up This only deliver once 2 Send once at every minute past Continuously and periodically UDP message format of Local Controller sending to the PC Server Security_passwd Must be specified as the same value in the ISaGRAF IO connection window udp_ip and in the VB demo program to communicate well Value can be 0 means No encoding it is not safe
14. o_B4 a for station No 1007 while wedro_64b6 for station No 1002 please download it to i 7188EG S37 or Wi Bhat T w YB 6 0 Demo 8 Time synchronization demo of many 1 7106EG LEX or W Gicx Parameters UDP port No 12001 Security passwd 1234567 Output File name dated txt Start Stop Winsock state Socket closed Please click Start button to start it FOOT THT 13 56 9 Local controller ig on Line or nat Controller 1001 Controller 1002 Jul 2007 Copyright by ICP DAS How to test The local controller will send message to the PC Server when below events happen in this demo 1 15 seconds later after the Local controller 1s power up This only deliver once 2 Send once at every minute past Continuously and periodically A Please wait about 2 minutes after running demo_8 exe If the PAC 1 or PAC 2 connection is Ok it will display On Line If the PAC doesn t report any message to the PC Server over one minute it will display No response w YB 6 0 Demo 8 Time synchronization demo of many i 1136EG i Giax or H AXT 3 5 ioj x Please reter to www icpdas com FAG Software SaGAAF 070 for more Please set PE IP 10 0 0 91 Controller 1 IF 10 0 0 103 Mask 255 255 255 0 IF you have the second or more controller please modify its SaGARAF program s variable Station No to other different value 1002 1003 Local controller 7188EG
15. or 1 to 2147483647 or 2147483647 to 1 none zero value means with encoding it is much safe If setting as a none zero value please refer to the convert_to_udp_deliver_buf convert_back_udp_deliver_buf and udp_ip_crc function in the VB 6 0 demo_8 for its encoding algorithm If setting Security_passwd as 0 every delivered message can not exceed 255 bytes If setting Security_passwd as none zero value every delivered message can not exceed 259 bytes The last added 4 bytes is the lt 4 byte Checksum gt calculated by the udp_ip_crc _ function Local Controller will send the below format to the PC Server Security_passwd is 0 No 4 byte Checksum at the end lt Station_No of local controller gt lt ID No gt lt Command gt lt Y ear gt lt Month gt lt Day gt lt Hour gt lt Muinute gt lt second gt lt User defined CRC gt Jul 2007 Copyright by ICP DAS For example 1001 850334470 1 2007 5 30 17 31 51 46677 18632 It means lt Station_ No of local controller gt is 1001 lt ID No gt is 850334470 lt Command gt is 1 Controller s date and time is 2007 5 30 17 31 51 lt User defined CRC gt is 46677 18632 Security_passwd is not 0 With 4 byte Checksum at the end lt Station_No of local controller gt lt ID No gt lt Command gt lt Y ear gt lt Month gt lt Day gt lt Hour gt lt Minute gt lt second gt lt User defined CRC gt lt 4
16. recommend to disable item 2 and 3 at run time for Wincon Wincon ISaGRAF Driver Setting Web about 2 2727220200 ptions V Enable Web HMI v Disable FTP Serveice Disable Telnet Serveice Check it to disable To set up advanced security click on Se Settings And about item 4 please set proper username amp password for the Wincon Web HMI Wincon SaGRAF Driver Setting We About 3 Security Settings Options pera Account Modbus List IP Setting v Enable Account Security Prionty Low Wiser Mame Password Setting user name amp password here Disable Telnet Serveice To set up advanced security click on Settings Settings Priority Middle Wiser Wane Password Priority High Liser Mame Password Jul 2007 Copyright by ICP DAS About item 1 user may set up to 8 IP address for ISaGRAF or other HMI to get access to the I 8x37 I 7188EG amp W 8xx7 via the Modbus TCP IP protocol as below On the IO connection window of ISaGRAF please connect vip and entering the IP which can get access to the controller via Modbus TCP IP protocol If vip is not connected any remote IP can get access to your controller via Modbus TCP IP protocol If vip is connected and No IP is entered all assigned as N A No HMI and ISaGRAF can get access to it by Modbus TCP IP anymore

Download Pdf Manuals

image

Related Search

Related Contents

Dremel Lawn Mower 675 User's Manual  Prévention des blessures musculosquelettiques pour le    Licence Management User Manual  Philips Spiral 929689838108  棚付二連紙巻器・二連紙巻器  Samsung DIGIMAX 200 Инструкция по использованию  Lock Right Owners Manual  : Raymarine - UKW Funkanlage RAY70, at www.SVB.de  DIAdem: Daten erfassen und visualisieren Benutzerhandbuch  

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.