Create script for shutter

Hey i am trying to create shutter script with delay ( custom),

using modbus relays

any suggested solution or example?