Questions on Function Block programming

Raptor50

Member
Join Date
Jun 2012
Location
It
Posts
2
Hi, I'm programming a Micro830 PLC and Function Block Diagram using Connected Components Workbench. I'm trying to output a analog input that has been averaged, scaled, stripped off the extra decimal I didn't need. That all works fine, the problem is I can only output one time. I need a way to toggle FBEN on my function RA_STRING_TO_ASCII. RA_STRING_TO_ASCII gets fed a string, converts to bytes and get put into an array. I can toggle FBEN_TRUE and send out my analog reading on the RS232. AWT_1.Q would toggle the FBEN, but not the first time through. Any Thoughts? I'm attaching a .jpeg of my program.

Here is the url of my jpeg: http://rc.runryder.com/helicopter/rr/rrpw.htm?d=/helicopter/gallery/32504/&IN=1&a=0&s=0

Thanks, JC
rrpw.htm
 
Last edited:
I'm trying to output a analog input that has been averaged, scaled, stripped off the extra decimal I didn't need. That all works fine, the problem is I can only output one time.
Check your AWT instruction. It probably operates each time the IN goes False to True. You have to find a trigger that goes on and off each time you want to look at a new value. You could do it based on time. For example use a 1-second time trigger to look at the analog value every 1 second.
 

Similar Topics

I am troubleshooting an outside vendor program where add on instructions are used as well as these user defined function blocks. I am trying to...
Replies
3
Views
1,596
I’m a complete newbie with PLCs and electronics. I am trying to grasp why in the user’s guide section 5.2 Analog output range 0mA to + 20mA needs...
Replies
0
Views
1,568
Hello All, I have a couple of questions about some functions available in Crimson 3.0 and was hoping that somebody maybe able to help me out. I...
Replies
2
Views
2,897
Hello, My background is IT, and I have very little (effectively zero) understanding of PLCs. I have been tasked with acquiring version 2 of...
Replies
4
Views
80
Hi- I am configuring an alarm and event server to display 1 current alarm at a time on a big display. Having a few issues The alarm doesn't...
Replies
0
Views
53
Back
Top Bottom