Mitsubishi GOT Script help

Ranjith

Member
Join Date
May 2007
Location
Melbourne
Posts
316
I need to hide/display a lamp by using a script.
It says there is a script error but I cannot figure out where the error is.
Can some one please help.
Thanks in advance.
Haven't used Mitsubishi before.
Script below;
if((M820) && (M830)){GB64}
I guess GB64 is a HMI internal bit.
If both M820 and M830 are high, GB64 also High.
Then used GB64 to make the lamp visible.

Script error.JPG
 
I'm not expert at Mitsubishi script but here is an example:
if ([b: M0001]&[b: M0002]==1) //if the ready and run/stop keys both turn ON
{
set([b: M0003]); //the running lamp is lit and the system starts operating.
}
else{ //if not
rst([b: M0003]); //the running lamp turns off and the system is stopped.
 
Try this, note the square brackets and positions of the curly brackets.



if([b:m820] & [b:m830]){
[b:GB64]=1; }
else{
[b:GB64]=0;
}


Steve
 
Thanks nehpets
Now your script has no errors.
But the lamp is not visible in both states of GB64.
Not sure how to monitor GB64.
I suppose have another lamp straight of GB64.
 
If you need to hidden lamp may be you should use security function (Example set as GD0) or set state off to blank symbol. This is my code.

if( ([b:M820] == 1 ) && ([b:M830] == 1) ){
[w:GD0] = 1;
[b:GB64] = 1;
}
else{
[w:GD0] = 0;
[b:GB64] = 0;
}

Please see attached files for example.

GOT_Hide_Lamp_08.jpg GOT_Hide_Lamp_09.jpg GOT_Hide_Lamp_10.jpg GOT_Hide_Lamp_12.jpg
 

Attachments

  • Test_Hidden_Lamp.zip
    33.6 KB · Views: 10
Thanks Wasan
Used your idea and it works fine now.
Thanks all for your valuable time to guide me in the right direction.
 

Similar Topics

Hello everyone, I am currently working on a project to print data matrix codes. This function was already working but I was asked to change the...
Replies
0
Views
1,676
Is there an output or something that is similar to a screen saver, but you can use in the plc to know when the user is actively using it...
Replies
1
Views
502
Hello, I have a GOT 2000 that is dead and only have a GOT 1000 spare at the moment. I have converted projects up from 1000 to 2000 before, but...
Replies
3
Views
791
I am trying to get a Mitsubishi GT2715 HMI to read and write from a Eurotherm 3508 controller using 4 Wire RS485 Mobus RTU communications. The...
Replies
3
Views
1,305
I am trying to connect GOT-A953-tbd HMI with Nittoku NSC30. Actually, earlier GOT-A953-tbd HMI was used to communicate with Nittoku NC350 and it...
Replies
5
Views
1,386
Back
Top Bottom