The function FN 38: SEND enables you to retrieve texts and Q parameter values from the NC program and write them to the log or send them to an external application, e.g. StateMonitor.
Application
Description of function
Data is transferred via a TCP/IP connection.
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.
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 |
The NC function includes the following syntax elements:
Syntax element | Meaning |
---|---|
FN 18: SEND | Send syntax initiator for information |
/ | Output text as fixed or variable text with up to max. seven placeholders for the values of the variables, e.g. %f |
/ | Content of the max. seven placeholders in the output text as fixed or variable numbers Optional syntax element |
Notes
- Placeholders are case-sensitive, so make sure to enter them correctly.
- To obtain % in the output text, enter %% at the desired position.
Example
Send information to StateMonitor.
With function FN 38, you can enter job data, among others. This requires a job that has been created in StateMonitor and an assignment to the machine tool being used.
Job management with JobTerminal (option 4) is possible with StateMonitor version 1.2 or higher.
- Requirements:
- 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.
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 target 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 |
In addition, the workpiece quantities for the job can be reported.
With the OK, S, and R placeholders, you can specify whether the quantity of reported workpieces has been machined correctly or not.
The A and I placeholders allow you to define how StateMonitor interprets the response. If absolute values are transferred, then StateMonitor overwrites the previously valid values. In the case of 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.
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" | ; 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 |