Proworx 32 Simple Question

Galaniz

Member
Join Date
Feb 2012
Location
Corpus Christi
Posts
34
I have another simple question. This time it is in regards to Proworx use of signed and unsigned integers in the SUB function. The modicon manual states "
The SUB instruction performs a signed or unsigned 16-bit subtraction (value 1 -
value 2) on the top and middle node values, then posts the signed or unsigned​
difference in a 4x holding register in the bottom node."

How is it determined if the output will be signed or unsigned. I uploaded a program with a SUB instruction. The top register is 40100 (set to 92 in register editor) middle is register 40108 (set to 275) and the bottom is 40116 (reads 183). The radix is set to decimal for all and when I changed the radix to signed for 40116 it was still positive 183. How would I set the output to read negative or is there something I am missing. I am converting over to compactlogix so if the SUB is actually subtracting and taking the absolute value I would like to figure that out now.

Thanks
Gabriel
 
In a 984LL program you would need to check the output of the lower node on the block. If the output is passing power then the result is negative. However, the register will contain the absolute value of the result.
 

Similar Topics

I have a zip file of a program that I'm told was created in Proworx NxT. Would the comments be stored in it if I could find the software or...
Replies
2
Views
581
When making changes, I was taught to go to Combined > Make Change > go to Offline > will prompt to save > Save > Exit out of program > will prompt...
Replies
0
Views
629
Would like to ask .. if anyone here know about creating own library or function block on ProWORX NxT ? I have a backup of ProWORX NxT project...
Replies
3
Views
1,066
Hi I have a modicon 984 with proworx 32 that is scaling an analog input, and I need to adjust the scaling. I have new analog input values and %...
Replies
3
Views
1,738
Hello everyone! I need help getting the installer for Proworx 32, I have to backup a 140 CPU 434 12A but I cannot find it anywhere on the...
Replies
4
Views
2,578
Back
Top Bottom