From R3 source, LOGICAL input/output channels can be accessed via the keywords inp, out, inp_w, out_w.
However, the related PHYSICAL units are available and can be accessed via the following keywords (shell usable):
Physical units |
Description |
Forcible |
---|---|---|
pout |
physical output |
yes (act with the FV command). If the logical channel (out) is forced, pout is also automatically forced |
pout_w |
physical word output |
yes (act with the FV command). If the logical channel (out_w) is forced, pout_w is also automatically forced |
pinp |
physical input |
no (act with the FV command on the logical channel ex: FV INP 1000 1) |
pinp_w |
physical input word |
no (act with the FV command on the logical channel ex: FV INP_W 1000 0xFFFF) |
RTE maps the inp_w and out_w to 256 by default. If you want to perform forcing on unmapped units (typical example are the inp_w and out_w associated with remote control units on a canbus line), you must use the def_io baseIO nWordIn nWordOut commands to map the memory.
Examples
Example of input channel operations performed by an RDE shell:
; from shell ; we force the logical state to 1
; In this situation, the response to the command
; (used to display the status of input logic channel 1) will be TRUE ; while the response to the command
; (used to display the status of physical input channel 1) will be ; the actual value of the physical channel inp 1 ; To release the forcing use the RV (release variable) command.
; or
; used to release all active forcings |
Example of 16bit input word channel operations performed by an RDE shell:
; from shell ; we force the value of input word 1 to 0xffff
; In this situation, the response to the command
; will be 0xffff while the response to the command
; will be the actual value of the input physical word 1 ; To release the forcing use the RV (release variable) command.
; or
; used to release all active forcings |