Home
User`s Manual of ISaGRAF Embedded Controllers
Contents
1. 0 0 0 100 bytes written Return Q_ boolean Ok TRUE Fail FALSE User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 16 S DL_EN c di en E Description Function Enable the download permission for PC to download data to the volatile SRAM return Q_ Boolean TRUE ok FALSE fail Note The default setting is Disable S_DL_EN sholud be called then PC download data to the volatile SRAM is possible Example demo_40 demo_41 demo_42 amp demo_44 Description Function Disable the download permission so that PC can not download data to the SRAM return Q Boolean TRUE ok FALSE fail Note The default setting is Disable S_DL_EN sholud be called then PC download data to the volatile SRAM is possible Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 17 S DL STS s dl sts Description ols Function Get PC s Download Status for the volatile SRAM return STS_ Integer 1 No action 1 PC is Downloading data to the SRAM now rae download accomplishment Note S_DL_RST can be called to reset the status to 1 reset to No action Example demo_40 demo_41 demo_42 amp demo_44 S DL RST s di rst Cl Description Function Reset the Download Status to 1 No action for the volatile SRAM return Q_ Boolean TRUE ok FALSE fail Example demo_40 demo_41 demo_42 amp demo_4
2. then continued with 1 to 5000 The available file contains 20000 bytes 4 If Head Tail 5000 5000 it means the available data of the file is empty O byte User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 2 5 If Head Tail 1 1 it means the available data of the file is empty O byte To upload the data stored in the SRAM please make sure you have installed the ICPDAS UDloader on your PC To upload data stored in the SRAM of the ISaGRAF controller to PC please run UDloader exe then click on Link Setup to set proper communication parameters then click on Upload 1 to upload tt Example Please download demo_ 41 to one 841 7 881 7 8437 8837 Then push button 1 or 2 or 3 or 4 several times Then upload the file stored in the SRAM fe ICPDAS UDloader file resident location eRAM MODULE 512 FID Jails tere a Bat Upload i Closet a 7 mi SE 37200 mE 2 ot eed l 12A IN Cs Upload 2 Upload Upload 4 y LEE S m 1 E Dum Current available i Not Used all file location l File name amp ortea 1 I location PC NoUed ff fff ff are NotUsed Lf E E r Click here communication parameters Destton Folde ss C CDocuments and SettingsAdministrator st AU Dloader Brows as set Load File Download User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 3 10 3
3. 02 V2 0 7 S FL AVL Description Function Set one file s current available byte No for the volatile SRAM Arguments ID_ Integer File identifier No 1 8 HEAD __ Integer The current available starting byte No TAIL Integer The current available ending byte No HEAD_ TAIL_ must resides inside the area of the associate file Please refer to S_FL_INI or Q_ will return FALSE 1 or S256 1 249 856 S512 1 512 000 X607 1 118 784 X608 1 512 000 For ex A file of ID_ 1 resides at byte No of 1 20000 it can store max to 20000 bytes 1 if setting one of HEAD_ and TAIL_ to 1 no data of the file is available It means when you load this file from PC its size is 0 byte 2 if setting HEAD _ 1 TAIL_ 1000 the current available data of the file will be at 1 1000 inside the volatile SRAM It means when you load this file from PC its size is 1000 bytes 3 if setting HEAD 10001 TAIL _ 5000 the current available data of the file will be at 10001 20000 and then continued with 1 5000 inside the volatile SRAM It means when you load this file from PC its size is 15000 bytes 4 if setting HEAD _ 1000 TAIL_ 1000 no data of the file is available It means when you load this file from PC its size is 0 byte return Q_ boolean TRUE ok FALSE fail Note S_FL_INI should be called once before S_FL_AVL is called Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437
4. 10 3 Battery Backup SRAM The 841 7 881 7 8437 8837 can integrate with a S256 or 512 battery backup SRAM to store data alarm and information while X607 amp X608 for the I 7188EG XG controller The data been stored in these SRAM is always retained unless their battery running out of energy Their memory size is as below however the upper 12K is reserved by ISaGRAF controllers 841 7 881 7 8437 8837 256 244K bytes 256 12 244 512 500K bytes 512 12 500 I 7188EG XG X607 116K bytes 128 12 116 X608 500K bytes 512 12 500 lf battery backup SRAM is found in the controller the maxinum number of retained variables can be extend to as below Boolean 256 Integer Real 256 Timer 32 ICP DAS provides an utility ICPDAS UDloader that can be installed on the PC to upload and download data from to the ISaGRAF controller Please copy UDloader exe from the ICP DAS s CD ROM napdos isagraf some_utility to your windows The 8417 8817 8437 8837 supports S256 S512 since its driver version of 2 25 while l 7188EG supports X607 608 since its driver version of 1 17 and version 1 15 for I 7188XG If your driver is older one please upgrade the hardware driver to the associate version or a higher version The driver can be found from the below ICP DAS s FTP site I 841 7 881 7 8437 8837 ftpo ftp icodas com pub cd 8000cd napdos isagrat 8000 driver I 7188EG ftp ftp icodas com pub cd 8000cd napdos isagraf 7188eg dr
5. 3 Download data to the SRAM For PC to download data to the volatile SRAM of the ISaGRAF controllers The below functions can be used Please refer to Appendix A amp demo_ 44 S DL EN S DL EN S DL RST S DL STS Please call S DL_EN to enable it The Controller accepts only the binary format for String Byte Word Int amp Real Byte 0 255 1 byte Word 32768 32767 2 byte low bye high byte Int 32 bit signed integer 4 byte lowest 2nd 3rd highest Real 32 bit float 4 byte lowest 2nd 3rd highest String max to 255 bytes If using the UDloader exe to download data to the volatile SRAM the data to be downloaded should be edited as a text file Its format should follow the below rules 1 The first line should be a No indicate that to download to which starting Byte No of the SRAM Valid starting byte No is as below S256 1 249 856 S512 1 512000 X607 1 118 784 X608 1 512000 2 The other line is the data A String String should start and end with the character of for ex Abcd123 7 byte The NN NN in hexidecimal and should not equal to 0 could be used to indicate the ASCII character For ex ABC 0D contains 4 bytes the 4th byte is lt CR gt B Byte Byte should start with and end with forex 0 123 255 Valid byte range is from 0 to 255 C Word Word should be start with and end with for ex 100 20000 82767 Valid word range I
6. 4 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 Ss MV Description Function Move some bytes inside the volatile SRAM Arguments ADR1_ Integer destination start position S256 1 249856 1 16 3D000 512 1 512000 1 16 7D000 X607 1 118784 1 16 1D000 X608 1 512000 1 16 7D000 NUM __ Integer how many bytes to move O 512 000 ADR2_ Integer Move from which starting position return Q_ boolean Ok TRUE Fail FALSE Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The l 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 19
7. 8837 ISaGRAF Embedded Controllers 2002 V2 0 8 S FL_STS s fl sts Description IL END Function Get file s Status end byte No that has been load by PC for the volatile SRAM Arguments ID_ Integer File identifier No 1 8 return END Integer The end byte No that has been load by PC Not been load 1 256 1 249 856 512 1 512 000 X607 1 118 784 X608 1 512 000 For ex A file of ID_ 1 is located at byte No of 1 20000 it can store max to 20000 bytes And its current available data is setting at 1001 10000 inside the volatile SRAM 1 If return END_ is 1 it means PC hasn t load it yet 2 If return END_ is 10000 Normally the value is equal to the current available ending byte No it means PC has load it from 1001 10000 3 If return END is 8000 it means PC has load it from 1001 8000 Note 1 S_FL_INI should be called first 2 S _FL_RST can be called to reset the status to 1 reset to PC hasn t load it yet Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 9 Description Function Reset file s Status to Not been load by PC yet for the volatile SRAM Arguments ID_ Integer File identifier No 1 8 return Q Boolean TRUE ok FALSE fail Note 1 S_ FL_INI should be called first 2 5 FL_STS can be called to get file s status Example demo_40 demo_41 demo_42 amp demo_44 User s Manual O
8. N4_ Integer the word value 32768 32767 to write The word written in the SRAM is Low byte High byte for ex a integer of 16 0102 it will be saved in the SRAM as 02 01 return Q_ Boolean Ok TRUE Fail FALSE Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 13 SNR SNR Description ADR I Function Read one integer from the volatile SRAM Arguments ADR_ Integer read which address one Integer occupy 4 bytes S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 return N_ integer The integer value been read 32 bit signed The integer written in the SRAM is Lowest byte 2nd byte 3rd byte High byte for ex a integer of 16 01020304 it will be saved in the SRAM as 04 03 02 01 Example demo_40 demo_41 demo_42 amp demo_44 S N W Description Function Write max to 4 integers to the volatile SRAM Arguments ADR_ Integer startfrom which address one Integer occupy 4 byte S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 NUM_ Integer how many integers to write 0 4 N1 N4_ Integer the integer value 32 bit signed to write The integer written in the SRAM is Lowest byte 2nd byte 3rd byte High byte for ex a integer of 16 01020304 it w
9. Tal End Upload 1 NotUsed Ef Upload 1 Not Used FL pled 2 NotUsed EE plo 3 NotUsed FD Upload 4 fNotUsed FE moea Not Usd PLE plod NotUsed FE Upload 7 Noted EF Upload Click Link Setup to set proper Upload All communication parameters iti ae CADocumel Click Set Load File to indicate Browse which text file to operate OO J Oo n Se kas BS 4 Destination Folder Download File Name C Documents and Settings Administrator at ey eet Load File WDloaderd tet Cancel nh Help Wrong sting found at line 2 Error st Click Download to start to download 250 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 10 3 4 Operation Functions for the battery backup SRAM The below functions are for the ISaGRAF controller to access to the volatile SRAM S FL_ INI Init one file s name amp location for the volatile SRAM S_FL_AVL Set one file s current available byte No for the volatile SRAM S FL _ STS Get file s Status end byte No that has been load by PC for the volatile SRAM So _FL_RST Reset file s Status to Not been load by PC yet for the volatile SRAM R Read one Boolean TRUE FALSE Read one Byte 0 255 a Read one Word 32768 32767 R Read one Integer 32 bit signed R Read one Real 32 bit float R Read one String ale Z gW uW D ee W Write one Boolean TRUE FALSE Write one Byte 0 255 Write o
10. f The l 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 SBR SBR Description alll ZuE Function Read one boolean from the volatile SRAM Arguments ADR_ Integer read which address one Boolean occupy 1 byte S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 return BOO_ Boolean The boolean value been read is O FALSE not 0 TRUE Example demo_40 demo_41 demo_42 amp demo_44 S BW Description Function Write max to 4 boolean to the volatile SRAM Arguments ADR_ Integer start from which address one Boolean occupy 1 byte S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 NUM_ Integer how many booleans to write 0 4 B1 B4_ Boolean the boolean value to write return Q_ Boolean Ok TRUE Fail FALSE The boolean value will be stored is FALSE 0 TRUE 1 Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 11 S BY R S BYR ADF Ml Description Function Read one byte from the volatile SRAM Arguments ADR_ Integer read which address one Byte occupy 1 byte S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 return N_ integer The byte value been read 0 255 Example demo_40 dem
11. ill be saved in the SRAM as 04 03 02 01 return Q Boolean Ok TRUE Fail FALSE Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The l 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 14 SRR SRR Description ADR R Function Read one real value from the volatile SRAM Arguments ADR_ Integer read which address one Real value occupy 4 bytes S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 return R_ Real The real value been read 32 bit float The real value written in the SRAM is Lowest byte 2nd byte 3rd byte High byte For ex Real Value of 1 23 is consists of 4 bytes gt 16 A4 16 70 16 9D 16 3F Example demo_40 demo_41 demo_42 amp demo_44 S_R_W Description Function Write max to 4 real values to the volatile SRAM Arguments ADR_ Integer start from which address one Real occupy 4 byte S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 NUM_ Integer how many real values to write 0 4 R1 R4_ Real the real value 32 bit float to write The real value written in the SRAM is Lowest byte 2nd byte 3rd byte High byte For ex Real Value of 1 23 is consists of 4 bytes gt 16 A4 16 70 16 9D 16 3F return Q_ Boolean Ok TRUE Fail FALSE Example demo_40 demo_41 demo_42 amp dem
12. iver I 7188XG ftp ftp icodas com pub cd 8000cd napdos isagraf 7188xg driver The I O library should be re installed if yours is older one Please refer to section 1 2 Or you can refer to Appendix A 2 to simply install C functions with the below items SBR S B W S BYR S BYW SMR SMW S WD R SWDW SNR S N W S_R_R S R W S DL EN S DL EN S DL RST S_DL_ STS S FL_INI S FL AVL S FL_RST S_FL_STS S MV and I O complex equipment S256 512 User s Manual Of The l 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 1 10 3 1 Access to the SRAM The SRAM can store boolean byte word integer real amp message Their format is as below Boolean True 1 False 0 1 byte Byte 0 255 1 byte Word 32768 32767 2 bytes Integer signed 32 bit 4 bytes Real float 4 bytes Message string len lt 255 len bytes To access to the SRAM the below functions can be used Please refer to Appendix A S B R S B W S BYR S BYW SMR S MW S WD R SWDW SNR S N W S_R_R S R_W Ss MV 10 3 2 Upload data stored in the SRAM For PC to upload data stored in the volatile SRAM of the ISaGRAF controllers the SRAM should be divided into 1 or max to 8 files Each file has a ID No of 1 to 8 and a name of max to 12 characters The below functions are for handling file format inside the SRAM S FL INI S FL AVL S FL RST S FL STS Please use functions of S_FL_INI amp S_FL_AVL to arrange the file resident location amp curre
13. ne Word 32768 32767 Write one Integer 32 bit signed Write one Real value 32 bit float Write one String D o lt oe 3 Z U U U U Z m Z Enable the download permission for PC to download data to the volatile SRAM L DIS Disable the download permission for PC to download data to the volatile SRAM L STS Get PC s Download Status for the volatile SRAM L RST Reset the Download Status to 1 No action for the volatile SRAM D NNN NNN NDODDMM Z O lt Move some bytes inside the volatile SRAM User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 6 S FL INI Description Function Init one file s name amp location for the volatile SRAM Arguments ID_ Integer File identifier No 1 8 NAME _ Message File name max to 8 char for the name amp max to 3 char for the extension For ex data1 txt A1234567 bin Valid char are A Z a z 0 9 andthe 1st should be A Zora z BEGIN_ Integer The begin byte No of the file BEGIN must less than END __ END_ Integer The end byte No of the file BEGIN _ must less than END __ 9256 1 249 856 9512 1 512 000 X607 1 118 784 X608 1 512 000 For ex BEGIN 101 END 5000 the file resides at 101 5000 inside the SRAM return Q boolean TRUE ok FALSE fail Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 20
14. nt available location Please refer to Appendix A amp demo_40 41 or 42 The volatile SRAM is consisted of bytes The total number of bytes available depends on which module is used as below The upper 12K is reserved Module name Byte No I 8xx7 S256 1 249 856 244K 256 244 12K is reserved I 8xx7 S512 1 512 000 500K 512 500 12K is reserved I 7188XG EG X607 1 118 784 116K 128 116 12K is reserved 512 500 12K is reserved I 7188XG EG X608 1 512 000 500K A file can be located at any place inside these bytes Each file s location can be described as Begin End Begin is the lower limit byte No of the associated file while End is the upper limit byte No and Begin is always less than End A file inside the SRAM has a current available area Head Tail Head is the starting position of the file Tail is the ending position Head can be larger less than or equal to Tail For ex a file resides at Begin End 1 20000 1 If Head Tail 1001 5 100 it means the available data of the file is starting from byte No of 1001 to 5100 The available file contains 4100 bytes 2 If Head Tail 10001 5000 it means the available data of the file is starting from byte No of 10001 to 20000 and then continued with 1 to 5000 The available file contains 15000 bytes 3 If Head Tail 5001 5000 it means the available data of the file is starting from byte No of 5001 to 20000 and
15. o_41 demo_42 amp demo_44 S BY W Description Function Write max to 4 bytes to the volatile SRAM Arguments ADR_ Integer startfrom which address one Byte occupy 1 byte S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 NUM_ Integer how many bytes to write O 4 N1 N4_ Boolean the byte value 0 255 to write return Q_ Boolean Ok TRUE Fail FALSE Example demo_40 demo_41 demo_42 amp demo_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 12 S WD R S WDR Description ADR h Function Read one word from the volatile SRAM Arguments ADR_ Integer read which address one Word occupy 2 bytes S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 return N_ integer The word value been read 32768 32767 The word written in the SRAM is Low byte High byte for ex a integer of 16 0102 it will be saved in the SRAM as 02 01 Example demo_40 demo_41 demo_42 amp demo_44 S WD W Description Function Write max to 4 words to the volatile SRAM Arguments ADR_ Integer startfrom which address one Word occupy 2 bytes S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 NUM_ Integer how many words to write 0 4 N1
16. o_44 User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 15 SMR SMR ee ADR Description Function Read one string from the volatile SRAM LEN STR Arguments ADR_ Integer read which address S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 LEN Integer Max length of the string to read 0 255 return STR _ Message The string value been read For ex data in memory is 16 31 16 32 16 33 16434 16 35 0 16 37 16 38 LEN 0 gt STR empty string LEN 3 gt STR 123 LEN 5 gt STR 12345 LEN 6 gt STR 12345 LEN 7 gt STR 12345 LEN 100 gt STR_ 12345 Example demo_40 demo_41 demo_42 amp demo_44 SMW Description Function Write one string to the volatile SRAM Arguments ADR_ Integer write to which address S256 1 249 856 1 16 3D000 S512 1 512 000 1 16 7D000 X607 1 118 784 1 16 1D000 X608 1 512 000 1 16 7D000 LEN_ Integer Max length of the string to write 0 255 STR_ IMessage the string value For ex LEN_ 0 STR 12345 gt no data written LEN 1 STR 12345 gt 16 31 1 byte written LEN 3 STR 12345 gt 16431 16 32 16433 3 bytes written LEN 7 STR 12345 gt 16431 16 32 16433 16 34 16435 0 0 7 bytes written LEN 100 STR 12345 gt 16 31 16 32 16 33 16 34 16 35
17. s from 32768 to 82767 D Integer Integer should be start with and end with forex 1234567 200000 Valid integer range is from 2147483648 to 2147483647 E Real Real value should be start with lt and end with gt for ex lt 123 gt lt 1 56E 2 gt lt 123 456 gt 3 The character between each Byte Word Integer Real String at the same line should be at least one space character lt SP gt or lt Commas gt or lt Tab gt For ex 201 to download to the SRAM which staring from byte No 201 Hello 10 20 30 40 10000 70000 End data total 18 bytes User s Manual Of The I 8417 8817 8437 8837 ISaGRAF Embedded Controllers 2002 V2 0 4 1 to download to the SRAM which staring from byte No 1 10 data total 57 bytes 1 2 3 4 5 6 7 8 9 10 lt comma lt SP gt amp lt Tab gt are all acceptable lt Q 123 gt lt 456 789 gt lt 100 gt lt 2 3E3 gt Example Please download demo_ 44 to one I 841 7 881 7 8437 8837 Then edit a text file as below 1000 250 100 START The 1000 means the blinking period of L1 is 1000 ms The 250 means the blinking period of L2 is 250 ms The 100 means the blinking period of L3 is 100 ms Then run UDloader exe You will see something change on the led of the controller He ICFDAS WDloader Upload PRAM MODULE 512 File ID File Hame Be sin Head
Download Pdf Manuals
Related Search
Related Contents
`らく らく設置請操作も簡単!環境に優しいエコヒーター登場。 ` 野給 ~ やさ CONSEIL EXÉCUTIF 取扱説明書(PDF : 1.8MB) 468050085-02 installation Fr r e s e a r c h Plinius Audio SA-102 User's Manual 5. Funcionamiento Chief NAF31HBA rack accessory Manuel d`utilisation User`s Manual Template Copyright © All rights reserved.
Failed to retrieve file