![Sollae Systems PES-2403 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/sollae-systems/pes-2403/pes-2403_user-manual_1316208017.webp)
PES-2403 User Manual > How to use > Getting States
2017-07-28
Sollae Systems
page 17 of 26
position: 260
position: 338
position: 392
Getting a state of digital input ports
A command eio get is for getting a state of digital input ports.
"eio get (p) input"
The argument p means an ID(0 ~ 3) of digital input ports. Return values of this command are as
follows:
value
state
0
LOW
1
HIGH (default)
an example of getting states of digital input ports.
<?php
include_once "/lib/sd_spc.php";
spc_reset();
spc_sync_baud(460800);
$sid = 1;
while(1)
{
echo spc_request_dev($sid, "eio get 0 input");
echo spc_request_dev($sid, "eio get 1 input");
echo spc_request_dev($sid, "eio get 2 input");
echo spc_request_dev($sid, "eio get 3 input");
echo "\r\n";
sleep(1);
}
?>
the output example
1111
0110
...omitted...