USB mount/remove commands via PLC

Hello,

is there a way to mount/remove an USB device connected at XF01 (CoreX3) via PLC commands?

Just found ways with Node-Red.

Because all things like detecting an USB, read and write files, and so on, ware possible with PLC commands.

In any way I want to avoid using different programing which only makes punsh of functions and ends in a mixed up result.

It would be a great pleasure if doing this

and maybe this

with PLCcommands only.

Are there any hints?

Thanks

 

Best reply by alink

Right now,  I found another way to get it working. It's not what I'd like to have but good enough to have a first solution:

With my own Visu (CoDeSys WebVisu) I placed the "webbrowser" element and browse to ctrlX OS Web infterface.

In ctrlX OS Web Interface there is a new user "user" with restricted permission just to manage "storage".

There the user can "mount"/"remove" a USB storage device.

With that, I reached what I wanted to have:

-Customer / user musn't start a webbrowser or call another page

-Customer / user can do it from my Visu

-No further code, software, program or anything is needed

What I don't like:

-Customer has contact with base system (ctrlX). Thanks to limited permissions it should be save but who knows what customer does intendend/unintendend

CodeShepherd are there any plans to implement the function in DataLayer? Because status request is possible, giving commands like mount and remove would be great and makes it much easier and safer (not for me, for my customers).

Thanks guys for hints and help

 

View original
12 replies