Description of STL instructions

Symbolic names

For the NEED relays it is possible assign symbolic names to variables in a project. This way the program is easier to analyze and clearer. To associate a variable with a symbolic name, use an expression with the following syntax:

. DEFINE < symbolic name >=<variable>

After that a symbolic name preceded with the % character can be used instead of the variable address, such as Q1, I11, for example::

Symbolic names are case insensitive. Names of relay resources and statements cannot be symbolic names. Symbolic names may not begin with a digit, and can contain up to 30 characters. .

AND instruction
SYMBOL - A
‘A’ instruktion is a logical instruction of AND type.
SYNTAX:
A < I,Q,M,MDIR,A,H,C,HC1,T >
Instruction execution time: 6 μs

The example above employs a series connection.Q1 output will be set (state ‘1’) when states of both inputs are high, according to the principle of AND function.

AND parenthesis instruction
SYMBOL - A(
‘A(’ is a logical instruction of AND, type the operand of which is the result of logical operations given in the parentheses.
SYNTAX:
A(
Conditional instructions
)

Instruction execution time: 6μs
Figure below illustrates the principle of execution of the ‘A(‘ instruction. All other „parenthesis” instructions are based on the same principle.

Operations in parentheses are executed. As a result of those logical operations a result is produced (‘0’ or ‘1’) which is used for subsequent logical operations e.g. for the program:

and logical states: M1=’0’, M2=’0’, I1=’1’. Thus, it can be noted that:

Which means that, for the states analysed, the Q1 output state will be ‘0’ while in case of states M1=’1’, M2=’0’, I1=’1’ the following results are produced:


Q1 output will be set (state ‘1’) when states of I6 and I7 inputs are high and one of the Markers (M1 or M2) is at state ‘1’.

AND NOT instruction
SYMBOL - AN
‘AN’ instruction is a logical instruction of AND NOT type (AND instruction with negated operand state)
SYNTAX:
AN < I,Q,M,MDIR,A,H,C,HC1,T >
Instruction execution time: 6μs

Q1 output will be set (state ‘1’), when states of both inputs are low (‘0’).

AND NOT parenthesis instruction
SYMBOL - AN(
‘AN(’ is a logical instruction of AND NOT type the operand of which is the result of logical operations given in the parentheses.
SYNTAX:
AN(
Conditional instructions
)

Instruction execution time: 6μs

Q1 output will be set (state ‘1’) when states of I6 and I7 inputs are high and both Markers (M1 and M2) are at state ‘0’.

OR instruction
SYMBOL - O
‘O’ instruction is a logical instruction of OR type.
SYNTAX:
O < I,Q,M,MDIR,A,H,C,HC1,T >
Instruction execution time: 6μs

Q1 output will be set (state ‘1’), when state of one the inputs is high (‘1’). Parallel connection is employed.

OR parenthesis instruction
SYMBOL - O(
‘O(’ is a logical instruction of OR type the operand of which is the result of logical operations given in the parentheses.
SYNTAX:
O(
Conditional instructions
)

Instruction execution time: 6μs

Q1 output will be set (state ‘1’) when states of I6 and I7 inputs are high or both Markers (M1 or M2) are at state ‘1’.

OR NOT instruction
SYMBOL - ON
‘ON’ instruction is a logical instruction of OR NOT type (OR instruction with negated operand state).
SYNTAX:
ON < I,Q,M,MDIR,A,H,C,HC1,T >
Instruction execution time: 6μs

Q1 output will be set (state ‘1’), when state of at least one the inputs is low (‘0’).

OR NOT parenthesis instruction
SYMBOL - ON(
Instrukcja ‘ON(’ is a logical instruction of OR NOT type of the result of logical operations given in the parentheses.
SYNTAX:
ON(
Conditional instructions
)

Instruction execution time: 6μs

Q1 output will be set (state ‘1’) when states of I6 and I7 inputs are high or one of the Markers (M1 or M2) is at state ‘0’.

XOR instruction
SYMBOL - X
‘X’ instruction is a logical instruction of XOR type.
SYNTAX:
X < I,Q,M,MDIR,A,H,C,HC1,T >
Instruction execution time: 6μs

Q1 output will be set (state ‘1’) when states of I5 and I1 inputs are opposite (I5=’1’ and I1=’0’ or I5=’0’ and I1=’1’ ).

XOR parenthesis instruction
SYMBOL - X(
‘X(’ is a logical instruction of XOR NOT type of the result of logical operations given in the parentheses.
SYNTAX:
X(
Conditional instructions
)

Instruction execution time: 6μs

Q1 output will be set (state ‘1’) according to the principle of XOR NOT function, i.e.: Q1=1 for I7=1 and states of both Markers (M1 and M2) are high (‘1’). Q1=1 for I7=0 and state of one of the Markers is low (‘0’).

XOR NOT instruction
SYMBOL - XN
‘XN’ instruction is a logical instruction of XOR NOT type SYNTAX:
XN < I,Q,M,MDIR,A,H,C,HC1,T >
Instruction execution time: 6μs

Q1 output will be set (state ‘1’) when logical states of I5 and I1 inputs are the same (I5=’0’ and I1=’0’ or I5=’1’ and I1=’1’ ).

XOR NOT parenthesis instruction
SYMBOL - XN(
‘XN(’ is a logical instruction of XOR NOT type of the result of logical operations given in the parentheses.
SYNTAX:
XN(
Conditional instructions
)

Instruction execution time: 6μs

Q1 output will be set (state ‘1’) according to the principle of XOR NOT function, i.e.: Q1=1 for I7=1 and states of both Markers (M1 and M2) are high (‘1’). Q1=1 for I7=0 and state of one of the Markers is low (‘0’).

S setting instruction
SYMBOL - S
‘S’ instruction is a logical instruction that sets the operand to high state (‘1’)
SYNTAX:
S < M,Q >
Instruction execution time: 6μs

Q1 output will be set (state ‘1’) when the state of I5 input is high (‘1’). It will remain in that state until low state (‘0’) is set using ‘R’ instruction – I1 input.

R (Reset) resetting instruction
SYMBOL - R
‘R’ instruction is a logical instruction that sets the operand to low state (‘0’)
SYNTAX:
R < M,Q,C,HC1,T >
Instruction execution time: 6,5μs

Q1 output will be set (state ‘1’) when the state of I5 input is high (‘1’). It will remain in that state until low state (‘0’) is set using ‘R’ instruction – I1 input.

= Assigning instruction
SYMBOL - =
The instruction of ‘=’ is a logical instruction in which the operand takes on a value (‘0’ or ‘1’ state) which depends on the result of previous logical operations
SYNTAX:
= < M,Q >
Instruction execution time: 6,7μs

Q1 output state depends on previous logical operations i.e. it takes on ‘0’ state when the state of one of the inputs is ‘0’, or it takes on the state ‘1’ when the states of both inputs are ‘1’.

FP Pulse Relay instruction
SYMBOL - FP
Pulse relay performs the function of a flip-flop triggered by the leading edge. Each leading pulse changes the output state to opposite.
SYNTAX:
FP < M,Q >
Instruction execution time: 5,9μs

If the state of Q1 output remains low and a positive control edge occurs at I1 input then the Q1 output state will be set to high. If the state of Q1 output remains high and a positive control edge occurs at I1 input then the Q1 output state will be set to low.

Timer „Delayed turn-on” (ON-DELAYED)
Timer delays the turn-on.
SYMBOL - SD
SYNTAX:
SD < T >
Instruction execution time: 14,1μs

1.
I8 input performs the function of a triggering input (Trigger). Directly after the triggering instruction there is an instruction (‘L’) loading the specified time value to be measured. The latter instruction should be put directly before Timer instruction (SD). Time is measured after the execution of SD Timer activation instruction (leading edge at I8 input).
2.
After a time of t=400ms the Q1 output state is set to high (‘1’). At the same time a high (‘1’) signal should be retained at the I8 triggering input.
3.
If a low state occurs at the I8 Trigger input the measured time counter of T1 Timer is reset and Q1 output is set to low (‘0’).
4.
If a high state appears at the I1 input resetting the T1, the measured time T1 Timer will be automatically cleared, and the Q1 output is set to the low state (‘0’).If the “L” statement is not used, then the time to be measured by T1 will be set from the “*.set” configuration file (settings window in the PC Need program). .


Timer Delayed turn-off (OFF-DELAYED)
Timer Delayes turn-off
SYMBOL - SF
SYNTAX:
SF < T >
Instruction execution time: 18,7μs

1.
The I5 input performs the function of a triggering input (Trigger). Directly after the triggering instruction there is an instruction (‘L’) which loads the specified time value to be measured. The latter instruction should be put directly before the Timer instruction (SF). Setting of I5 input results in automatic setting of T1 Timer output.
2.
Time is measured after the execution of SF Timer activation instruction (trailing edge at I5 input).
3.
After a time of t=200ms the Q1 output state is set to low (‘0’) – Q1 is turned off.
4.
If, during the Timer’s time measurement, a high state (‘1’) occurs at its trigger input, the measured time counter is reset. The Timer is actuated again once a trailing edge occurs at I5 input.
5.
If a high state appears at the I1 input resetting the T1, the time measuring counter and the T1 Timer will be cleared.If the “L” statement is not used, then the time to be measured by T1 will be set from the “*.set” configuration file (settings window in the PC Need program). .

Timer Single pulse SE
Timer performs the function of a single pulse.
SYMBOL - SE
SYNTAX:
SE < T >
Instruction execution time: 18,7μs

1.
The I5 input performs the function of a triggering input (Trigger). The triggering instruction is followed by an instruction (‘L’) which loads the specified time value to be measured. The latter instruction should be put directly before SE Timer instruction. Time is measured after the execution of the Timer activation instruction (leading edge at I5 input).
2.
For a period of t=200ms the Q1 output state will be set to high (‘1’). The state can be extended if another triggering occurs at the Trigger input. Having measured the preset time value, the Timer output returns to low state (‘0’) – Q1 goes to low state.
3.
If a high state appears at the I1 input resetting the T1, the time measuring counter and the T1 Timer will be cleared.If the “L” statement is not used, then the time to be measured by T1 will be set from the “*.set” configuration file (settings window in the PC Need program).


Timer Pulses (FLASHING)
Timer performs the function of a square wave generator of pulse-width modulation of 50%.
SYMBOL - SL
SYNTAX:
SL < T >
Instruction execution time: 18,7μs

1.
The I5 input performs the function of a triggering input (Trigger). The triggering instruction is followed by an instruction which loads the specified time value to be measured. The latter instruction should be put directly before SL Timer instruction. Time is measured after the execution of Timer activation instruction (high state ‘1’ at the I5 triggering input). For a period of t=20ms the Q1 output state will be set to low (‘0’) and then, for another period of 20ms, it will be set to high (‘1’). The situation will be repeated as long as the high state is present at the I5 input or until a high state occurs at the I1 resetting input.
2.
If a low state (‘0’) occurs at the I5 triggering input or a high state (‘1’) is present at the I1 resetting input, the counter of the time being measured and the Timer output are automatically reset.
3.
If high states (‘1’) are simultaneously sent to both Reset and Trigger inputs and if, after a certain time period, the level of Reset signal is changed to low (‘0’) then the Timer output is activated for a period of t=20ms and, afterwards, deactivated for another period of t=20ms and then again activated and so on. The Timer generates a square wave at its output, which is shifted by 180 degree in relation to the waveform referred to in item 1.



Remarks concerning use of Timers

The same Timer can be used many times, in different modes.
If, according to the below example, the leading edge occurs at the I1 input , then T1 Timer will be triggered in SD mode, with the time of 20 ms (1).If the trailing edge occurs at the I2 input, then the T1 Timer will be triggered in SF mode, with the time of 50 ms (2). If leading edge occurs at the I3 input , then the T1 Timer will be triggered in SE mode, with the time of 50 ms (3). If high state occurs at I4 input then the T1 Timer will be triggered in SL mode, with the time of 20 ms (4).


Count-up CU (Count Up).

SYMBOL - CU
SYNTAX:
CU < C >
Instruction execution time: 6.1μs

1.
Occurrence of leading edge at the I5 triggering input results in the current C1 Counter value being increased by 1.
2.
Once the current Counter value reaches the threshold value (6) the Q1 output state is set to high. If further pulses occur at the triggering input, they will be counted by the Counter until the maximum value of 65535 is reached, its output remaining at high state. The Counter never overflows. Once the maximum value is reached the Counter stops responding to the triggering pulses.
3.
If a high state appears at the I1 resetting input – the current value of the C1Counter and its output will be cleared. If the low state appears at this input, the Counter can keep running.If the “L” statement is not used, then the threshold value after which the C1 Counter sets its value to the high state will be based on the “*.set” configuration file (the Settings window in the PC Need program).

Count-down CD (Count Down)

SYMBOL - CD
SYNTAX:
CD < C >
Instruction execution time: 6.1μs

1.
After occurrence of a leading edge at the I4 triggering input, the current C1 Counter value will be reduced by 1.
2.
Once the current value of pulse Counter goes below the threshold value (100), the Q1 output state is set to low. If further pulses occur at the I4 triggering input, they will be counted by the Counter until the minimum value of 0 is reached. The Counter never overflows. Once the minimum value is reached the Counter stops responding to the triggering pulses.
3.
If a high state appears at the I1 resetting input – the current value of the C1Counter and its output will be cleared. If the low state appears at this input, the Counter can keep running.If the “L” statement is not used, then the threshold value after which the C1 Counter sets its value to the high state will be based on the “*.set” configuration file (the Settings window in the PC Need program).

Remarks on the use of Counters

1. Using the Fast Counter HC.
 To use the Fast Counter:
- connect the Counter triggering signal to the I11 input.
- activate the Fast Counter using the CU or CD statement, for example:

In the aforementioned example the Fast Counter will set its output to the high state, if the current value of the Counter is greater than or equal to 25000.

In the aforementioned example the Fast Counter will set its output to the high state, if the current value of the Counter is greater than or equal to 100.

If the “L” statement is not used, then the threshold value after which the Fast Counter sets its output to the high state will be based on the “*.set” configuration file (the Settings window in the PC Need program).

The Fast Counter counts up and down. After reaching the maximum value - 65535, starts counting from zero after performing the reset function.

The Fast Counter can also measure the frequency – the corresponding mode of operation will be set by means of the PCNeed program configuration window.

The maximum guaranteed frequency of operation of the Fast Counter is 20kHz.


Figure below shows an example of the HC1 Fast Counter settings window.

In the aforementioned example the Quick counter will set its output to the high state, if the if the number of pulses counted during 1 second is greater than or equal to 100.

2. One switching threshold
In order to set one threshold that switches the Counter output to high state, the same arguments (values to be counted) must be used in the Load instruction for both CU and CD - Figure below. Leading edges that occur at M1 cause the C1 Counter to count up. If the value counted by C1 is higher than or equal to 6 then the C1 output will be set. Leading edges that occur at A1 cause the C1 Counter to count down. If the value counted by C1 is lower than 6 then the C1 output state will be set to low.

3. Two switching thresholds (range)
If the Load instructions of the Counters have different arguments (values to be counted) then two switching thresholds are set – Figure below Leading edges that occur at M1 cause the C1 Counter to count up. If the value counted by C1 is higher than or equal to 6 then the C1 output will be set. Leading edges that occur at A1 cause the C1 Counter to count down. Only when the value counted by C1 is lower than 3 the C1 output state will be set to low. Thus, during count-down the C1 output state is high when the values counted by the Counter are between 6 and 3.

4. Several switching thresholds
It is also possible to define several switching thresholds. The “always enabled” input „takes control” over the Counter and, depending on the value currently counted and the threshold set for that input, the Counter output is either set or reset – Figure below.


The maximum frequency of counting pulses depends on the program execution time. State of the counting input must be stable for at least one cycle of program loop.


Clock instructions
The Clock is a real-time clock and its configuration should be carried out using “PC Need”
SYMBOL - H
SYNTAX:
< Conditional instructions > H <Clock number >


The H1 Clock is configured appropriately using PC Need program. Figure below presents a sample configuration of H1 Clock.


Q1 output will be set according to H1 Clock output state changes Sunday through Wednesday between 8 a.m. and 3 p.m.

Analogue inputs - Comparators

SYMBOL - A<Comparator number>
SINTAX:
< conditional instructions > A < Comparator number >


Analogue inputs are properly configured using PC Need application.
Figure below presents a sample configuration of A1 Comparator.


The Comparator compares the preset value (100) with the analogue value at I7 input. If the voltage value at I7 input is higher than or equal to 100V the Comparator takes on the state ‘1’, otherwise the output of the Comparator will be at the state ‘0’.The Q1 output follows the changes that occur at the A1 comparator output.

Loading instruction (LOAD)
The ‘L’ statement is used for defining the Timer times and (counting) threshold values for Counters..
SYMBOL - L
SYNTAX:
L < value >

‘L’ statement for Timers.
Time of statement execution: 8.3μs.

1. Constant time values for Timers.

The <value> parameter for the ‘L’ statement assumes the respective constant time values from the ranges given in Table below

Time format Range Step Examples of values
s.ms (seconds.milliseconds 0s.10ms - 99s.990ms 10ms 50ms, 24s, 50s.120ms
min.s (minutes.seconds) 0min.1s - 99min.59s 1s 2min, 32min, 98min.24s
h.min (hours.minutes) 0h.1min - 99h.59min 1min 1h, 5h.18min


Examples:


2. Time values for Timers based on the Potentiometer setting

Time of statement execution: 10.3μs.
You can also use the value read from the Potentiometer as the time to be measured by Timers, then the argument <value> of the ‘L’ statement can take the following values:

Potentiometer range Multiplier Time range
1 - 255 x10ms
x100ms
x1s
x10s
x1min
10ms - 2,55s
100ms - 25,50s
1s - 4min15s
10s - 42min30s
1min - 255min0s

Examples:



3. Time values for Timers based on the voltage values on analog voltage inputs


Time of statement execution: 10,3μs.

For measuring time for Timers, it is possible to use the values of voltages read from the I7, I8 analog inputs in the NEED-12DC-x1-08-4, NEED-24DC-x1-08-4 version or I14, I15, I16 in the NEED-12DC-x1-16-8, NEED-24DC-x1-16-8 version.

For the analog voltage inputs the argument <value> of the ‘L’ statement can take the time values presented in Table below.

The voltage range
measured on
the analog input [V]
Range multiplier General multiplier Time range
0,10 – 25,50
(in 0,10 steps)
x10ms
x100ms
x1s
x10s
x1min
          x10
10ms - 2,55s
100ms - 25,50s
1s - 4min15s
10s - 42min30s
1min - 255min0s
0,05 – 12,75
(in 0,05 steps)
x10ms
x100ms
x1s
x10s
x1min
          x20
10ms - 2,55s
100ms - 25,50s
1s - 4min15s
10s - 42min30s
1min - 255min0s

The time measured for the NEED-24DC-x1-.., NEED-12DC-x1.. relays is calculated as follows:

Voltage values on the analog input [V] x range multiplier x general multiplier = measured time

In the STL language syntax the AI7 or AI8 symbols are used for NEED-12DC-x1-08-4, NEED-24DC-x1-08-4 or AI14, AI15, AI16 for NEED-12DC-x1-16-8, NEED-24DC-x1-16-8, for example:




Increased resolution of analog inputs (operating range 0.05V – 12.75V) can be used only for the NEED-12DC-x1-16-8 or NEED-24DC-x1-16-8 relays.


4. Time values for Timers based on the current values on current analog inputs


Time of statement execution: 10,3μs.

For current analog inputs (only for NEED-12DC-x1-16-8, NEED-24DC-x1-16-8) the argument of the ‘L’ statement can take the time values presented in the Table below.

The current range
measured on
the analog input [mA]
Range multiplier General multiplier Time range
0.2 – 51.0
(in 0.20 steps)
x10ms
x100ms
x1s
x10s
x1min
          x5
10ms - 2,55s
100ms - 25,50s
1s - 4min15s
10s - 42min30s
1min - 255min0s
0.1 – 25.50
(in 0.10 steps)
x10ms
x100ms
x1s
x10s
x1min
          x10
10ms - 2,55s
100ms - 25,50s
1s - 4min15s
10s - 42min30s
1min - 255min0s


The time measured for the NEED-24DC-x1-16-8, NEED-12DC-x1-16-8 relays is calculated as follows:

The current values on the analog input [mA] x range multiplier x general multiplier = measured time



Increased resolution of analog inputs (operating range 0.10mA – 25.50mA) can be used only for the NEED-12DC-x1-16-8 or NEED-24DC-x1-16-8 relays.



‘L’ statement for Counters.


1. Constant threshold values for counters.


Time of statement execution: 8.3μs

The <value> parameter of the ‘L’ statement takes the corresponding constant values for Counters from the range of 0–65535 e.g.:


2. Threshold values for counters, defined according to the Potentiometer setting

Time of statement execution: 10.3μs.
You can also use the value read from the potentiometer as the set value to be counted by the Counters, then the ‘L’ statement format can take the following value:


Potentiometer range Range multiplier Number range
1 - 255 x1
x10
x100
1 - 255
10 - 2550
100 - 25500


3. Threshold values for Counters based on the voltage values on analog voltage inputs

Time of statement execution: 10.3μs

IFor setting thresholds for the Counter it is possible to use the values of voltages read from the I7, I8 analog inputs in the NEED-12DC-x1-08-4, NEED-24DC-x1-08-4 version or I14, I15, I16 in the NEED-12DC-x1-16-8, NEED-24DC-x1-16-8 version. In this case the argument of the ‘L’ statement can take the threshold values shown in the Table below.

The voltage range on
the analog input [V]
Range multiplier General multiplier Number range

0.1 – 25.5
(in 0.1 steps)
x1
x10
x100
         
          x10
1 - 255
10 - 2550
100 - 25500 

0.05 – 12.75
(in 0.05 steps)
x1
x10
x100
         
          x20
1 - 255
10 - 2550
100 - 25500

The threshold set for the NEED-24DC-x1-.., NEED-12DC-x1-.. relays is calculated as follows:

Voltage values on the analog input [V] x range multiplier x general multiplier = Counter threshold

In the STL language syntax the AI7 or AI8 symbols are used for NEED-12DC-01-08-4, NEED-24DC-01-08-4 or AI14, AI15, AI16 for NEED-12DC-01-16-8, NEED-24DC-01-16-8, for example:



Increased resolution of analog inputs (operating range 0.05V – 12.75V) can be used only for the NEED-12DC-x1-16-8 or NEED-24DC-x1-16-8 relays.


4. Threshold values for Counters based on the voltage values on current analog inputs


Time of statement execution: 10.3μs

For setting thresholds for the Counter it is possible to use the values of currents read from the I14, I15, I16 analog inputs in the NEED-12DC-x1-16-8, or NEED-24DC-x1-16-8. In this case the argument of the ‘L’ statement can take the threshold values shown in the Table below.


The current range
on the analog input [mA]
Range multiplier General multiplier Number range

0.2 – 51.0
(in 0.2 steps)
x1
x10
x100
         
          x5
1 - 255
10 - 2550
100 - 25500 

0.1 – 25.50
(in 0.1 steps)
x1
x10
x100
         
          x10
1 - 255
10 - 2550
100 - 25500


The threshold set for the NEED-24DC-x1-.., NEED-12DC-x1-.. relays is calculated as follows:

The current values on the analog input [mA] x range multiplier x general multiplier = Counter threshold



Increased resolution of analog inputs (operating range 0.10mA – 25.50mA) can be used only for the NEED-12DC-x1-16-8 or NEED-24DC-x1-16-8 relays.



Examples of use of the ‘L’ statement

A 20s value will be loaded into the T1 Timer.
A fixed threshold value of 10 is set for the C8 Counter C8, toggling its output state from low (‘0’) to high (‘1’).
The T2 Timer will be loaded with the potentiometer value multiplied by 1s For the C1 Counter a threshold value is set by means of the analog value present on AI16, multiplied by 10 (range multiplier 0.1 – 25.5V) x 10 (general multiplier), toggling its output state from (‘0’) to high (‘1’).

 
Remarks concerning the use of ‘L’ instruction.

1. If no Load statement was performed in the program, then the time values measured by Timers and the threshold values for Counters are defined in the PC Need program, in the “*.set” configuration file, e.g.:

In the example above the T2 Timer will measure the time of 1s, set in the PC Need program, whereas the Counter will set/clear its output at the threshold of 21. The following configurations are set in figures below.


2. If a Load statement was performed in the program, then all time values to be measured by Timers and values to be counted by Counters are defined by this statement.

In the example above triggering of the T2 Timer with the ramp-up on the I3 input will cause T2 to measure the time set in the PC Need program, in the configuration file.If a rising edge appears at the I8 input, then the T3 Timer will measure the time defined in the Load statement – 1min, and the T4 Timer will measure the time set in the “*.set” settings file.

“Always setting” instruction SET

‘SET’ instruction permanently sets the state to high ‘1’.
SYMBOL - SET
SYNTAX:
SET
Instruction execution time: 8.9μs

‘SET’ instruction is unconditional (always executed), and it permanently sets the logical state of ‘1’ in the conditional part of the circuit.

Example:

Upon execution of that instruction Q4 output and M16 Marker will be permanently set to high state ‘1’ while the T1 Timer will be permanently released to operate in the pulse generator mode.


“Always clearing” instruction CLR

‘CLR’ instruction permanently sets the state to low ‘0’.
SYMBOL - CLR
SYNTAX:
CLR
Instruction execution time: 8.9μs

'CLR' instruction is unconditional (always executed), and it permanently sets the logical state of ‘0’ in the conditional part of the circuit.

Example:

Upon execution of the ‘CLR’ instruction M1 Marker and Q1 output will be permanently set to low state ‘0’ while T1 Timer will never be started.

Converted from CHM to HTML with chm2web Pro 2.7 (unicode)