Brandon_K
Member
Possibly a bit of an odd one for a PLC, but why not.
I need to display morse code messages on a indicator lamp, but I also need to be able to change them easily, so that rules out hard coded timers.
My initial thought was to have a drum instruction for each letter. I tried this in a limited test and it works, but I'm not sure what the best way to trigger a sequence of drum instructions would be. Ideally I'd be able to put the message in a string and then convert that in a way to run the drums. But I'm not sure how to best go about that.
Dots and spaces are ~92ms, dashes are ~276ms. I'm using Productivity, so I have a fair number of instructions available.
Thoughts?
I need to display morse code messages on a indicator lamp, but I also need to be able to change them easily, so that rules out hard coded timers.
My initial thought was to have a drum instruction for each letter. I tried this in a limited test and it works, but I'm not sure what the best way to trigger a sequence of drum instructions would be. Ideally I'd be able to put the message in a string and then convert that in a way to run the drums. But I'm not sure how to best go about that.
Dots and spaces are ~92ms, dashes are ~276ms. I'm using Productivity, so I have a fair number of instructions available.
Thoughts?