I've got a hardware-button connected to a CANOpen-slave which sends messages when the button is pressed asynchronously. In my master PLC application I have a loop polling to see whether the button bit-value has the value true or false. (It's bit number 4 of the first data byte in the frame with ID: 0x290)
To get an real idea its necessary to get more information. Wich PLC is used and if you which CanOpen stack. What's your cycletime.
By the way did you build a real loop inside your program. If So it is quite nore to get no reaktion of your input. Physical in and outputs (also In/Out on Can) are mapped to the so called Process Image. This Process image is refresched every beginn of the PLC Cycle in an outer loop. So if you bild a loop you never reach this refreshing.
Regards
Ralph
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got a hardware-button connected to a CANOpen-slave which sends messages when the button is pressed asynchronously. In my master PLC application I have a loop polling to see whether the button bit-value has the value true or false. (It's bit number 4 of the first data byte in the frame with ID: 0x290)
To get an real idea its necessary to get more information. Wich PLC is used and if you which CanOpen stack. What's your cycletime.
By the way did you build a real loop inside your program. If So it is quite nore to get no reaktion of your input. Physical in and outputs (also In/Out on Can) are mapped to the so called Process Image. This Process image is refresched every beginn of the PLC Cycle in an outer loop. So if you bild a loop you never reach this refreshing.
Regards
Ralph