labeledas
Member
Hi all,
I got thrown into a project using a D2-240 CPU, never used Directlogic or AD before this morning and am fumbling through it but have a few questions regarding AD's handling of negative math results using BCD format.
This is an upgrade/Modification to an existing project and I don't have access to the hardware to just test this out.
I don't need negative results but just wondering what happens if the calculation results in a negative number.
For example:
LD V2001
SUB V2022
OUT V2002
IF V2001 = 10
V2022 = 5
V2002 will equal 5
What happens when
V2001 = 5
V2022 = 10
am i right to assume from my readings that
V2002 will = 5
With SP70 being set to 1
or will it cause a fault
again I am not familiar with this brand, I usually only with with the Logix 5000 platform, and am under the gun to get this done as I am the 'PLC Guy' and am supposed to show up to site with the program working and this is the only thing really holding me up at this point
Thanks in Advance
I got thrown into a project using a D2-240 CPU, never used Directlogic or AD before this morning and am fumbling through it but have a few questions regarding AD's handling of negative math results using BCD format.
This is an upgrade/Modification to an existing project and I don't have access to the hardware to just test this out.
I don't need negative results but just wondering what happens if the calculation results in a negative number.
For example:
LD V2001
SUB V2022
OUT V2002
IF V2001 = 10
V2022 = 5
V2002 will equal 5
What happens when
V2001 = 5
V2022 = 10
am i right to assume from my readings that
V2002 will = 5
With SP70 being set to 1
or will it cause a fault
again I am not familiar with this brand, I usually only with with the Logix 5000 platform, and am under the gun to get this done as I am the 'PLC Guy' and am supposed to show up to site with the program working and this is the only thing really holding me up at this point
Thanks in Advance
Last edited: