Please enable JavaScript to view this site.

This keyword provides access to a logical input word (16 bits).

Syntax

I16 inp_w (I32 n)

n

Index of the input word (see file RHW.CFG).

Minimum representable number: 1

Maximum representable number: Depends on Hardware

Attributes

Bit-accessible.

Read only

In the case of remote I/O mapping to fieldbus, indices 257 to 9999 must be used. To be able to do forcing, such as from shell or panel, use the device (directive) command DEF_IO.

NOTE: The returned value of the first 256 words is always returned as U16 so if a sign is needed (e.g., on analog inputs) it must be explicitly casted (I16).

Example

 

  

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