Changes

2,196 bytes added ,  13:42, 27 March 2023
Created page with "'''Repeatedly''' sets digital outputs <b>ON</b> or <b>OFF</b> for provided timeouts and repeats.<br/> SMS format: <code>pulsedigout XY <on_msX1> <on_msY1> <off_msX2> <off_msY2..."
'''Repeatedly''' sets digital outputs <b>ON</b> or <b>OFF</b> for provided timeouts and repeats.<br/>
SMS format: <code>pulsedigout XY <on_msX1> <on_msY1> <off_msX2> <off_msY2> <repeatsX3> <repeatsY3></code>
<br/><br/>
Set digital output:<br>
Command format:
X - 0, 1 or ? (0 - OFF, 1 - ON, ? - Ignore) starting state for DOUT1. <br>
Y - 0, 1 or ? (0 - OFF, 1 - ON, ? - Ignore) starting state for DOUT2.<br>
X1 - ON timeout for DOUT1 in milliseconds<br>
Y1 - ON timeout for DOUT2 in milliseconds<br>
X2 - OFF timeout for DOUT1 in milliseconds<br>
Y2 - OFF timeout for DOUT2 in milliseconds<br>
X3 - repeats for DOUT1<br>
Y3 - repeats for DOUT2<br><br>
<b>Note!</b>
*If DOUT is selected to be ignored, then other arguments for that DOUT should be entered as ?
*If on_ms, off_ms or repeats for any of DOUTs will be entered as ?, then value will be set to 1
*For command to take effect for DOUT, X/Y has to be set to opposite value than its current state

<b>In order to blink both DOUTs</b><br>
Example: <code>pulsedigout 11 2000 3000 1000 2000 2 3</code><br>
''DOUT1'' will blink 2 times: on for 2000 ms and off 1000 ms. <br>
''DOUT2'' will blink 3 times: on for 3000 ms and off for 2000 ms<br>
<b>In order to ignore DOUT control</b><br>
Example: <code>pulsedigout 1? 2000 ? 1000 ? 2 ?</code><br>
''DOUT1'' will blink 2 times: on for 2000 ms and off 1000 ms.<br>
''DOUT2'' will be ignored<br>
<b>If on_ms, off_ms or repeats are not provided</b><br>
Example: <code>pulsedigout 11 2000 3000 ? 2000 2 ?</code><br>
''DOUT1'' will blink 2 times: on for 2000 ms and off for 1 ms (not really visible if LEDs are used). <br>
''DOUT2'' will blink 1 time: on for 3000 ms.<br>
Example: <code>pulsedigout 1? 2000 3000 1000 2000 2 3</code><br>Will end with error ''Bad syntax''<br>
<b>If entered DOUT state is same as current DOUT state</b><br>
Example: <code>pulsedigout 11 2000 3000 1000 2000 2 3</code><br>Let’s say DOUT1 current state is 0 and DOUT2 is 1.<br>
''DOUT1'' will blink 2 times: on for 2000 ms and off 1000 ms. <br>
''DOUT2'' control will be ignored.<br>

<b>Note!</b>
Provided examples are for devices with 2 DOUTs. For other devices arguments count should correspond to device DOUTs count.
0

edits