Hello I need to make the Linux serial ports (ttymcx0, 1, 2 and 3) available to Codesys (Com1, 2...) Is there a guide? Is it something I do when I deploy the Codesys SL? thanks
Hello I need to make the Linux serial ports (ttymcx0, 1, 2 and 3) available to Codesys (Com1, 2...) Is there a giude? Is it something I do when I deploy the Codesys SL? thanks
Hello SDO will write to the drive, not the axis, so you need to pass in the ethercat slave: VAR_IN_OUT Axis: IoDrvEthercatLib.ETCSlave; END_VAR Then you can get the address with: Axis.PhysSlaveAddr (as UINT)
Hello SDO will write to the drive, not the axis, so you need to pass in the etherct slave: VAR_IN_OUT Axis: IoDrvEthercatLib.ETCSlave; END_VAR Then you can get the address with: Axis.PhysSlaveAddr (as UINT)
thanks...I changed to I POINTER which is perfect.
hi all I have a FB with IN/OUT variable. Inside the FB, I want to get the address of the IN/OUT variable. If I use __SYSTEM.VAR_INFO, I get the address of the FB copy rather than 'external' variable. VAR_IN_OUT MyVar: bool; END_VAR VAR Info: __SYSTEM.VAR_INFO; END_VAR Info := __VARINFO(MyVar); This give me the address of MyVar but I actually want the address of the variable passed to MyVar Any clues please?? thanks, ph
hi all I have a FB with IN/OUT variable. Inside the FB, I want to get the address of the IN/OUT variable. If I use __SYSTEM.VAR_INFO, I get the address of the FB copy rather than 'external' variable. VAR_IN_OUT MyVar: bool; END_VAR VAR Info: __SYSTEM.VAR_INFO; Info := __VARINFO(MyVar); This give me the address of MyVar but I actually want the address of the variable passed to MyVar Any clues please?? thanks, ph
Hello I've made an FB which is a TCP server. It uses the excellent CAA NetServices library. If I have the FB in a task <4ms, then the RT crashes immediately at boot up. If the task >=4ms, it starts and runs perfectly. This is even if the block is not doing anything; just instantiated. Am I missing something silly? Why would a low task time cause this? 4ms is perfectly adequate, but I'm just interested why... thanks PH