ADVANCED INSTRUCTIONS

 

6.1.1 Manipulating Memory

[an error occurred while processing this directive]

 

1. Enter and try the following program, it will directly influence timer preset values in memory. Try testing the basic operation. Then, set the preset to 2 seconds. Then cause the timer to pass the 2 second preset, note the result, but don’t reset the timer. Set the preset to 10 seconds, and continue the timer increment.

 

 

2. Write a program that adds two numbers. If the sum is greater than 8 then an output will turn on. Enter the ladder logic and run the program. Watch the values displayed, and notice how applied voltages to inputs ‘00’ and ‘01’ change the values.

 

 

 

6.1.2 Math

[an error occurred while processing this directive]

 

1. Enter and run the program below. (Note: ‘f’ will need to be defined as an array, and values can be entered into the ‘f’ array directly from RSLogix using the tag editor).

 

 

 

6.1.3 File Algebra

[an error occurred while processing this directive]

 

1. Enter and run the following ladder logic.

 

 

6.1.4 Comparison Functions

[an error occurred while processing this directive]

 

1. Enter and run the following ladder logic.

 

 

2. Modify the last ladder logic program to match the one below. Run the program.

 

 

3. Write a program that uses the other types of comparison functions.

 

 

6.1.5 Boolean Functions

[an error occurred while processing this directive]

 

1. Enter and run the following program.

 

 

2. Try other Boolean logic functions in the previous program. Try changing the numbers written into n[1].

 

 

6.1.6 Shift Registers

[an error occurred while processing this directive]

 

1. Enter and run the following ladder logic.

 

 

2. Modify the previous program to make lights flash across the outputs (like christmas tree lights).

 

6.1.7 Stacks

[an error occurred while processing this directive]

 

1. Enter and run the program below. (Note: ‘n’ is an array of DINTs.)

 

 

 

6.1.8 Sequencers

[an error occurred while processing this directive]

 

1. Enter and run the program below.

 

 

 

6.1.9 Jumping and Subroutines

[an error occurred while processing this directive]

 

1. Enter and run the programs below. The routine ‘skip’ can be created by right-clicking on ‘Main Program’ and selecting ‘new routine’. Make sure the Type is ‘ladder diagram’.

 

 

 

 

 

[an error occurred while processing this directive]