a small program for S7-300

tulip

Member
Join Date
Oct 2005
Location
ist
Posts
236
I want to write a program for S7-300 Plc.

Plc side: OP side
------------------------------------
DB254.DBB63=+15-----------> -1
DB254.DBB65=+14-----------> -2
DB254.DBB67=+13-----------> -3
DB254.DBB69=+12-----------> -4
DB254.DBB71=+11-----------> -5
DB254.DBB73=+10-----------> -6
DB254.DBB75=+9------------> -7
DB254.DBB77=+8------------> +8
DB254.DBB79=+7------------> +7
DB254.DBB81=+6------------> +6
DB254.DBB83=+5------------> +5
DB254.DBB85=+4------------> +4
DB254.DBB87=+3------------> +3
DB254.DBB89=+2------------> +2
DB254.DBB91=+1------------> +1
DB254.DBB93=+0------------> +0
That is -1 between +8 any values write on OP ,When we look DW's,it will shown like this format...
Thanks advance..
 
If it was clear to me
  1. what you want to accomplish
  2. what you already have
then I would be happy to help. Now you're question is so wide open, I don't dare to start.

Regards,
 
Last edited:
tulip said:
I want to write a program for S7-300 Plc.

Plc side: OP side
------------------------------------
DB254.DBB63=+15-----------> -1
DB254.DBB65=+14-----------> -2
DB254.DBB67=+13-----------> -3
DB254.DBB69=+12-----------> -4
DB254.DBB71=+11-----------> -5
DB254.DBB73=+10-----------> -6
DB254.DBB75=+9------------> -7
DB254.DBB77=+8------------> +8
DB254.DBB79=+7------------> +7
DB254.DBB81=+6------------> +6
DB254.DBB83=+5------------> +5
DB254.DBB85=+4------------> +4
DB254.DBB87=+3------------> +3
DB254.DBB89=+2------------> +2
DB254.DBB91=+1------------> +1
DB254.DBB93=+0------------> +0
That is -1 between +8 any values write on OP ,When we look DW's,it will shown like this format...
Thanks advance..

Like jvd I looked earlier but could not work out what your asking.

You have a tag on the OP, where you write a value between the range of -7 to +8, if the value is -1 you want to write +15 into DB254.DBB63 ??? Is this correct ???


Have no idea really.
 
Yes correct.I convert s5 program to s7 .Customer used no name a operator panel.This panel communicate digital output modules of s5 plc .I use protool for op.When I look to old op's screen ( noname) I see ''-1'',When I look to plc side is showing +15,etc...
Another question: How can I see -7 between +8 values on protool screen (I/O tag assignment )?.Thanks for your efforts....
 
L "OP_TAG"
T #temp0

L "OP_TAG"
L L#0
<D
JNB j000
L L#16
L "OP_TAG"
+D
T #temp0
j000: NOP 0

L #temp0
L L#2
*D
T #temp1
L L#93
L #temp1
-D
SLD 3
T #temp1
LAR1
OPN DB 254
L #temp0
T DBB [AR1,P#0.0]

"OP_TAG", #temp0, #temp1 - variables in DINT format
 

Similar Topics

Hi all, I’m new to programming and want to write a simple routine. Push start button, turns on sensor. 2 second delay before anymore logic read...
Replies
1
Views
326
Hello all, I need help in a small plc program in Allen Bradley plc. Need to generate a 1 second pulse on every ON and OFF of a bit. Suppose for...
Replies
4
Views
2,109
Hi, The system i am designing consists of a serial RS 232 based device that needs to be connected to a PLC via Ethernet I/P, for this I use a...
Replies
0
Views
1,696
Hello, I am not sure if this forum has anyone who can create a simple Ladder Logic PLC program for me or not. If not, do you have any advice...
Replies
22
Views
9,103
I set this up on prologix. I plan to use same on a micrologix 1200.It consist of "hand on control" for both pumps and a system auto. When auto is...
Replies
14
Views
5,299
Back
Top Bottom