Get Target AmsNetId and Vision Default Image Directory

Join Date
Mar 2024
Location
Netherlands
Posts
3
I am working with Twincat 3. I am trying to store some images in files and when PLC restarts I want to read those files and get the images. Everything Is working fine but I have to create a button to automatically clear these images from files also. for this I have found the FB_FileDelete function block. but it requires me to pass the Ams NetId of the target and the file name along with the path. How do I find out the NetId of current Target. Here target can be local or any other (for local we can set it to empty string) but I want the netId of whatever it is selected currently.
Also while storing image i am using the default Image directory set from Vision Service Configuration and using the FB_VN_WriteImage , FB_VN_ReadImage function block for reading and writing images by only providing the filename without the path . but for clearing the image i need the path as well, How do I get the Default Image Directory path Programatically in PLC programs?

1710931120148.png
 

Similar Topics

Hi All. I am setting up an Omron 1S Servo Motor to drive a conveyor. It goes forward 200mm, pauses and repeats until it is stopped. However...
Replies
3
Views
751
Hi All I'm trying to understand how to open a project from target PLC (from the online help it seems to be possible, the following quote is...
Replies
1
Views
1,118
I'm new to Fanuc robots. I have a simple program that does J PR[R[162]] R[20:SPEED]% CNT R[23:BLEND] ; I also have a digital output which...
Replies
1
Views
1,144
Hello All, I'm hoping someone can shed a little light on FTV ME runtime comms configuration for me. I've got a FTV ME client (PanelView 1500)...
Replies
0
Views
1,236
On our PLC we've got a HMI where the operator can enter a target rotor speed in RPM. When target speed is enabled, M70 = TRUE. Then the operator...
Replies
19
Views
2,830
Back
Top Bottom