![]() ![]() Then*I used the*whole program ( example, LibFileIO1_ST) but*I don't know how i can save my data logging file into USB.*I tried to use FileCopy for that but I don't know what should I write in destination name, source name and new file, file name? **DevLink_0.pParam := ADR(device_param) * (*the path of the Device is assigned*) **DevLink_0.pDevice := ADR(device_name) * (*Devicename is assigned*) **strcpy(ADR(device_param), ADR('/DEVICE=')) * (*first part of parameter get copied to device_param-Variable*)** ![]() **strcpy(ADR(device_name), ADR('DEVICE_USB')) * (*fixed Device-Name get copied to device_name-Variable*)*************** *CREATE_FILE_DEVICE:* (*Library FileIO - Functionblock DevLink() - create file out of data just from 1. I used AsUSB library first and*I used *(example, LibAsUSB1_ST) program to get path of USB and*I get the system the path / bd0. I want to save datalogging(csv files) from PLC (x20) to USB with help of*FileIO. If there are still open points you can contact the responsible B&R office in your near - for sure they are happy to help you. “HD0”) that was created with AS or the DevLink FBK. Points to the name of an existing file device (e.g. So when you will call another function block e.g. So the notation in Stucture Text will looks like e.g. ![]() ![]() You can see that there is pDevice parameter so you will add some name it's up to you and this name you will use for other function blocks from FileIO library. It can be used by the other FBKs after a successful linking (e.g. When you look to the help on Location ID 3.15.15.7.3.28 so there is description of DevLink function block. The device name you will get from function block DevLink which you have to use in both cases USB and Ethernet. I don't know which AR version is in use, find enclosed valid for AR 3.xx and 4.xx. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |