10/19/2010 1:53 PM | |
Joined: 8/16/2010 Last visit: 1/19/2022 Posts: 50 Rating:
|
I was attempting to address an output word using a decimal value. Please could someone tell me if I'm approaching my problem correctly... I have 12 outputs connected to the plant, addressed as shown below. Addr -Symbol - Comment Q6.0 - Setpoint_Bit_00 - Bit 0 of 12 bit code Q6.1 - Setpoint_Bit_01 - Bit 1 of 12 bit code : : : : :: Q7.3 - Setpoint_Bit_12 - Bit 12 of 12 bit code The remaining bitsof output Q7 (i.e Q7.4 - Q7.7) are masked so as not to be affected by the value I am sending. But what I have found is that if I do... L 1 T QW6 This sets bit Q7.0 and NOT Q6.0 as I would have expected (coming froma Rockwell ABbackground). Am I right in thinking that whenever I want to senda decimal value to the output word I must first use CAW to swap the bytes around? Is this the correct approach or is there a better method? Any replies greatly appreciated. Thanks, RandomCoder Splitted from Swaped word. |
Last edited by: O_Moderator at: 10/20/2010 10:15 AMnew subject after splitting |
|
Follow us on