Getting Started
First you must pull the Tool Life Monitoring (TLM) data you require from the CNC. This is typically done in the machine connection (Fanuc) JSON script. Here are two examples for Macro B and P-Codes.
Macro B
{
"macros": {
"TLM_1_COUNT": 811,
"TLM_1_PRESET": 980,
"TLM_3_COUNT": 821,
"TLM_3_PRESET": 981,
"TLM_5_COUNT": 831,
"TLM_5_PRESET": 982
}
}
P-Code
{
"pcodes": {
"TLM_1_PRESET": 12101,
"TLM_1_COUNT": 12201,
"TLM_2_PRESET": 12102,
"TLM_2_COUNT": 12202,
"TLM_3_PRESET": 12103,
"TLM_3_COUNT": 12203
}
}
Where do i find these addresses?
If the customer has written their own counters, then it will be in Macro and they can provide you this information.
If the machine has a TLM system created by the machine tool builder (most common) then the data will be in p-codes on Fanuc machines. The way to locate and identify the p-code addresses:
- Turn on PWE
- Set parameter 9000#1 (NDP) = 1
- Press offset hardkey
- Macro screen key
- EXEC screen key
- Output these variables to USB via the OPRT menu.
- Set param 9000#1 back to 0.
- Turn off PWE.
- Take a photo of the TLM screen on the CNC.
- On you PC / Mac, search for the values in the photo just taken. You should see all values close together.
Fore other controls, such as Siemens, we can capture from OPC-UA. We can also use DPRNT.
Naming Convention
TLM_x_PRESET > The preset value
TLM_x_COUNT > The count value
x > Tool or Offset number
For both P-codes and macros, ensure you follow the TLM_x_PRESET and TLM_x_COUNT format for consistent tool monitoring. The display names in your mappings are how it names the tool in the display.
Display as a Tab on the OpDash
You can pass in the machine id on the URL in parameter machineId (capital i) or via IncludeMachineInfo param so it automatically selects the machine:
https://labs-{lab_id_goes_here}.labs.machinemetrics.com?includeMachineInfo=true
or
https://labs-{lab_id_goes_here}.labs.machinemetrics.com?machineId=12345678-2900-4f2c-ba26-01c81f429126
When this is enabled the machine selector dropdown is hidden. The second option is best for large screens to lock the display to that machine.
Comments
0 comments
Please sign in to leave a comment.