Hello everyone.
I have a customer that has only one digital line for communicating between cnc machine and Fanuc robot, and now he would like to do some more complex communication. I would like to have patterns of pulses as signals. So two short pulses separated with pause, let's say 20msec each, would be example of simplest pattern.
I can read that in BGlogic, but how can I check if the pulses are correct size?
I come from Arduino and C, so my idea was to check if it is a new pattern, timestamp first 4 changes in IO, see if the differences match the pattern and if more than X time passes reset the new pattern flag.
Can I just use something like "Millis()" to get time from start of execution or any other timestamp with fractions of seconds?
Is there a better way to do this? I have 3 machines and each has to be monitored separately...