RS485 + ComSeral Example

Hello,

i have following modules

#1 AXC F 2152 + AXL F BP SE4 + AXL SE RS485
#2 AXL BK PM TPS XC + AXL F BP SE4 + AXL SE RS485

AXC F 2152 is connected via Ethernet-Cable to the Buscoupler Module and both RS485 Modules are connected.
At the moment I am struggling with the example PLCnext Store | AXL_ComSerial and therefore I need further information. Unfortunately in the example (documentary) there is not written which variable I have to configure on which output. All in all I was able that #1 sends some telegrams to #2 but the iState variable always stucks in case 50. Probably

I probably haven’t assigned the variables correctly yet. Could you tell me where to assign which variable (In Port / Out Port) or give a short description? Thanks
In
the square brackets is my assignment

arrInputPD_1
- (AXC F 2152 → serial-1 / ~DI160)
arrOutputPD_1
- (AXC F 2152 → serial-1 / ~DO160)
arrInputPD_2
- (Bus coupler → axl-f-bk-pn-tps-1 / serial-1 / serial-1 / ~DI160)
arrOutputPD_2
- (Bus coupler → axl-f-bk-pn-tps-1 / serial-1 / serial-1 / ~DO160)