Unity Pro XL - read only variable issue

SCADA_Dude

Member
Join Date
Feb 2008
Location
California
Posts
115
I have an ebool variable that I want to access via modbus as read only. This variable is set in the PLC logic when a tanks level is high. When I assign this high level bit an address of %I, Unity Pro does not compile saying that the bit is now read only. What is the usefulness of %I if you cant write to the bit! (aside from physical IO) If I make this a %M, dont I run the risk of this bit being changed from an HMI,driver glitch, etc? I have some bit that I DO NOT want modified by the outside world.

Thanks
 
%I is only for physical inputs.

If you want to use unchangable data in PLC you can put it into %KW memory area.

SCADA_Dude said:
If I make this a %M, dont I run the risk of this bit being changed from an HMI,driver glitch, etc?

If your %M variable is calculated every scan cycle in the PLC there is no such risk.
 
Last edited:
Do %K even exist in Unity ?

If it is an input map your %I to an EBOOL then make that read only not the %I

To make it read only in the program right click it in the data editor got to properties and uncheck the RW program box.

You can also make it a constant in here too if you wish
 
%K does not exist.

As I understood, SCADA_Dude wants variable to be read-only only for external world, not for his program.
 
Why not do whatever calculation required in unmapped tags (so hmi can't reference them) and move the values into mapped variables to display the result. Then even if they are changed from outside it will have no effect (and the plc will just move the calculated value back over the changed values)
 

Similar Topics

I've got a client who wants to pilot a Schneider's M580 controllers in Unity Pro and use their OFS OPC server to read tags straight out of the...
Replies
2
Views
1,337
Hello, I am using Unity pro V15. I have Quantum CPU 671 and Ethernet NOE 77101 configured. I have configured IO scanning on NOE. I have attached...
Replies
5
Views
168
HELLO MY FRİENDS ı have problem. ı tought you can solved thıs problem for me. First of all When I checked all the cable connections of the...
Replies
0
Views
399
Hi All, I haven't installed Unity Pro in years and needed to install it recently. I initially tried installing Version 11.1 and the whole...
Replies
3
Views
694
Hello i want to implement a Read_var / Write_var functions to communicate with a modbus tcp device at the moment i use the unity simulator at the...
Replies
4
Views
1,900
Back
Top Bottom