Data format of Siemens PLC 200
Your integer 65535 is beyond the range of single integer and word, so I output an error result, trying to explain that numbers over 32768 should use double integer di, and "integer" is a data format of word, and some of them have independent data types. Integer comparison instructions refer to integer types, not the integer format of words, so some comparison instructions must be converted by conversion instructions first. For example, if you need to compare the contents of one word MOV_W with that of another word VW200, you must use a double-word transfer instruction and a double-integer comparison instruction, so you must first convert this double-word into a double-integer type before you can compare it.