Syed Faisal Abbas

Siemens S5 to Rockwell Conversion

3 posts in this topic

Hi,

I am currently converting one Siemens S5 program to Rockwell (Allen Bradley PLC) I have gone through some part of program current I stuck with one function block can some help me in order to convert this block into LAD Logic of Rockwell

 

FFFB 31 D:BUNDM1ST.S5D LEN=134

Page 1

Segment 1

Name :GRAYDUAL

Decl :GRAY I/Q/D/B/T/C: I BI/BY/W/D: W

Decl :DUAL I/Q/D/B/T/C: Q BI/BY/W/D: W

:L =GRAY

:T FW 254

:AN F 254.7

:JC =M001

:L KH 0001

:L KH 1031

:STS

M001 :L KB 0

:AN F 255.0

:JC =M002

:L KF -1

:+F

:JC =M003

M002 :CSW

M003 :AN F 255.1

:JC =M004

:L KB 3

:+F

:JC =M005

M004 :CSW

M005 :AN F 255.2

:JC =M006

:L KF -7

:+F

:JC =M007

M006 :CSW

M007 :AN F 255.3

:JC =M008

:L KB 15

:+F

:JC =M009

M008 :CSW

M009 :AN F 255.4

:JC =M010

:L KF -31

:+F

:JC =M011

M010 :CSW

M011 :AN F 255.5

:JC =M012

:L KB 63

:+F

:JC =M013

M012 :CSW

M013 :AN F 255.6

:JC =M014

:L KF -127

:+F

:JC =M015

M014 :CSW

M015 :AN F 255.7

:JC =M016

:L KF +255

:+F

:JC =M017

M016 :CSW

M017 :AN F 254.0

:JC =M018

:L KF -511

 

Thanks in advance

 

Share this post


Link to post
Share on other sites

Would this make more sense in a Siemens forum post?  A screenshot of the logic may help more than the cryptic machine code listing.

Share this post


Link to post
Share on other sites

Cryptic machine code language, aka STL,  is what you program the S5 with. It'll do some ladder but what you see in the OP's most is what you get when you dive into the land of the S5. I actually like them but kind of like I liked a really annoying girlfriend once... Fun to play with but not a keeper :o)

Edited by Michael Lloyd
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now