Micro 850- Triggering sensor input continuously via AWA and ACB instructions

chowam01

Member
Join Date
Feb 2021
Location
Silver Spring
Posts
10
I have established communication with a sensor via ASCII protocol using the Micro-850 PLC. I have a program which writes to the sensor using an AWA instruction and the sensor responds to that by sending ASCII characters to the RX buffer. Now, when I set the trigger type of the ACB block to 0 (message is triggered once), the ARD block can acquire the ASCII characters successfully. However, when I set the trigger type to 1, the ARD block only reads 0.0. What am I doing wrong? If I want the program to autonomously refresh sensor data every 1 second interval after the AWA writes to the sensor, what should I do? Please advise. I am attaching screenshot of the program for reference.

ASCII test 2.PNG
 
I don't know much about the ASCII device.


When you send the command via AWA, does the transducer send ASCII responses continuously, or does it only send one?


If it sends just one response per AWA, then you can use the AWA.DONE to trigger an ARL to read it, and then trigger the next AWA with the ARL.DONE.


If it sends responses continuously, then the ARL should be able to continuously read and parse the data.


I would use an ARL instead of ARD, so the instruction will find the <CR><LF> delimiter for you, and the code won't have to detect it and strip it.


Also, I notice the program in Post #1 has a [Set Coil] on rung 1 and a [Direct Coil] on rung 2, both writing to the bit tag DONE. The [Direct Coil] on rung 2 will always override the [Set Coil] on rung 1, so that is a programming error.
 
Last edited:

Similar Topics

I am trying to read and write data from Control Logix L23E and a Micro 850. My path in the message is 2, 192.168.2.183 192.168.2.183 is the ip...
Replies
2
Views
714
Hello. I have an issue with a Micro 850 PLC. Issue is when it is in RUN mode, and an output is energized, the whole PLC just turns off, then turns...
Replies
3
Views
841
Hello. I have an issue with a Micro 850 PLC. Issue is when it is in RUN mode, and an output is energized, the whole PLC just turns off, then turns...
Replies
1
Views
555
I am using a Micro 850E PLC (the new one with implicit messaging capability) to drive a Kinetix 5100 servo drive. The error code number on the...
Replies
7
Views
1,717
Hello, and thanks in advance I am working on a project with two micro 850 controllers and want to send bool bit from one to the other. I am in...
Replies
6
Views
1,140
Back
Top Bottom