plcforum.uz.ua

International PLC Forum
It is currently Wed Nov 14, 2018 10:00 am

All times are UTC + 3 hours


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Nov 09, 2018 8:47 pm 

Joined: Mon Sep 27, 2010 10:17 pm
Posts: 81
Hello, everybody !

I have 25 bits in a DB which are located separately in a distance 6 bytes one after another.
How to make up all the bits into 2 words. The bits must be located one by one in every word.
The bit with least "address" in DB must be put into a bit0 in the word1 of the same DB.
Next bit with "address_1" = "address" + P#6.0 must be put into a bit1 in the word1, and so on.

I know how to do it in LAD.
But how to do it in STL in order to make the code shorter and to decrease the CPU cycle.
I think it's possible using AR1,AR2 and maybe some inner cycles.

Thanks in Advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by International PLCforum® Forum Software © PLCforum
Mobile version