Sending information from the NC program with FN 38: SEND

Application

The function FN 38: SEND enables you to retrieve fixed or variable values from the NC program and write them to the log or send them to an external application (e.g., StateMonitor).

Description of function

Data is transferred via a TCP/IP connection.

 
Manual

For more detailed information, consult the RemoTools SDK manual.

Input

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

11 FN 38: SEND /"Q-Parameter Q1: %F Q23: %F" / +Q1 / +Q23

; Write values from Q1 and Q23 to the logbook

To navigate to this function:

Insert NC function FN Special functions FN 38 SEND

The NC function includes the following syntax elements:

Syntax element

Meaning

FN 38: SEND

Syntax initiator for sending information

Name or Parameter

Format of the text to be transmitted

Text or string parameter

Output text with up to seven placeholders for the values of the variables (e.g., %F)

Format file for contents and formatting

/

Contents of the up to seven placeholders in the output text

Number or numerical parameter

Optional syntax element

Notes

  • Both fixed and variable numbers and texts are case-sensitive, so enter them correctly.
  • To obtain % in the output text, enter %% at the desired position.

Example

In this example, you will send information to StateMonitor.

With the function FN 38, you can, for example, enter job data.

The following requirements must be met in order to use this function:

  • StateMonitor version 1.2
  • Job management with JobTerminal (option 4) is possible with StateMonitor version 1.2 or higher

  • The job has been entered in StateMonitor
  • Machine tool has been assigned

The following stipulations apply to this example:

  • Job number 1234
  • Working step 1

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

11 FN 38: SEND /"JOB:1234_STEP:1_CREATE"

; Create job

12 FN 38: SEND /"JOB:1234_STEP:1_CREATE_ITEMNAME: HOLDER_ITEMID:123_TARGETQ:20"

; Alternatively: Create job with part name, part number, and required quantity

13 FN 38: SEND /"JOB:1234_STEP:1_START"

; Start job

14 FN 38: SEND /"JOB:1234_STEP:1_PREPARATION"

; Start preparation

15 FN 38: SEND /"JOB:1234_STEP:1_PRODUCTION"

; Production

16 FN 38: SEND /"JOB:1234_STEP:1_STOP"

; Stop job

17 FN 38: SEND /"JOB:1234_STEP:1_ FINISH"

; Finish job

You can also report the quantity of workpieces of the job.

With the OK, S, and R placeholders, you can specify whether the quantity of reported workpieces has been machined correctly or not.

With A and I you define how StateMonitor interprets the response. If you transfer absolute values, StateMonitor overwrites the previously valid values. If you transfer incremental values, StateMonitor increments the quantity.

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

11 FN 38: SEND /"JOB:1234_STEP:1_OK_A:23"

; Amount passed (OK) absolute

12 FN 38: SEND /"JOB:1234_STEP:1_OK_I:1"

; Amount passed (OK) incremental

13 FN 38: SEND /"JOB:1234_STEP:1_S_A:12"

; Scrap (S) absolute

14 FN 38: SEND /"JOB:1234_STEP:1_S_I:1"

; Scrap (S) incremental

15 FN 38: SEND /"JOB:1234_STEP:1_R_A:15"

; Rework (R) absolute

16 FN 38: SEND /"JOB:1234_STEP:1_R_I:1"

; Rework (R) incremental