UROM 1-4 Character?

rfeyer

Active Member
Hi all,
 
can UROM 1 to 4 be character variables?
and, if so, how can it be compared in PLC code?
 
I tried setting UROM1 to UP in GUI.  I then tried following code:
 
START
TSTEQ UP UROM1
SET OP1 1
END
 
This did not work,
 
any help appreciated!

Rainer
 
No, UROM is a 32 bit number, that storage can not store character
In addition, to prevent EEPROM damage, from within PLC, it can not directly set UROM value, that is read only in PLC.
EEPROM only has 50K write cycle from the chip manufacture. Any bug in PLC code could ruin the whole board by damaging EEPROM, that is why we do not let PLC code write to EEPROM.
If you want to store information, probably best to use WC32 with USB flash key to store variables.
 
Just curious, what kind of characters do you want to store on WC8? For what purpose?  That may help us for future firmware development.
 
I thought I could interactively use the GUI values interactively, in that case it would have been nice to be able to store such values as 'open' or 'closed' to uvar1 and that would let me know if current state of door is open or closed without utilizing more of the ttl's
 
Back
Top