FTVS Writing -1 to Integer when it should write 1

JZerb

Member
Join Date
Oct 2016
Location
Here
Posts
421
so as im designing some HMI screens here im working through testing some of the INFORMATION MESSAGES i have setup and i have found an issue. When the .mer, or just using the test diaplay in FTVS ME, should be writing a 1 to an HMI tag thats attached to an N7 data file, its writing a -1 instead of just a 1. it first happened to me with the ACK button on the INFORMATION MESSAGES screen, but to make sure i could replicate the issue i just setup a Momentary Push Button in FTVS and i can watch when testing the display the button writes a -1 to the integer file that it should be writing a 1 to. anyone have any insight on this issue? thanks!
 
-1 is that all bits of integer are "1" state.
Are you writing with bit command to full N7 integer variable?

You maybe need to convert N7 to individual bits on HMI side and attach these invidual bits to buttons.
Or if you can use word command on button, then write "1" to N7 data.
 
-1 is that all bits of integer are "1" state.
Are you writing with bit command to full N7 integer variable?


i am writing to N7:0. i usually an N7 register to trigger alarm or message values on the HMI, N7:0 for INFORMATION MESAGES, N7:1 for ALARMS so figured i could write FROM the HMI in the same manner, but it seems as if it handles it a different way as you just said above.



You maybe need to convert N7 to individual bits on HMI side and attach these invidual bits to buttons.
Or if you can use word command on button, then write "1" to N7 data.
 
Is your tag setup in the HMI with Data Type > integer

I have had problems when leaving the tag set as default.

Data Type.PNG
 

Similar Topics

I'm trying to use a Numeric input enable to let users change their HMI password. The only problem is it deletes leading zeros when you enter it. I...
Replies
2
Views
1,923
title says it all. at what point in time are ( ) required when writing expressions in FTVS? is it only when you want to 'look' at things it...
Replies
1
Views
1,503
If it had a modem it would be damned near ideal. I still have at least half-a-dozen sites I call into using a modem. Besides the Rockwell stuff...
Replies
0
Views
1,269
Can you have a connection between the .mer application and multiple PLC's (runtime targets?) So rather than messaging certain status bits from...
Replies
4
Views
2,041
something i found today working with global objects in FTVS v10. If you have an object within your global object screen that is OUTSIDE the...
Replies
1
Views
1,600
Back
Top Bottom