CPU 315 DP analog addressing

ahargrave

Member
Join Date
Sep 2010
Location
NE Tennessee
Posts
9
I apologize if I've missed an existing thread on this topic. I have added a siemens rack to replace a Beckhoff remote IO rack and all is well except the analog card (331-7HF01-0AB0)

The Beckhoff addressing:
CH 0-1 PIB320 ,
CH 2-3 PIB323 ,
CH 4-5 PIB326 ,
CH 6-7 PIB329

Siemens card will only allow me to enter starting address as 320.Im fairly new to Siemens and could use some help with this issue. My question is: Can this module be wired to have these addresses be active or do I need to readdress these in project.

attached is a copy of current wiring.

CH 0-1 & CH 2-3 2wire (D)
CH 4-5 & CH 6-7 4wire (C)

Thank you for any help
 
You will have to re address
PIW320 is bytes 320/321
PIW322 is bytes 322/323
and so on
You get the picture
A PIW is 2 bytes but it will be in order
 
Last edited:
You will have to re address
PIW320 is bytes 320/321
PIW322 is bytes 322/323
and so on
You get the picture
A PIW is 2 bytes but it will be in order

W means word, in case that wasn't obvious. PID would be a Double word (4 bytes), PIB would be byte.
 
Not necessary to explain AI Scaling.
It was just the difference in addressing from Byte to word i was having an issue with.

I guess my question is:
Can i force Siemens to use PIB instead of PIW ?

IE:
321 -323
326 - 329 ....etc.
 
Thats correct

Something doesnt add up with the Beckhoff
They cant just be using PIB because there is no resolution in that
 
Last edited:
I thought so as well, but i get no data on last two channels. ill check wiring
looks like the plc is using 3 bytes per channel

( PIB 320 - 322, PIB 323 - 325, PIB 326 - 328 & PIB 329 - 331 )

then later

PIW 321
PIW 324
PIW 327
PIW 330

This is odd to me or am i reading these wrong ? Data.jpg
 
I thought so as well, but i get no data on last two channels. ill check wiring
looks like the plc is using 3 bytes per channel

( PIB 320 - 322, PIB 323 - 325, PIB 326 - 328 & PIB 329 - 331 )

then later

PIW 321
PIW 324
PIW 327
PIW 330

This is odd to me or am i reading these wrong ? Data.jpg
do I change AI card addresses to start at PIW 321 ?
 
I thought so as well, but i get no data on last two channels. ill check wiring
looks like the plc is using 3 bytes per channel

( PIB 320 - 322, PIB 323 - 325, PIB 326 - 328 & PIB 329 - 331 )

then later

PIW 321
PIW 324
PIW 327
PIW 330

This is odd to me or am i reading these wrong ? Data.jpg

Each analog Channel should be two bytes (1 word). Channel 0 = 320-321, Channel 1 = 322-323, Channel 2 = 324-325, etc. I've never seen a 3 byte setup like your program has, but it definitely isn't how the Siemens modules work. You pick the start address for the first channel, and the other channels increment from there.

Also, why are you grouping the channels in pairs for the tags? Each channel has two bytes of data.

Possible idea: Did the previous module pack two analog channels into 3 bytes (12 bit resolution)? That's the only thing I can think of that makes any sense....
 
Reading the Beckhoff documentation shows that some modules have a 3 bytes allocated per channel. The single byte is used for control/status and the other two bytes contain the analogue value, the scaling of which appears to be +/-32767 (although it also appears that the control byte can be used to change the scaling).


As already stated, there is no control/status byte for the Siemens analogue inputs and the scaling is +/-27648



Given that you are replacing the Beckhoff with Siemens, you need to understand what is being done with the control/status bytes and the scaling so you can provide the same functionality.


Post a cut down version of your project with the blocks that process the analogue inputs for further assistance.

beckhoff.jpg
 
Last edited:

Similar Topics

Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
2
Views
170
I'll preface this by saying this is the first time I've worked on a Siemens system and I'm fairly unfamiliar with them. I might mess up some of...
Replies
29
Views
751
Hi We were having a few power cuts and the CPU would not work. I had to reset the memory and he CPU would read from the memory card and start...
Replies
13
Views
3,167
Hello everyone... I'm working on a project where I want to use the time of the PLCs to do a specific process. In both PLCs (cpu 224 & cpu 315)...
Replies
10
Views
4,338
Hi, Can anyone explain the difference between rebooting a Siemens CPU 315-2 PN/DP, either by setting the switch into stop and back into run...
Replies
5
Views
2,687
Back
Top Bottom