Please enable JavaScript to view this site.

Function to force the state of I/O.

Syntax

i32 force (what, value)

what

Object to be forced. Can be:

Type

Description

inp(nCh)

Where nCh is the input channel to be forced. Can be any expression

inp_w(nW)

Where nW is the index of the input word to be forced. Can be any expression

inp_w(nW).(iB)

Where nW is the index of the input word and iB is the bit of the input word to be forced. It can be any expression

out(nCh)

Where nCh is the output channel to be forced. It can be any expression

out_w(nW)

Where nW is the index of the output word to be forced. Can be any expression

out_w(nW).(iB)

Where nW is the index of the output word and iB is the bit of the output word to be forced. It can be any expression

value

Value to force

Result

Returns:

Value

Description

0

Operation performed successfully

-1

Version of RTE not compatible

-2

Invalid index

-3

Invalid bit

Validity

Rule, Task

Note

Remember that:

Forcing an input means that sw will see the state of the forced input, regardless of the actual state of the physical input

Forcing an output means that the physical output will take the forced value regardless of the desired value imposed by sw

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC