547.309 aktive Mitglieder*
782 Besucher online*
Kostenfrei registrieren
Anmelden Registrieren
FANUC Forum

PS0125 Macro Statement Format Error

Beitrag 12.10.2021, 08:30 Uhr
Castolus_83
Castolus_83
Level 1 = IndustryArena-Lehrling
*
Gruppe: Mitglied
Mitglied seit: 10.09.2021
Beiträge: 2

Hi all,

My Machine show an error when reading a PRogram. This program works in other machines with the same CNC Backup, and this is what anoys me. The error Says: PS0125 Macro Statement Format Error

I Loaded the very same program from other machine where it works, and also the Macro Variables. Unsuccesfull. These are the Program Lines. Underlined and Black where the Machine shows the errorr (LGOTO)

(rename variables)
(---------------------------------------------------------------)
SETVN600[,,,,,,,,,]
SETVN600[NR_LANGUAGE,NR_TEXT]
(---------------------------------------------------------------)
(different settings)
(---------------------------------------------------------------)
[#NR_LANGUAGE]=PRM[3281](read out active language)
([#NR_TEXT]=-1*#1)(set message number negative)
[#NR_TEXT]=#1(take message number)
(---------------------------------------------------------------)
(evaluation number of language)
(---------------------------------------------------------------)
SWITCH[#NR_LANGUAGE]CASE[0]LGOTO[ENGLISH]LGOTO[GERMAN]DEFAULT[]LGOTO[ERROR]
(---------------------------------------------------------------)

It is a Subprogram where wether the Languaje Setup is in Englisg or German, it jumps to a Label where it shows the Alarms in the correct Languaje. If I Select English, then it Stops by the LGOTO[ENGLISH].

The problem is gone when I Program it gith GOTO100 and then a N100 where the jump must be. Nevertheless, we have many machines with this program and all of them work correctly. If I change it now, we move out of the Standard and we want to avoid it.

I´ve also tried with the "Magic" Parameter 6006.0 to 1, but it did not work.
https://www.practicalmachinist.com/vb/cnc-m...re-line-304711/

Any Ideas?

Thanks in Advance
TOP    
Beitrag 12.10.2021, 11:45 Uhr
Castolus_83
Castolus_83
Level 1 = IndustryArena-Lehrling
*
Gruppe: Mitglied
Mitglied seit: 10.09.2021
Beiträge: 2

ZITAT(Castolus_83 @ 12.10.2021, 07:30 Uhr) *
Hi all,

My Machine show an error when reading a PRogram. This program works in other machines with the same CNC Backup, and this is what anoys me. The error Says: PS0125 Macro Statement Format Error

I Loaded the very same program from other machine where it works, and also the Macro Variables. Unsuccesfull. These are the Program Lines. Underlined and Black where the Machine shows the errorr (LGOTO)

(rename variables)
(---------------------------------------------------------------)
SETVN600[,,,,,,,,,]
SETVN600[NR_LANGUAGE,NR_TEXT]
(---------------------------------------------------------------)
(different settings)
(---------------------------------------------------------------)
[#NR_LANGUAGE]=PRM[3281](read out active language)
([#NR_TEXT]=-1*#1)(set message number negative)
[#NR_TEXT]=#1(take message number)
(---------------------------------------------------------------)
(evaluation number of language)
(---------------------------------------------------------------)
SWITCH[#NR_LANGUAGE]CASE[0]LGOTO[ENGLISH]LGOTO[GERMAN]DEFAULT[]LGOTO[ERROR]
(---------------------------------------------------------------)

It is a Subprogram where wether the Languaje Setup is in Englisg or German, it jumps to a Label where it shows the Alarms in the correct Languaje. If I Select English, then it Stops by the LGOTO[ENGLISH].

The problem is gone when I Program it gith GOTO100 and then a N100 where the jump must be. Nevertheless, we have many machines with this program and all of them work correctly. If I change it now, we move out of the Standard and we want to avoid it.

I´ve also tried with the "Magic" Parameter 6006.0 to 1, but it did not work.
https://www.practicalmachinist.com/vb/cnc-m...re-line-304711/

Any Ideas?

Thanks in Advance



Parameter 6023 Bit 6 to 1.
TOP    



1 Besucher lesen dieses Thema (Gäste: 1)
0 Mitglieder: