Hi I use the "ROL" function but gets a warning (1510) that I should use "Typed Literal". How do I do that on a variable that its not a constant?
Example code:
VAR Β Β STATUS:WORD:=16#0; END_VAR STATUS:=ROL(8,STATUS);
Regards Johan
Status:= ROL(Status,8) ``` --> means Status is rotated by 8
Status:= ROL(WORD#8,Status)
``` --> means 8 is rotated by Status
br Ralph
My mistake, sorry.
Log in to post a comment.
Hi
I use the "ROL" function but gets a warning (1510) that I should use "Typed Literal". How do I do that on a variable that its not a constant?
Example code:
Regards
Johan
Status:= ROL(WORD#8,Status)
``` --> means 8 is rotated by Status
br
Ralph
My mistake, sorry.