-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathEncoder_AD4.README
43 lines (25 loc) · 1.06 KB
/
Encoder_AD4.README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
US Digital (www.usdigital.com)
AD4 Quadrature to Serial Adaptor
Implemented with 'streams' protocols (Version 2.3)
Serial Setup: 9600 Baud, 8 Data, 1 Stop, No Parity, NO EOS (Binary)
Files:
ipApp/Db/Encoder_AD4.db
ipApp/Db/Encoder_AD4.proto
ipApp/Db/Encoder_AD4_settings.req
ipApp/op/adl/Encoder_AD4.adl
iocBoot Examples:
------------ iocvxWorks/serial.cmd ---------------
tyGSAsynInit("serial1", "UART_0", 0, 9600,'N',1,8,'N',"","") /* AD4 Encoder (binary) */
------------ iocLinux/serial.cmd ---------------
#USDigital AD4 (Encoder Box)
drvAsynSerialPortConfigure("serial1", "/dev/ttyS0", 0, 0, 1)
asynSetOption(serial1,0,baud,9600)
------------ st.cmd --------------------
epicsEnvSet ("STREAM_PROTOCOL_PATH", "$(IP)/ipApp/Db")
***NOTE*** The vxWorks shell does not expand macros so the IP
path has to be fully typed in.
dbLoadRecords("$(IP)/ipApp/Db/Encoder_AD4.db","P=xxx:,N=1,PORT=serial1")
------------ auto_settings.req --------------------
file Encoder_AD4_settings.req P=$(P),N=1
MEDM Display:
Encoder_AD4.adl P=$(P), N=1