Pro codes · Fanuc

#3011 / #3012 — Date and time (Fanuc)

Date and time. #3011 holds the date as YYYYMMDD and #3012 the time as HHMMSS. Together with #3001/#3002 (millisecond and hour timers) they let a macro log when a part was made or…

By cnccode · Updated
On this page
  1. What it does
  2. Example
  3. More: macro and system variables
  4. Frequently asked questions
PropertyValue
Code#3011 / #3012
ControlFanuc
TopicMacro and system variables
Syntax#3011 date · #3012 time · #3001 ms timer · #3002 hour timer

What it does

#3011 holds the date as YYYYMMDD and #3012 the time as HHMMSS. Together with #3001/#3002 (millisecond and hour timers) they let a macro log when a part was made or measure the cycle time of one section.

Example

Fanuc
#3001 = 0 (RESET TIMER)
(… ROUGHING …)
#110 = #3001 / 1000 (SECONDS)

Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.

Try it without a machine

The Macro B simulator runs variables, G65 calls, #3000 alarms, G10 and system variables block by block.

Open the Macro B simulator

More: macro and system variables

Frequently asked questions

What is #3011 / #3012 on Fanuc?
Date and time. #3011 holds the date as YYYYMMDD and #3012 the time as HHMMSS. Together with #3001/#3002 (millisecond and hour timers) they let a macro log when a part was made or measure the cycle time of one section.
Was this page helpful?