\i I r byte::relay_no bool::on_off word::time
| Parameter | Type | Range | Description |
|---|---|---|---|
| relay_no | byte | 0 ... 1 | number of the relay |
| on_off | byte | 0 ... 2 | mode of the relay |
| time | word | 0 ... 65535 | period of the state change in units of 10ms |
Switches the specified relay for the given time to the specified mode:
| Mode | Description |
|---|---|
| 0 | set relay off |
| 1 | set relay on |
| 2 | enable PWM on relay |
Note
| Response: | [ACK] |
Example
\iIr\1\1\D300
Turns relay number 1 on for 3 seconds.
See also:
Copyright © demmel products gmbh. All rights reserved.