INC (80)


INC (80)

ID                          80

 

 

Application:

PLC

SIM

 

Group: MATH

 

Short description:

Register increment function.

 

Inputs (1):

no.

type

impulse

mark

notes

1

B

yes (0 -> 1)

imp

Input signal

 

Outputs (2):

no.

type

impulse

mark

notes

1

R

no

OUT

Function output value
2 B yes (0 -> 1 -> 0) limit Result is out of limit for an integer type variable



Settings:

no.

type

mark

notes

1

I

NUM

Register no.

 

Function operation:

The INC function increments the NUM register value when a rising edge is present at the imp input. When a function block is created, the NUM variable is assigned a register number. The function returns the value of the selected register on the OUT output. If the result of the operation is greater than the upper value of the integer variable (0 ... 2147483647), then the limit output is activated for one program cycle, and the value 0 is set on the OUT output and in the NUM register. is lower than 0, then 0 is set in the register.

 

R registers and M markers used: as set in the (NUM) parameter of the function block.