
EDAM-4200 Series User’s manual Version 1.03
8.4.32
$AAYM5CRPSTTTT (data)
Set
DI match DO latch Mode
of DIO Sync.
Description: Set DO to DI match DO latch Mode of DIO Synchronization. A single digital output channel is
activated (1 or 0) and latched, when DI input value match DI mask pattern.
Command:
$AAYM5CRPSTTTT (data) [CHK](cr)
Syntax:
$
Command leading code
AA
Module address ID (01 to FF , Always 01)
YM5
command to set DI match/ DO latch mode of Auto DIO Sync.
C
Mirrored DO channel number (hex 0~F).
R
write DO to local module or remote module when DIO sysnc active.
= 0 - Local Mode, (Local DI->Local DO)
= 1 - remote Mode,(Local DI->Remote DO)
P
Enable/Disable Auto Run(Start) DIO Synchronization operation when power-on.
= 0 - Disiable
= 1 - Enable
S
digital output active state when DI data pattern match
= 0 - digital output 0 when DI data pattern match
= 1 - digital output 1 when DI data pattern match
= 2 - toggle digital output
TTTT
DI channel pre-bounce time (hex 0000~FFFF ms)
(data)
represent DI mask pattern is used to indicate the monitored input
channels(0~15) and mask state (16char),
bits(15..0) - indicate DI channel(15..0) to be monitored and mask state,
= '1' - indicate DI channel n is monitored and mask state is ‘1’.
= '0' - indicate DI channel n is monitored and mask state is ‘0’.
= 'X' - don't care (not be monitored)
CHK
Check sum
(cr)
Carriage return
Response:
!AA [CHK](cr)
Valid command
?AA[CHK](cr)
Invalid command
!
Delimiter for valid command
?
Delimiter for invalid command
AA
Module address ID
CHK
Check sum
(cr)
Carriage return
Note:
Before running DIO Synchronization
function, you must set DO Mode to
"
DIO Sync. Mode "
via
command
$AACONNDD.
Example:
Assume DI channel 0,2,5 are monitored and the ASCII form of DI mask pattern is
XXXXXXXXXX
1
XX
0
X
1
.
When DI input ch(0,5)=1 and ch(2)=0, the corresponding DO(0) will be set to ON(1) and latched.
DI pre-debounce time is 300 msec.
(Ref. to 12.7)
command:
$01YM501
11
012C
XXXXXXXXXX
1
XX
0
X
1
(cr)
where R =
1
- remote Mode,(Local DI->Remote DO).
P =
1
- Enable Auto Run(Start) DIO Synchronization operation when power-on.
S =
1
- digital output active state(=1) when DI value match DI mask pattern
TTTT = 0x012C (300ms)
response:
!01(cr) ; valid
Related command:
$AACONNDD, @AA6ONSS, $AAY6MRCS, $AAY6MC, $AAY6MS,
$AAYM4CRPHHHHLLLL (data), $AAYM6CRPSTTTT(data)
Printed Date: 27 February 2018
117