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
84611members
353910posts

NEW BLOCK IN ISAGRAF3.35

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

Solved
tharun
Lieutenant
Lieutenant
0 Likes
3
338

NEW BLOCK IN ISAGRAF3.35

Hi everyone,

Do anyone know about  the source code of a selector block in isagraf 3.35.The inbuilt selector block has integer as a input, but i want the input to be real, so I'm customizing a new block, but not sure how to write the source code .Can you guys help me out?

Tags (1)

Accepted Solutions
BevanWeiss
Spock
Spock
0 Likes
0
298

Re: NEW BLOCK IN ISAGRAF3.35

The image you've attached shows the sel block to take 3 (THREE) inputs.

One Boolean (sel)

Two Integers (in1 and in2)

 

In called the two inputs as Input0 and Input1, which I think aligns better to the 'sel' input values... but you can call them what you want.

 

The output could be called output (as I did) or Q if you'd like (I generally consider Q to be a Boolean output..)

 

You shouldn't go down the path of C, it's too tricky for a function block in ISaGRAF.  Stick with FBD or ST (which are both IEC61131-3 languages available in ISaGRAF).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

3 Replies 3
BevanWeiss
Spock
Spock
0 Likes
2
323

Re: NEW BLOCK IN ISAGRAF3.35

IF Sel THEN

  Output := Input1;

ELSE

  Output := Input0;

END_IF

 

Or do you mean you want the 'selector' to be a REAL?

I can't imagine what that would mean...


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
Tags (1)
tharun
Lieutenant
Lieutenant
0 Likes
1
316

Re: NEW BLOCK IN ISAGRAF3.35

Hi Bevan,

               Sorry that you didn't understand the previous question. There is an inbuilt selector block in Isagraf which accepts only integer as its input, but i want the same selector block to get an input as a real value, since there is no such inbuilt block, I have to create a new block, so i did create it. But not sure about source code(which can be ladder, FBD, C), Source code means the way that the selector block had to perform the function. I have attached the selector block image for your reference.

 

 

Thanks,

Attachments
Tags (1)
BevanWeiss
Spock
Spock
0 Likes
0
299

Re: NEW BLOCK IN ISAGRAF3.35

The image you've attached shows the sel block to take 3 (THREE) inputs.

One Boolean (sel)

Two Integers (in1 and in2)

 

In called the two inputs as Input0 and Input1, which I think aligns better to the 'sel' input values... but you can call them what you want.

 

The output could be called output (as I did) or Q if you'd like (I generally consider Q to be a Boolean output..)

 

You shouldn't go down the path of C, it's too tricky for a function block in ISaGRAF.  Stick with FBD or ST (which are both IEC61131-3 languages available in ISaGRAF).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..