What I have done is assigned an input for a button in ebpro(weintek software)
Eg. |X0|------------- -(y0) where x ,y are inputs and outputs of fx PLC.
When I press(and hold) a button assigned to x0 on the hmi it should run y0. But when I assign a memory and use momentary switch it is working .ie
|X0|----------[set m0]
|M0|---|x0|------(y0) this is working.