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

Simple motion module
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

5.6 Script List

Item

Project script

Screen script

Object script
5.6.1 Project script
Script No.
Comment
Data type
[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.
Comment
Data type
[w:GD61013] = 0;
while([w:GD61013] < 10){
[w:GD61013] = [w:GD61013] + 1;
}
if([w:GD61013] >= 10 && [b:Y0000] == OFF){ //GD61013 Is 5 and Y0 Is OFF
[b:Y0000] = ON;
[b:GD61011.b0] = OFF;
[w:GD61013] = 0;
}
Script No.
Comment
Data type
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;
}
Specified
B-30009, B-30500
B-30500, W-30003
30001
Initial Setting
Signed BIN16
30101
Reflect Tuning Settings
Signed BIN16
//Initialize GD61013 Value
//Turn Off Trigger
//Initialize GD61013 Value
30102
Tuning Screen Object Operation
Signed BIN16
Script name
Trigger type
Script name
Trigger type
//Loop 10 Times or More
//Turn On Y0
Script name
Trigger type
29/35
Settings
Script30001
Rise, GB40
Script30101
ON, GD61011.b0
Script30102
Ordinary
BCN-P5999-0176-2a

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd77ms16

Table of Contents