thanks
I saw that and posted to it in a earlier post, but have to admit, very confused on how to use it in a program. In a earlier post someone posted to open simatic manager and you see sources and blocks, to select source, new source and paste it into it and compile it, but it had errors.
I have seen other post where others have posted custom code similiar to this, at the moment have researched the help files until i am about to go nuts, but can not figure out how to take a code such as what is posted as equivalent to a ab scp instruction and then be able to actually use it in a siemens program. I would assume that somehow you would take the code, copy it and somehow you would end up with a custom FB. I have worked with ab and omron for over 25 years, and still learning alot about them as I go along, but with this simens it feels like trying to learn how to speak a foreign language, but with post on this site, hopefully it will be something that i will look back on later and laugh at how confused i am at the moment, but i myself have never seen a software package for plc's that has such as a steep learning curve just to figure out how to accomplish simple task. I know I am not the smartest in the world by far, but at the moment been reading and trying to use it for that last couple of days and have been able to write some simple code, but it has really been a bear.
thanks