11/05/2026
Yaskawa Robot Error Analysis & Solution — 0340 “Main Program Ex*****on Prohibited by Setting”
When the Yaskawa robot teach pendant displays:
0340: “Main Program Ex*****on Prohibited by Setting”
Cause of the Error
In Play Mode, robots are typically started using the reservation start function or the teach pendant start button.
During this process, program selection is generally not changed from the teach pendant.
This alarm usually occurs when:
No program has been selected as the main program before startup
The operator attempts to call the main program directly from:
[Program Content] → [Main Program]
without switching the robot mode
Solution
First, press the [Cancel] button in the alarm window to reset the alarm.
Then, there are two possible solutions:
Method 1
Switch the teach pendant to Teach Mode
Select the main program under:
[Program Content] → [Main Program]
Then switch back to Play Mode
Method 2
Switch the teach pendant to Teach Mode
Go to:
[Setup] → [Backstep Condition Setting] → [Play Mode Main Program Call]
Change the setting to: [Allow]
Tips
If the settings mentioned above are not visible, please switch the system mode to:
Safety Mode, or
Management Mode
For technical support or spare parts, feel free to contact JSR Automation.
www.sh-jsr.com [email protected] +86-13764900418