— 46 —
The rule works the following way: when the measured parameter «X» takes a value that matches
the condition «c» continuously during «t» seconds, Digital Switching channel «ch» in Bank «b» changes
its status to «a».
Some examples of setting rules by including parameter lines in an YDBM.TXT configuration file:
SV1_ON=>12 60 0 1
When the measured voltage exceeds 12 V during 60 seconds, rule #1 changes the status of DS Channel #1
at Bank #0 to ON.
SC3_OFF=NEVER
Disables current-related «OFF» rule #3. You can find more examples in Section IV.
3.2. Setting rules with Installation Description strings
To set Digital Switching rules, you may use the following command formats:
YD:SXn <ON|OFF> [<condition> <time> <bank> <channel>]|NEVER
where:
X – measured or calculated parameter (V – voltage in Volts, C – current in Amperes, T – temperature
in Celsius degrees, or S – state of charge in percent);
n – rule number (1..3, integer);
ON|OFF – destination status of the specified Digital Switching channel;
<condition> – comparison direction (more < or less >) and reference parameter value, e.g. «<11
»
;
<time> – time period (in seconds) during which the condition must continuously occur (0..65534,
integer);
<bank> – Digital Switching bank number (0..252, integer);
<channel> – Digital Switching channel number (1..28, integer);
NEVER— disables the rule of a specified number and destination status.
Содержание NMEA 2000 YDBM-01
Страница 66: ......