29/35
5.6 Script List
5.6.1 Project script
[w:GD60080]=201; //Set Document ID to 201
[w:GD60081]=1; //Set Document page No. to 1
[w:U00-G53202] = 1; //Set Cam Auto-generation Type
if([w:GD61100] == 0){ //After initialization, specific internal devices will not be re-initialized at a restart that will
be caused by data communication or update.
[w:GD61012] = 1301; //Set Initial Value of Base Screen 30009 Title
[w:GD61100] = 1; //Set Flag
}
5.6.2 Screen script
Base screen 30009
[w:GD61013] = 0; //Initialize GD61013 Value
while([w:GD61013] < 10){ //Loop 10 Times or More
[w:GD61013] = [w:GD61013] + 1;
}
if([w:GD61013] >= 10 && [b:Y0000] == OFF){ //GD61013 Is 5 and Y0 Is OFF
[b:Y0000] = ON; //Turn On Y0
[b:GD61011.b0] = OFF; //Turn Off Trigger
[w:GD61013] = 0; //Initialize GD61013 Value
}
Tuning Screen Object Operation
switch([w:U00-G28408[w:GD61010]]){ //Shade Numerical Objects According to Conditions
case 1: [w:GB61008] = 2; break;
case 2: [w:GB61008] = 4; break;
case 0: [w:GB61008] = 1; break;
case 4: [w:GB61008] = 16; break;
case 3: [w:GB61008] = 8; break;
}