How to set the current time?

Last modified by Stone Wu on 2022/08/02 02:22

Wecon PLC has the current time:

  • second set by D8013;
  • minute set by D8014;
  • hour set by D8015;
  • day set by D8016;
  • month set by D8017;
  • year set by D8018;
  • day of the week set by D8019.

When setting the time, you can only set it with instruction (TWR), and you can't assign values to these addresses directly.

For example: timer switch: power on at 8:00 and power off at 17:00

  • LD> = D8015 K8 SET Y0
  • LD> = D8015 K17 RST Y0