Detail sample


Title: InOut command

Comment: Example of InOut command. And how to define devices.

Filename: MAIN.wpg

Maker: MELSEC

Cpu type: FX3U(C)

Source:

# defines
motor_on_switch => X0
motor_out => Y0
timer => T0
motor_out_after_1s => Y1
delay_time => 1.0


# sequence
InOut motor_on_switch motor_out

InOut motor_on_switch timer delay_time
InOut timer motor_out_after_1s

Back