Loading…
Loading…
方法名称: range_method
方法ID: 0x4099
方法标签: range
方法描述: Selects the range sub dialog where the user can enter the upper and lower scale values for the input signal.The values typically are 4 and 20 mA but may be any values between 3.8 and 22 mA(Range signal).This dialog also allows auto find stop, manual stop and open stop adjustment.
- {
- char nbr;
- char test;
- int result;
- long ids[2];
- char status[3];
- _add_abort_method(16440);
- send(249,status);
- if (status[0])
- {
- display_response_status(249,status[0]);
- DELAY(3,literal_string(434));
- process_abort();
- }
- if (_ivar_value(16391) == 3 || _ivar_value(16391) == 8)
- {
- ACKNOWLEDGE(literal_string(435));
- PUT_MESSAGE(literal_string(436));
- nbr = 0;
- do {
- nbr += 1;
- if (nbr == 10)
- {
- DELAY(3,literal_string(434));
- process_abort();
- }
- send(135,status);
- send(249,status);
- }
- while (_ivar_value(16391) != 4);
- send(3,status);
- if (status[0])
- {
- display_response_status(3,status[0]);
- DELAY(3,literal_string(434));
- process_abort();
- }
- _vassign(16441,16385);
请登录以获得完整内容