![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Lifetime Supporting Member
|
How do I use a FB in Structured Text on Omron
I've wrapped a Function Block around a OneShot/R_TRIG and I want to use it in structured text.
I have an Input bool called In and a Output called Out. My FB instance is called OneShot1. However I am getting these errors
Code:
OneShot1(In:=Running); If OneShot1.Out = true Then END_IF; ST using the FB |
![]() |
![]() |
#2 |
Member
|
https://echannel.omron247.com/marcom...df?OpenElement
Check out the following SECTION 3 - Creating Function Blocks You should have a variable table as well. Hope this helps you out. Regards,
__________________
Garry https://www.accautomation.ca Connect with us on Facebook: facebook.com/accautomation/ |
![]() |
![]() |
#3 | |
Lifetime Supporting Member
|
Quote:
It appear after deciphering this terrible documentation that you have to put an output variable in your call. You can't access the instances output varaible directly. Way to follow standards omron. Code:
OneShot1(In:= Running, Out=> OS_Out); |
|
![]() |
![]() |
#4 |
Member
|
Yeah. Cxp is nearly compliant
__________________
Whatever hits the fan will not be evenly distributed. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
structured text programming | nova manihuruk | LIVE PLC Questions And Answers | 18 | March 24th, 2015 04:40 AM |
Structured Text | dbh6 | LIVE PLC Questions And Answers | 44 | March 25th, 2013 03:35 PM |
RSLogix 5000 Structured Text | rajy2r | LIVE PLC Questions And Answers | 2 | February 9th, 2011 05:28 PM |
Structured text - Getting started | nettogrisen | LIVE PLC Questions And Answers | 3 | July 12th, 2007 11:00 AM |
Documentation on Structured Text | cmulder | LIVE PLC Questions And Answers | 13 | June 11th, 2003 11:10 AM |