MELSOFT Library

FB for clock (English)

This FB library is for the clock of the programmable controller CPU module.

Applicable
model
Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU
Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU, Q20UDEHCPU, Q26UDEHCPU, Q50UDEHCPU, Q100UDEHCPU
L02CPU, L26CPU-BT, L02CPU-P, L26CPU-PBT
File name Size Last update Version
cpu-clock_v100a_e.zip 2,236,555 bytes Apr. 1, 2011 1.00A
Relevant manual Type
FBM-M048-A CLOCK FB LIBRARY REFERENCE MANUAL
FB name Function name Description Ver.
M+CPU-Clock_CompareDateZone Clock data term comparison Compares two values (term) with the clock data, and outputs the comparison result to the bit devices. 1.00A
M+CPU-Clock_HourMeter Hour meter Allows specification of the time to turn ON, measures the time by second while the execution command is ON, outputs the measurement time by hour and by second (3599 or less). 1.00A
M+CPU-Clock_DHourMeter 32-bit hour meter Allows specification of the time to turn ON, measures the time by second while the execution command is ON, outputs the measurement time by hour and by second (3599 or less). 1.00A
M+CPU-Clock_GetDayOfWeek Day of week data get Obtains the day of the week data from year, month and day data. 1.00A
M+CPU-Clock_GetLastDayOfMonth Last day of month get Obtains the last day data of the corresponding month from the year and month data. 1.00A
M+CPU-Clock_WeeklyTimer Weekly timer Provides a weekly timer that allows registration of the time for each day of the week regarding when to turn ON/OFF the given contact. 1.00A
M+CPU-Clock_MakeClockPulse Clock pulse generation Generates the clock pulse for which ON time and OFF time are specified, and outputs in FB_ENO. 1.00A
M+CPU-Clock_CnvCalenderToSec Seconds elapsed conversion Converts the number of seconds elapsed since 00:00:00 Jan/01/1980 to the date data. 1.00A
M+CPU-Clock_CnvSecToCalender Year-month-day conversion Converts the number of seconds elapsed since 00:00:00 Jan/1/1980 into date data. 1.00A


[Precautions for using the file]

  1. Install the FB library to the personal computer in which GX Works2 (English) of Version 1.31H or later has been installed.


[How to extract the compressed file]

Copy the file to a folder.
After the copied file is decompressed, the cpu-clock_v100a_e folder is created.

Decompression method 1): For the OS with the ZIP-compatible decompression function

  1. Right-click the copied file.
  2. Select "Extract All...".
    When "Extract All..." is not displayed, follow the decompression method 2).
  3. Specify the location of the extracted file, and click the "Extract" button to start the decompression.

Decompression method 2): For the OS without the ZIP-compatible decompression function

  1. If not having the ZIP-compatible decompression tool, acquire the decompressing tool.
  2. Decompress the file using the decompression tool.

* Use the decompression tool at users' own risk.


[Installation method]

  1. Execute setup.exe in the cpu-clock_v100a_e folder.
  2. Install the FB library following the messages of the installer.


[How to use MELSOFT Library]

  1. Select [Library] - [Install...] from the [Project] menu.
  2. In the [Import Library to Project] dialog box, select the installed library and necessary FBs, and click the [OK] button.
  3. Paste the FB from the [Element Selection] window to the program.


[Precautions for using MELSOFT Library]

  1. Before applying the FB library of MELSOFT Library to a system, check sufficiently if no problem occurs in the control of the system.