I am working on a project using a NB screen and NX1P2 PLC.
I am having a really hard time getting a real number to properly translate through to the PLC.
For example, i have 1.25 entered in a numeric entry box on the screen, the decimal format of the DWORD in the PLC shows up as 1067450368. I have tried different ways of converting including DWORD_TO_REAL, but i am unable to get the 1.25 or even an INT/DINT of 125 to show in the PLC.
Is there a trick for entering REAL numbers on an NB screen and taking that data into the PLC?
NB Screen Setup:
Numeric Data -
Storage Format: Float
Data Length: DWORD
Integer: 2
Decimal: 2
Variable Table -
Memory Type: Word
Area: H
Address: 110
Data Format: BIN
NX1P2 Setup:
Global Variable
Data Type: DWORD
AT: %H110
I am having a really hard time getting a real number to properly translate through to the PLC.
For example, i have 1.25 entered in a numeric entry box on the screen, the decimal format of the DWORD in the PLC shows up as 1067450368. I have tried different ways of converting including DWORD_TO_REAL, but i am unable to get the 1.25 or even an INT/DINT of 125 to show in the PLC.
Is there a trick for entering REAL numbers on an NB screen and taking that data into the PLC?
NB Screen Setup:
Numeric Data -
Storage Format: Float
Data Length: DWORD
Integer: 2
Decimal: 2
Variable Table -
Memory Type: Word
Area: H
Address: 110
Data Format: BIN
NX1P2 Setup:
Global Variable
Data Type: DWORD
AT: %H110