Siemens S7 to codesys

RREGMI

Member
Join Date
Feb 2016
Location
houston
Posts
5
Hello all,

First Time in PLCtalk.net...
Looks like i am at the right place.
New to PLC world. Need some help to figure this out.
I want to convert this step7 program to codesys but got stucked on this prg.
How do i achieve this?
In siemens, they have accumulator, does codesys have one too?
How is BEU, structured in codesys?
Is there a similar type of BEU instruction in codesys?

Desp. need your Help Guys!


Thanks

Y'all have a great weekend!

TECH_Supp.jpg
 
BEU is block end unconditonal so any instructions after the BEU can be deleted (provided they are not jumped to - they are not in your example).
 
Quick code convert:

Code:
pole:=Stepper_position MOD 4;
Q20.0:=(pole == 0);
Q20.1:=(pole == 1);
Q20.2:=(pole == 2);
Q20.3:=(pole == 3);
 
Need help on Conversion!

I am new to siemens so does not no whole lot of STL language.
Needed to convert this program from siemens to Codesys but got stuck. Could anyone please help me achieve this. I would be really grateful.

Thanks

ACCU-1.jpg
 
I've already posted the converted program. Replace Q20.0,1,2,3 with the output variables you have assigned in your codesys project.
 
be sure the stepper_position is an integer or better
and be aware the maximum speed is about 500 steps/ second
and no current control.
better to use a special stepper card for this.
 
I've already posted the converted program. Replace Q20.0,1,2,3 with the output variables you have assigned in your codesys project.

hi LD,

Thanks for your support. I really appreciate that!


I understand the middle portion.
How do i convert the top part and bottom part in codesys:

here is the code for top part:

L #Stpr_Start_Qbyte_Adress
SLW 3
L #Stpr_Start_Qbit_Address
+I
LAR1 // put the value QByte + QBit into adress register 1 (p#QByte.QBit)


here is the code for bottom part:
&

A T 21
= Q [AR1,P#0.0] // turns on output whose address is in AR1

I know it is easy for you to understand but for me it's a rocky mountains!

I hope you will understand it!

Thanks
 
Quick code convert:

Code:
pole:=Stepper_position MOD 4;
Q20.0:=(pole == 0);
Q20.1:=(pole == 1);
Q20.2:=(pole == 2);
Q20.3:=(pole == 3);

pole:=Stepper_position MOD 4;
Q20.0:=(pole = 0);
Q20.1:=(pole = 1);
Q20.2:=(pole = 2);
Q20.3:=(pole = 3);
 

Similar Topics

Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
9
Views
90
Hi Guys, I am trying to establish communication over profinet between Siemens S7-1200 PLC as IO device and codesys plc as IO controller. But I am...
Replies
43
Views
2,917
I would like to test/reach data from Siemens SENTRON PAC3200 measuring device from ABB PLC AC500 PM 590 - ETH . Hardware devices I owe now are...
Replies
6
Views
4,453
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
0
Views
10
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
104
Back
Top Bottom