Siemens S7-313 & CP-343-2 (AS-i)

silva.foxx

Member
Join Date
Dec 2004
Location
North Wales; always West to England!
Posts
519
Hi guys

I've set up a little training rack comprising of:
CPU 313 (1AD03-OABO)
SM321 DI32
CP343-2 (2AH00-OXAO)
SM322 DO16
SM332 AO 4x12bit
SM331 AI 8x12bit

Set up with IFM AC1208 AS-i PSU and two slaves numbered 1 and 16.

Input address allocated to AS-i module is 272-287.

I have an input to the first bit of slave 1.
I can see them in a VAT.
How do I read these from the PII and get to use them as bits, please?

Thanks in advance
 
Read and transfer them to:

A) a DB and refer to the bits in the db
B) a MB and refer to the marker bits
or
C) allocate the AS-i to a base address such as 100 when the inputs will then appear in the PII
D) copy the
 
What is done on some of our machines:

L PID 256
T ID 100 // or any other free Input range
and so on
This way it still stays very clae that you're wokring with I/O's.
 
I was going to suggest this but decided against it - hence the half finished sentence in my previous post :)
 
I can't seem to transfer them anywhere.
When I transfer them to the plc the cpu lights SF and the software says Unable to write to block (in STOP and in RUN-P) as invalid code in program.
Can't I just use say, I272.0?

Has anyone got a basic block to share, please?

Kindest regards and thanks in advance.
silva.foxx
 
Hi there,

I am using an As-i card and read the input in this way:

OPN DB 1
L PID 256
T DB1.DBD 0
L PID 260
T DB1.DBD 4
L PID 264
T DB1.DBD 8
L PID 268
T DB1.DBD 12
It is working and simple to use.

By the way what does your PLC says about the SF fault in the diagnostic?

Regards,
 

Similar Topics

Hi, thanks for hosting this site, I have found many answers by searching the forums here. I'm new to siemens and don't want to buy hardware...
Replies
2
Views
2,855
I'm using a 3rd party USB to MPI adapter cable. I can see 157 blocks of various types listed under Accessible Nodes in Simatic Manager. The Upload...
Replies
28
Views
8,195
Hello everybody i have a cpu 313-c and when i am terning power on all leds stay for a sort time on and after go off exept sf led blinking has...
Replies
1
Views
2,332
hi everybody...its nice to see all of you helping the people and sharing thoughts with one another....🍻 Rely i admired the forum people...
Replies
2
Views
1,773
Hi i am new one in simens hmi & drives. I am using CPU313-2DP . I have to connect simens HMI(MP277) & SIMENS DRIVES at same time. how should i...
Replies
3
Views
3,359
Back
Top Bottom