AC500 MODBUS on PM564 com2
I'm using a PM564 with a TA562-RS fitted to com2, configured for MODBUS as per the screen grab below. I've set up a really simple project which uses function block COM_MOD_MAST to
send a message every few seconds, I break on COM_MOD_MAST.Done and I'm consistently getting error code x3003 - "Another protocol is configured" which points to a configuration
I've tested the same hardware with configuration in ASCII mode and and function block COM_SEND - it all works as expected. I have various PC's with different development platforms installed, the screen grab is from Automation Builder 2.1 (basic), I get the same result using Control Builder Plus 2.2.0 (CoDeSys 220.127.116.11). No data appears on the com port lines when in the MODBUS configuration.
Any help would be much appreciated.
For testing purpose, use the output of a blink block as enable input to the single COM_MOD_MAST block.Set LOW_TIME=1s and HIGH_TIME=or > cycle time of PLC_PRG program and less than TIMEOUT value.
Also, either assign a MODBUS memory address (ex:%MW0.0) or an array variable of length=2 and data type word ( ex: TEST_ARRAY) to ADR operator function.
Verify whether baudrate, parity,databits and stop bit values are same as that of the slave device. In the COM-2 modbus parameters settings page, set Address=0 (>0 only if AC500 COM2 port is configured as slave/server).