Mode of operation of the translation process
In order to perform a check of the block of the ladder diagram shown as a state-
ment list, it is necessary to understand the principal procedure of PROTECT-
PSCsw during translation.
For the conversion of a ladder diagram into a statement list it is necessary to imag-
ine a virtual 1-register machine with a register width of 1 bit. In addition to the work-
ing register A, this machine has an interim memory (stack S0…S23) to save 24 1-
bit values. The working register always contains the result of the last operation
(Current Result (CR) according to IEC 61131). The interim memory is organised as
a stack. The last stored value is always located in S0. Every statement from table
7.10.4 can be specified as an instruction sequence for this virtual machine. Timer,
functions and edge detecting contacts are viewed as function call.