Chris Elston

Allen Bradley FLL command in Omron?

3 posts in this topic

What would be the best instruction for me to use in Omron Sysmac to act like a FLL (File FILL) command in Allen Bradley?

I have a Tag that is

TAG_NAME ARRAY[0..95] OF BOOL

I would like to set bit (array) 17 through 95 "ZERO" or "FALSE" with one function block.

Set 80 bits FALSE?

TAG_NAME[16] through TAG_NAME[95]  = 0?

 

Share this post


Link to post
Share on other sites

The ladder code (3 rungs) or the ST (1 block) will do what you are looking for.

Edit:  I mixed and matched the starting position of the FOR in the ladder and ST.  They would start at the same position.

You can also make your own Function to do this, using the ladder or ST shown.

Variable_Clear.jpg

Share this post


Link to post
Share on other sites

I like PMCR's method because you can clearly see the starting bit and ending bit. However, there is an equivalent instruction to the FLL that will accept the start position and length. Below, Test_Bit[0] will fill TRUE starting at bit 0 for a length of 96 bits. Test_Bit[1] will set bits 17 through 95 to FALSE as shown in the watch table.

Mr_PLC_SetBlock.PNG.d2788a7a84d06ccfcad8

Edited by IO_Rack
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