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

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

Send syntax initiator for information

Name or QS

Format of the text to be transmitted

Fixed or variable name

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

Fixed or variable number

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

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.

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

; Actual quantity (OK) absolute

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

; Actual quantity (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