I am not using Modbus? I talk directly with the OpenPLC memory by mapping the Analogic Input area, I regularly read and write the area but it only accepts INT values, moreover if I try to use a UINT directly on the Variable Editor
PIPPO = UINT set as (which by standard must be a word 0-65535)%IW
the debug stops and creates this error:
atest build does not match with connected target.
Program matches PLC MD5
PLC data transfered successfully.
PLCobject : NewPLC (49b1551b9d44e2fa6b55e9a5940c87e6)
PLC installed successfully.
PLCobject : PLC started
PLCobject : Python extensions started
Avviando il PLC
Exception in thread PLCTrace:
Traceback (most recent call last):
File "C:\Users\Computer\OpenPLC_Editor\python\lib\threading.py", line 973, in _bootstrap_inner
self.run()
File "C:\Users\Computer\OpenPLC_Editor\python\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Computer\OpenPLC_Editor\./editor\runtime\PLCObject.py", line 953, in TraceThreadProc
self.remote.send_debug_set_query(variable_idx, True, force_value, iec_type)
File "C:\Users\Computer\OpenPLC_Editor\./editor\runtime\openplc_debugger.py", line 146, in send_debug_set_query
data = struct.pack(">H", varidx) + struct.pack(">B", flag) + struct.pack(">H", 2) + struct.pack(">h", value)
struct.error: 'h' format requires -32768 <= number <= 32767
Is there a data exchange area available with the hardware that accepts both INT and UINT?
Where can I find information about the usable exchange areas and the different formats?