11 - 243 11 - 243
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
400 PCRD TBL%(),A%()
:
'Executes the read operation
410 END
420 H!=INT(D!/65536!)
:
'Splits into lower and higher digits
430 L!=D!-H!*65536!
440 H$=RIGHT$("0000"+HEX$(H!),4)
450 L$=RIGHT$("0000"+HEX$(L!),4)
460 L%=VAL("&H"+L$)
470 H%=VAL("&H"+H$)
480 RETURN