![Kramer SL-280 Скачать руководство пользователя страница 52](http://html1.mh-extra.com/html/kramer/sl-280/sl-280_user-manual_2000924052.webp)
Kramer Electronics Ltd.
SL-280 – Protocol 3000
50
GPIO-STEP
Functions
Permission
Transparency
Set:
GPIO-STEP
End User
Public
Get:
GPIO-STEP?
End User
Public
Description
Syntax
Set:
Set
I/O
port maximum
step
#
GPIO-STEP
␠
HwGpioNumber,NumOfStep
␍
Get:
Get
I/O
port current
step
#
GPIO-STEP?
␠
HwGpioNumber
␍
Response
~nn
@
GPIO-STEP
␠
HwGpioNumber,NumOfStep,CurrentStep
␍␊
Parameters
HwGpioNum
–
I/O
port number:
1
–
8
NumOfStep
– the maximum number of steps: for analog =
0
–
255
, for digital=
2
(see notes)
CurrentStep
– the actual step depending on the measured voltage
Response Triggers
Notes
The Set command can only be used for analog.
In digital in mode the response is
2
and the current state:
0
,
1
In analog mode the response is
0
to [
NumOfStep
minus 1].
In digital out mode an error is returned.
Example
Set
I/O
port number 1 number of steps to 5:
#GPIO-STEP
1,5<CR>
GPIO-THR
Functions
Permission
Transparency
Set:
GPIO-THR
End User
Public
Get:
GPIO-THR?
End User
Public
Description
Syntax
Set:
Set HW GPIO voltage
levels
#
GPIO-THR
␠
HwGpioNumber,LowLevel,HighLevel
␍
Get:
Get HW GPIO voltage
levels that were set
#
GPIO-THR?
␠
HwGpioNumber
␍
Response
~nn
@
GPIO-THR
␠
HwGpioNumber,LowLevel,HighLevel
␍␊
Parameters
HwGpioNum
–
I/O
port number:
1
–
8
LowLevel
– voltage:
500
to
28000
millivolts
HighLevel
– voltage:
2000
to
30000
millivolts or
2000
to
4000
when pullup is enabled.
Response Triggers
Notes
This command is only relevant for digital input. There must be a minimum of 800 millivolts between the low
and the high levels.
Example
Set
I/O
port number 1 voltage low level to 500 millivolts and high level to 2000 millivolts:
#GPIO-THR
1,500,2000<CR>