ChrisOfMaryland
Member
Can't LINT (long integer) tags be used in assignment in RSLogix5000?
When I define any LINT tag and use it either as the source or the destination, or use LINTs as both source and destination, I get "Assignment to tag of specified data type invalid." as an error message. For example (in ST) two LINTs in "MuSecTotal := MuSec1970;" generates the error, but two DINTs in "SecTotal := SecToday;" is fine.
Other things that write into LINTs work, for example "GSV(WALLCLOCKTIME,,CurrentValue,MuSec1970);". The PLC will run the program and watching the tag shows reasonable values. But the assignment operator := does not seem to work with these. It works fine with INT and DINT, even when they are mixed.
"LINT" and "assignment" and ":=" all come up empty when searching the help system. The link for "Data conversion" in the help system is broken.
Thanks!
When I define any LINT tag and use it either as the source or the destination, or use LINTs as both source and destination, I get "Assignment to tag of specified data type invalid." as an error message. For example (in ST) two LINTs in "MuSecTotal := MuSec1970;" generates the error, but two DINTs in "SecTotal := SecToday;" is fine.
Other things that write into LINTs work, for example "GSV(WALLCLOCKTIME,,CurrentValue,MuSec1970);". The PLC will run the program and watching the tag shows reasonable values. But the assignment operator := does not seem to work with these. It works fine with INT and DINT, even when they are mixed.
"LINT" and "assignment" and ":=" all come up empty when searching the help system. The link for "Data conversion" in the help system is broken.
Thanks!