Hello,
Codesys IDE is 3.5.21.30
IoDrvBase is: 3.5.17.8
I am working on implementing Codesys on our I/O product line, using the IO driver examples, and the Linux UDS socket approach.
I have sucessfully created an implemetation where I have a Device with mutiple slots, on which I can plug modules. These modules represent our IO modules, and communication is successful.
(For this question the assumtion can be made that Codesys commucates with 1 'master' device, which handles further communcation with the IO modules. For the next part of the question it can be
assumed that the Master device has a list of which modules are attached/available)
I'm now trying to implement the 'Scan for Devices...' feature, but I'm completetly lost on what to do once the IoDrvScanModules method is called in my IoDrvFB.
I'm guessing that the ppConnectorList has to be filled with the found devices, but I have no idea if that is the correct approach. And Codesys is not triggering my breakpoints in the method, which makes things more difficult.
I hope someone could provide some examples or guidance on what steps I should take to implement the scan feature.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Codesys IDE is 3.5.21.30
IoDrvBase is: 3.5.17.8
I am working on implementing Codesys on our I/O product line, using the IO driver examples, and the Linux UDS socket approach.
I have sucessfully created an implemetation where I have a Device with mutiple slots, on which I can plug modules. These modules represent our IO modules, and communication is successful.
(For this question the assumtion can be made that Codesys commucates with 1 'master' device, which handles further communcation with the IO modules. For the next part of the question it can be
assumed that the Master device has a list of which modules are attached/available)
I'm now trying to implement the 'Scan for Devices...' feature, but I'm completetly lost on what to do once the IoDrvScanModules method is called in my IoDrvFB.
I'm guessing that the ppConnectorList has to be filled with the found devices, but I have no idea if that is the correct approach. And Codesys is not triggering my breakpoints in the method, which makes things more difficult.
I hope someone could provide some examples or guidance on what steps I should take to implement the scan feature.
Thanks in advance.