6-bit current format to real

Join Date
Jul 2006
Location
mimon
Posts
32
Hi, everybody

Do you know anybody function in Step7 for convert 6-bit curret format to real, thanks
CurretFormat_Step7.jpg


 
I don't know of any ready-made function. But math behind presented diagram seems to be pretty simple (or I missed something :D ).

L your_data //load it to ACCU
ITD //treat it as a int and convert to dint
DTR //dint convert to real
L 32.0 //load constant
/R //divide as reals
T some_real_variable //store wherever you like
 
Last edited:
Where did you find those 6-bit, 8-bit and 9-bit current formats ?
What module type is it exactly ?
For siemens S7-300/400, the analog modules (almost) always scale from 0 to 27648.
 
thanks, its very easy

icon7.gif


jacekd said:
I don't know of any ready-made function. But math behind presented diagram seems to be pretty simple (or I missed something :D ).

L your_data //load it to ACCU
ITD //treat it as a int and convert to dint
DTR //dint convert to real
L 32.0 //load constant
/R //divide as reals
T some_real_variable //store wherever you like
 
its profibus communation module for softstarter Sirius 3RW44



JesperMP said:
Where did you find those 6-bit, 8-bit and 9-bit current formats ?
What module type is it exactly ?
For siemens S7-300/400, the analog modules (almost) always scale from 0 to 27648.
 
I'm trying to do the same thing.

The 2 input BYTES from the softstarter, got I address 10 and 11 in hardware config. I want to read the 6-bit current from the softstarer, bits 11.0 to 11.5, and display it in the OP panel.

Can anyone help me with the instructions?
 
Mask the bits you are not using and move into a integer and you are done.

Assuming your doing this in a FC/FB.

1. Make a Temp Variable Call 6BitINT (note address)
2. AND it with 2#0000 0000 0011 1111 (Don't use space only for reference)
3. Move New Variable which is defined as INT type...your done

I'm not sure you have bit pattern correct but you get the idea.

Nick
 
Try it

L #InputByte // second byte IB11
ITD
DTR
L 3.200000e+001
/R
T #Percentage

L #Percentage
L #MotorCurrent //rated operation current from HW config (parameter assignment)
*R
T #ActualCurrent


pbar
 
Last edited:
OK, I`m not getting this to work. Here is my code while the softstarter is running:

L MB 11 b
ITD b
DTR 41300000
L 32 42000000
/R 3eb00000
T MD 150 3eb00000

L MD 150 3eb00000
L 616 268
*R (no value!)
T MD 154 (no value!)


I'm new to programming. Please help me.
 
Readings in Online mode:

L MB 11 Reading: b
ITD Reading: b
DTR Reading: 41300000
L 32 Reading: 42000000
/R Reading: 3eb00000
T MD 150 Reading: 3eb00000

L MD 150 Reading: 3eb00000
L 616 Reading: 268
*R Reading: (no value!)
T MD 154 Reading: (no value!)
 
Just make screenshots from STEP7.
Make screenshots with all kinds of "representation", decimal, floating point, hex - not automatic.

Anyway, the line that says
L 32
should be changed to
L 32.0

edit:
And the MB11 is really filled with the data from the input byte from the softstarter ?
Why not just use the input byte ?
 
Last edited:
The current being displayed in the OP panel updates too slow.
When the motor is running, the current in the OP panel updates with 20A at the time. The rated motor current is 616A.

How can i get the PLC to update the current more accurate?
S7-315, OP77B
 

Similar Topics

Hello, I'm using a Danfoss drive FC302 connect via profidrive to a Siemens PLC 315. My problem is how can I read from the drive a current upper...
Replies
3
Views
2,184
Hello Everybody I just found problem while in my site using gefanuc analog current module IC200ALG264. when i connect it to any current...
Replies
0
Views
4,036
See the screenshot of EIP tag list. We are trying to read in a digital input that is hard-wired. It is shown here as I31.1. I believe we cannot...
Replies
7
Views
280
A couple days ago I accidentally toggled an alwasyoff bit. The issue is it was set up as a single OTU on a rung, nothing else, and used as XICs...
Replies
3
Views
226
Hi I have an old panel builder 32 that I’m replacing for a factory talk me hmi . In the plc for the old panel builder there is a coms bit for the...
Replies
0
Views
73
Back
Top Bottom