Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84702members
354078posts

b3 program stopped at line E but not go back to the specify line

Archives: Building Automation and Control

YangboLIU
Commander Commander
Commander
0 Likes
6
94

b3 program stopped at line E but not go back to the specify line

An issue puzzled me for a long time, the b3 program stopped at line E, but not go back to the specify line, the program code like below

Numeric input A

Numeric output B

line 1

if A is on then B=on else B=off

......

.......

Line E

state=enabled

go to 1

I guested the program go to line E because write value to another 3rd party device,  the program should go to line 1 but stopped at line E, the program state is enabled and status is running.

I never encountered this issue with Continuum b3 program, but do that with SBO b3 script program. .

Anyone can comments why the program does not go back?

Regards

Yangbo

6 Replies 6
Shannon_Balch
Schneider Alumni (Retired)
Schneider Alumni (Retired)
0 Likes
1
61

Re: b3 program stopped at line E but not go back to the specify line

Is this a fall-thru program or looping?

YangboLIU
Commander Commander
Commander
0 Likes
0
61

Re: b3 program stopped at line E but not go back to the specify line

It is a Looping program

Shannon_Balch
Schneider Alumni (Retired)
Schneider Alumni (Retired)
0 Likes
3
61

Re: b3 program stopped at line E but not go back to the specify line

Please reference the code below:

Numeric input A

Numeric output B

line 1

if A is on then B=on else B=off

Go to E

Line E

state=enabled

go to 1

You can change "Go to E" to "Go to 1" if you require the execution to be different.

YangboLIU
Commander Commander
Commander
0 Likes
2
61

Re: b3 program stopped at line E but not go back to the specify line

Hi

Thanks for reply, But I do not understand why "Go to E" is necessary? I think the program will go to line E  in default when there is a fault at any line.

AbeMeran
Commander Commander
Commander

Re: b3 program stopped at line E but not go back to the specify line

Not need for goto E, that happens automatically when the PE interpreter encounters an error.

Not need for state=enabled either, line E keeps the program from getting disabled, that's its purpose

The program appears to be stopped at line E, because if the condition that causes to go to E persists then it will constantly jump to E, typically you want to have a delay in E

Line E:

If ts > 30 then goto 1

YangboLIU
Commander Commander
Commander
0 Likes
0
61

Re: b3 program stopped at line E but not go back to the specify line

Thank you ,Abraham, I will have a try and change the code.

B.R

Yangbo