Area in Memory
Counters have an area reserved for them in the memory of your CPU. This memory area reserves one 16-bit word for each counter address. When you program in FBD, 256 counters are supported. The counter instructions are the only functions that have access to the counter memory area.
Count Value
Bits 0 through 9 of the counter word contain the count value in binary code. The count value is moved to the counter word when a counter is set. The range of the count value is 0 to 999.
You can vary the count value within this range by using the following counter instructions:
· S_CUD : Assign Parameters and Count Up/Down
· S_CU : Assign Parameters and Count Up
· S_CD : Assign Parameters and Count Down
· SC : Set Counter Value
· CU : Up Counter
· CD : Down Counter
0 comments:
Post a Comment