QuoteDisplay More[ Direct Call ]
IF Di22_Conv02_Grant = 1 THEN
rPlace_Conv2;
ElseIF Di23_Conv03_Grant = 1 THEN
rPlace_Conv3;
EndiF
[ Call by value ]
PERS num nConv_No;
WaitUntil Gi01_Conv_No <> 0;
nConv_No := GInput(Gi01_Conv_No);
CallByVar "rPlace_Conv", nConv_No;
[ String Mix call ]
PERS string sTemp;
PERS num nConv_No;
WaitUntil Gi01_Conv_No <> 0;
nConv_No := GInput(Gi01_Conv_No);
sTemp := NumToStr(nConv_No, 0);
%"rPlace_Conv"+sTemp%;
I'm only know 3 types instruction for call procedure.
I'd like call proc by "CallByVar" types, but when I looking program tree... Sorting status looks bad.
Robotstudio & TP sort format by A~Z, 0~9, Char Lenght... right?
I wanna change to as like next picture
But, "CallByVar" instruction unable to call that "01" value.
you know, becuz GInput instruction is signal convert to decimal. this value didn't contain 0 digit of first place.
I wanna control under 2 decimal digits (00 ~ 99)
PLC give to robot number (Group Input)
So here question.
When I received digit value's length under 2 size (1 ~ 9)
how can I convert string with add a "0" character ?
ie)
num 1 -> str 01
num 2 -> str 02
...
num 9 -> str 09
I thik similar function, excel app's "TEXT"