IS IT CORRECT(s7-200) ?

DIMPOL

Member
Join Date
Oct 2002
Posts
24
LD I0.0
= M10.0
LD I0.1
= M10.1
LD I0.2
= M10.2
LD I0.3
=M10.3
MOVW MW10,MW20
LD I0.4
MUL +3276, MD17
LDW>= MW9,11
R M10.0,4

I have 4 inputs(I0.0,...,I0.3) and i want for 0 to get 0, for 1 to get 3276, for 2 to get 6552,..., until 10 to get 32760.
 
????

MOVW MW10,MW20? Y move it?
LD I0.4? Only 4 inputs, right?
MUL +3276, MD17? What's with MD17?
LDW>= MW9,11? ????
1,2,...10?

Beats me! :rolleyes:
 
MW9= (M9.7 M9.6... M9.0) (M10.7 M10.6.. M10.0)

I HAVE 4 INPUTS WHO CAN CHANGE THE CONTENT OF MW10.
THE I0.4 INPUT IS TO MAKE THE MULTIPLY.

MD17= (M17) (M18) (M19) (M20)
 
LD I0.0
= M10.0
LD I0.1
= M10.1
LD I0.2
= M10.2
LD I0.3
=M10.3
LDB= VB10,0
MOVW 0,MW12
LDB= VB10,1
MOVW 3276,MW12
LDB= VB10,2
MOVW 6552,MW12
............
............
............
LDB= VB10,10
MOVW 32760,MW12
LDB>= VB10,11
R M10.0,4

Is it correct ?
if VB10=0 THEN VW12=0
VB10=1 VW12=3276
.... ...
VB10=10 VW12=32760

THANKS FOR ANSWERING
 

Similar Topics

I am totally new to this 1200 plc system, some one have simpel exampel how this block pid compact work. The sensor is a analog sensor that...
Replies
1
Views
9,377
Daft question coming up...When I want to modify a value, what's the best/correct way to do this? At the moment, I am entering the value (e.g...
Replies
8
Views
428
Good day. I encountered a problem when calibrating a channel on the IF16H module. The module is located in the local backplane along with the...
Replies
5
Views
733
I have some programs that i received from 1 of our programmers whos installing a new machine in our plant. He added them to a external hard drive...
Replies
9
Views
1,349
Hi, At the moment, If the user fails to provide a valid username/password, the image attached appears "Invalid password or user name. Logon has...
Replies
12
Views
1,568
Back
Top Bottom