Does anyone have experience with configuring the XUPH001 in PLC mode?
This is the communication module for a pick-to-light system.
I'd like to connect it to a Modicon controller (e.g. M241) through a MODBUS connection.
How to configure the READ/WRITE holding registers, how to configure the system?
I'v read the manual, but do not fully understand... 😞
Can anyone provide me with some example code to get started?
Is there a function block available for this module?
You can use IO Scanning instead of using Function Block in M241. it is more easier if you are new with Machine Expert (v1.1).
I will share it in video after this.
I've done about the same in SoMachine... I only need to configure the IP and the unit ID....
Then I get the Device inputs and outputs...
The question still is how to read e.g. the status of the sensors, or activate the LED's in the sensors...
A programming example would be nice....
I'm not familiar with XUPH001.
but after read the manual, if you already set to PLC mode. you can read from register that you mentioned (%MW18,19,20,21).
for direct access to bit, you can access/read from %IX and %QX for WRITE or you can map it to variable (recommended)
and here is the example to read status from sensor, then latch it 2 seconds to light on LED status
if you need to check the program: example code - machine expert 1.1