EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q Series - Script List; Project Script; Screen Script

Mitsubishi Electric MELSEC-Q Series
35 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
29/35
BCN-P5999-0176-2a
5.6 Script List
Item
Settings
Project script
Specified
Screen script
B-30009, B-30500
Object script
B-30500, W-30003
5.6.1 Project script
Script No.
30001
Script name
Script30001
Comment
Initial Setting
Data type
Signed BIN16
Trigger type
Rise, GB40
[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
Script No.
30101
Script name
Script30101
Comment
Reflect Tuning Settings
Data type
Signed BIN16
Trigger type
ON, GD61011.b0
[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
}
Script No.
30102
Script name
Script30102
Comment
Tuning Screen Object Operation
Data type
Signed BIN16
Trigger type
Ordinary
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;
}

Other manuals for Mitsubishi Electric MELSEC-Q Series

Related product manuals