controlconcepts
Lifetime Supporting Member
I have a plc 5/20 with ascii trouble...
every time I think I have a code change
well thought out. I try it works great..
Then not so much.. Will work if the same
type of command is sent and when a
different type of command is sent it
seems to receive the last commands
buffer...
So here is the setup
plc5/40 com 0 sending raw simple commands
to a audio/video controller ( If anyone
knows them it is an Extron mva1616 ) such
as mute input 1, tie audio input 1 to
output 3, and say tie video input 3 to
output 2...
The AWT logic works every time.
but no mater what the ARL or ARD I use or
code I have tried I cannot get the correct
response 60% of the time. It seems to
work fine then send a command ( for
example mute output 1 {1*1Z} expected
response is {Amt01*0} ) and works OK.
then try again and again with different
commands and instead of A {Amt01*0} it
returns {Vmt01*0} one of the last
commands that was sent... The read is
very unpredictable and I think if there
was a way to clear the buffer like in a
SLC this might work but not in a P5.
Well here is the slopppppy file to it any comments or great answers are always welcome!!!!!!!!!!!!!!!!!!
Thanks,
Matt
every time I think I have a code change
well thought out. I try it works great..
Then not so much.. Will work if the same
type of command is sent and when a
different type of command is sent it
seems to receive the last commands
buffer...
So here is the setup
plc5/40 com 0 sending raw simple commands
to a audio/video controller ( If anyone
knows them it is an Extron mva1616 ) such
as mute input 1, tie audio input 1 to
output 3, and say tie video input 3 to
output 2...
The AWT logic works every time.
but no mater what the ARL or ARD I use or
code I have tried I cannot get the correct
response 60% of the time. It seems to
work fine then send a command ( for
example mute output 1 {1*1Z} expected
response is {Amt01*0} ) and works OK.
then try again and again with different
commands and instead of A {Amt01*0} it
returns {Vmt01*0} one of the last
commands that was sent... The read is
very unpredictable and I think if there
was a way to clear the buffer like in a
SLC this might work but not in a P5.
Well here is the slopppppy file to it any comments or great answers are always welcome!!!!!!!!!!!!!!!!!!
Thanks,
Matt