XCHG (117)


XCHG (117)

ID                          117

 

 

Application:

PLC

SIM

 

Group: I/O

 

Short description:

A function that changes register values.

 

Inputs (1):

no.

type

impulse

mark

notes

1

B

yes (0 -> 1)

imp

Input signal


Outputs: none


Settings:

no.

type

mark

notes

1 I Rejestr 1 First register number
2 I Rejestr 2 Second register number


Function operation:

The XCHG function swaps the values of two registers. At the moment of occurrence of a rising edge at the IN input, values from registers with the numbers Register 1 and Register 2, set during the creation of the function block, are changed.

 

R registers and M markers used:

per function block property setting