Hello,
I am a veteran Mitsubishi programmer, but am new to AB. I have a Micrologix 1500. I am receiving a string via RS232 on Channel 1. In that string there is a character that is a response character to a command. Each bit in that character means something. i.e. bit 0=error, bit 1=busy, bit 2=bad command etc.
My question is, how to I take a single character and get bit values out of it? I tried ACI instruction but since it is not a number, this fails. Then I tried MOV ST10:0.DATA[1] N7:0 and then accessed the bits via N7:0/1 but this didn't seem to work either. Am I missing something?
Thanks for any help.
I am a veteran Mitsubishi programmer, but am new to AB. I have a Micrologix 1500. I am receiving a string via RS232 on Channel 1. In that string there is a character that is a response character to a command. Each bit in that character means something. i.e. bit 0=error, bit 1=busy, bit 2=bad command etc.
My question is, how to I take a single character and get bit values out of it? I tried ACI instruction but since it is not a number, this fails. Then I tried MOV ST10:0.DATA[1] N7:0 and then accessed the bits via N7:0/1 but this didn't seem to work either. Am I missing something?
Thanks for any help.