8/6/2010 5:05 AM | |
Joined: 7/28/2010 Last visit: 4/25/2023 Posts: 184 Rating:
|
Hosseini, There is no command such as "-AR1". You can use "CAR1" to transfer the contents of AR1 to ACCU1 and decrement the value there and use LAR1 to transfer it back. Regards, Behnam www.sigmaprocess.ca |
8/6/2010 6:52 AM | |
Posts: 2348 Rating:
|
>>You can use "CAR1" to transfer the contents of AR1 to ACCU1 Misspelled i guess, command is TAR1:^) |
8/6/2010 9:26 AM | |
Joined: 10/7/2005 Last visit: 6/9/2023 Posts: 2969 Rating:
|
Hello hdhosseini While I personally also miss a "-AR1" and "-AR2" command in S7,there is a relativelyeasy way around it as shown below (this is what I typically do anyhow and is also what jklmsuggested): [code]L-32// need to subtract 32 Bits (= 1 REAL) +AR1 // from AR1 (and wish S7 had a "-AR1 P#x.y" command) [/code] I hope this helps |
Cheers |
|
This contribution was helpful to
1 thankful Users |
8/6/2010 9:37 AM | |
Joined: 7/28/2010 Last visit: 4/25/2023 Posts: 184 Rating:
|
Thanks Aret. My mistake. Behnam www.sigmaprocess.ca |
Follow us on