4 Teaching
4.8 Local Variables
4-73
HW1485509
HW1485509
11. The Job Contents for both the Parent and Child Job is shown below.
The result of these operations would be:
• LD000 = 5000
• LI000 = Value of I050
• LP000 = Value of P001
4.8.2.3 Job Argument Type Conversion
The safest way to use the Call and GetArgument instructions is to always
make sure that the types match between the two instructions. For
example, if Argument 1 in the Call instruction is a B variable, then the
GetArgument should copy this value into an LB variable. Similarly, if
Argument 2 in the Call Instruction is a P variable, then Get Argument
should copy this value into an LP variable.
In the case where incompatible types are used (e.g. Argument 1 in the
Call Instruction is a P variable and GetArgument tries to set this into an LI
variable), the alarm below will be shown during job execution.
Call
Arg1=B001
GetArgument
Arg1=LB001
Allowed
Parent Job Child Job
Call
Arg2=P001
GetArgument
Arg2=LP001
Allowed
Call
Arg1=P001
GetArgument
Arg1=LI001
Not Allowed
Parent Job Child Job