Before installing the ISaGRAF workbench, the following software should already included. With the target code so it can be downloaded with it. Refer to the. If the data type in the related file position is not REAL type (32-bit float format), using “F_READ_F” function to read this data may generate a local controller fault No = 117 (please refer to Chapter 10.6). 2.Only Wincon-8xx7 / 8xx6 support File operating functions. Not for I-8xx7 and I-7188EG/XG. If the file path is inside the ‘ CompactFlash ’ folder, for example- ‘ CompactFlash data1.txt’, the file will be stored in the Compact Flah card in Wincon and this file will exist even the Wincon’s power is switched Off. However it is very slow to Read / Write file in the Compact Flash card. If the file path is not in the ‘ CompactFlash ’ folder, for example – ‘ Temp data2.txt’, it will be stored in the RAM memory of the Wincon. The file saved in Wincon’s RAM will be lost when power is switched OFF. The advantage of Reading / Writing file in the RAM memory is it is much faster than operating in the Compact Flash card. W-8xx7 supports below ISaGRAF standard functions. F_ROPEN Open file in Binary format for read operation (file should exist already). F_WOPEN Open f ile in Binary format for read and wr ite operation (file should exist already). F_CLOSE Close a file. F_EOF Test if reach the End-Of-File position. FA_READ Read one binary long integer (4-bytes, signed) from file. FA_WRITE Write one binary long integer (4-bytes, signed) to file. FM_READ Read one message (string) from file. FM_WRITE Write one message (string) with characters at the end of message to file. F_APPEND Append one file to the end of the other file. F_COPY Copy one file to another file. F_CREAT Create a new file. F_DELETE Delete a file. F_DIR Create a new directory (folder). F_END move current file position to the End-Of-File position. F_SEEK Move current file position to a specified position. F_READ_B Read one binary byte (0 - 255) (1 byte, unsigned) from file. F_WRIT_B Write one binary byte (0 - 255) (1 byte, unsigned) to file. F_READ_W Read one binary word ( -32768 to +32767) (2 byte, signed) from file. F_WRIT_W Write one binary word (-32768 t o +32767) (2 byte, s igned) to file. F_READ_F Read one binary REAL (4-bytes, Float) from file. Like 123.45, -2.15E-03, F_WRIT_F Write one binary REAL (4-bytes, Float) to file. F_WRIT_S Write one message. The “Wdemo_51.pia” can be found at W-8xx7 CD-ROM: n apdos isagraf wi ncon demo or If function s of Msg_F, Msg_N, ARY_ F_R, AFY_F_W are not foun d in your PC / ISaGRAF, please download “ICP DAS utilities For ISaGRAF” at. ![]() Then run “setup.exe” to restore them to your ISaGRAF workbench The “Wdemo_51” program will read 10 REAL values from “ CompactFlash data51.txt” when the W-8xx7 is just power up or user set the “RE_LOAD” value to become “TRUE” at any time. (To read / write file in the Compact Flash card take lots of CPU tim e, please do not read / write it frequently. And please always close the file after the operation. If user read / write file in every PLC scan cycle, the PLC scan time will become a very big time. It will be a bad performance!) To test this sample program, please edit a text file “data51.txt” in your PC by, for example – “Notepad”. Please enter 10 rows, each contains one Real value. Hp 2000 notebook pc windows 7 drivers. Then download this “data51.txt” to Wincon’s “ CompactFlash ” folder by “ftp” utility. The content of the “data51.txt” looks like below. Download Center Welcome to the ISaGRAF Download Center. If you would prefer to have a demo of our software sent to you, please follow the link below and fill out the demo request form: Download ISaGRAF 6 • • • Download ISaGRAF 5 • Download ISaGRAF 3 Download OPC DA Server • • Download Service Packs: Please note: If you are using a customized or 3rd party version of ISaGRAF, contact your vendor before installing an ISaGRAF service pack. If you are unsure of the type/version of ISaGRAF that you are using, contact your vendor. ISaGRAF 5.1 You must have ISaGRAF version 5.1x installed in order to install the service pack.
0 Comments
Leave a Reply. |