Validity: Rule, Task
This keyword provides access to a logical input channel.
Syntax |
I32 inp (I32 n) |
---|---|
n |
Boolean input channel index (see file RHW.CFG). Minimum representable number: 1 Maximum representable number: Depends on Hardware |
Attributes |
Read only |
Example
; If a rising edge is detected on input channel 257, ; then in the string register sr(1) will be stored the string ; "The first input channel of module RMC2 is energized" if(rise(inp(257))) sr(1)= "The first input channel of module RMC2 is energized" |
Example
; if channel inp(1) is equal to 1, then in sr(1) ; it will be stored "you pressed the red adv button" _if(inp(1)) sr(1)= "you pressed the red adv button" ; if inp(2) channel is equal to 1 ; it will be stored "you pressed the red mode button" _if(inp(2)) sr(1)= "you pressed the red mode button" ; if inp(3) channel is equal to 1 ; it will be stored "you pressed the feed- red button" _if(inp(3)) sr(1)= "you pressed the feed- red button" ; if inp(4) channel is equal to 1 ; it will be stored "you pressed the feed+ red button" _if(inp(4)) sr(1)= "you pressed the feed+ red button" |