Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1520

Hide thumbs Also See for MANUALplus 620:

Advertisement

1520
Module 9405 Convert a symbolic operand into a numerical PLC operand
Module 9405 converts symbolic names of variables in character strings into
the absolute addresses of the corresponding PLC operands. This module
enables you to reduce the run time of your PLC program if you regularly read
data from SQL tables.
The symbolic names must be contained within single quotes and follow a
colon, e.g.
:'S_StringVariable'.
If this conversion already occurred once during the initialization of the PLC
program, then the processing time is reduced for the subsequent module calls
that replace the embedded variables with the momentary values. This affects
modules 9440 and 9450, for example.
Example:
Two symbolic operands are to be converted. The operand MG_W_TOOLNR has the
absolute address W1234 and the numerical value 5.
The operand MG_W_POCKET has the absolute address W3456 and the numerical
value 19.
Output string:
UPDATE TOOL_P SET T = :'MG_W_TOOLNR' WHERE P = :'MG_W_POCKET'
After execution of Module 9405:
UPDATE TOOL_P SET T = :'W1234' WHERE P = :'W3456'
After execution of Module 9450:
UPDATE TOOL_P SET T = 5 WHERE P = 19
Call:
PS
B/W/D/K/S<String with symbolic name>
PS
B/W/D/K/S<Target for string with resolved symbols>
CM
9405
PL
B/W/D
<Error number>
0: Module executed correctly
2: Parameter does not exist
3: Invalid address transferred
11: String could not be converted
12: String too long
15: Module was not called in a submit job
Error recognition:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
Meaning
Module executed successfully
See above for errors
HEIDENHAIN Technical Manual MANUALplus 620

Advertisement

loading