Control Logix Code for Profibus PA devices

Wayne L.

Member
Join Date
Nov 2006
Location
UK
Posts
2
I am trying to write some code using the AB CLX platform.
I have set up a small Profibus network with 3 devices attached.
My SST-PFB-CLX Scanner Module is located in Slot 2 of my rack.
Each device sends data in the form of a IEEE-754 Floating Point value using 5 bytes.
The first four bytes are used for data the 5th byte is used for device status.
The device status is not required.
Each device displays a value of 0 - 100% but the value that comes into the PLC is Eg. -16234 & 23908.
How do I get these to read in Engineering Units?
Can someone help!!
 
Those values are in the form of 2 16 bit words. A float is a 32 bit value. On an AB PLC, you can convert these values to a float by copying them to a float.... eg if those 2 16 bit words were in INT[0]and INT[1], you would write COP INT[0] REAL[0] 1, where the one is the number of destination adresses you want to copy data too, meaning 200 words of int data is 100 values of real
 
Hello Wayne;

Sorry I missed your first post.

Basically your problem is that bytes/bits from the PA coupler need to be swapped so the Controllogix processor can make sense of them.

We use the BTD instruction 4 times to reconstruct a REAL register containing the PA value.
In the illustration below, from one of our projects, we first read from the SST card the first 16 bits and the last 16 bits of the PA transmission. We use a subroutine to apply the BTD instruction, so don't worry about the variable names. Here is how it executes:

PA_SST_SwapBytes2.jpg



Hope this helps,
Daniel Chartier
 

Similar Topics

Hi, I am using control logix L75 Processor and RS Logix Rev 20.55. During testing i observed a minor error on processor. Minor Error Code from...
Replies
0
Views
1,375
In one of my project I need to integrate Bar code Scanner (Model: MS 880, Supplied by Microscan) with Control Logix Processor using Ethernet...
Replies
3
Views
4,227
I am having trouble with getting no control of my analog output signal. I am using the SCL function block to control my analog output. The logic...
Replies
11
Views
265
hi all, i have a plc i need to get info from for a site im working on: I have a 1764 Micro Logix 1500 LSP Series C (See Attached Image) im...
Replies
2
Views
387
I currently have a weird issue involving Ethernet IP communication between a ABB CI873 (EthernetIP Module) and a 1756-L83ES. The Layout is as...
Replies
8
Views
771
Back
Top Bottom