62
Sect
ion 3
CompoN
et
Communic
a
tions
Spec
if
ic
at
ions
E3NW-CRT
User’s Manual
Section 3
Explicit Message Communications
●
Programming Example
000000
A20011
BSET #0000 D00000 D02999
MOV #000F D00000
071
021
MOV #000A D00001
021
MOV #0000 D00002
021
MOV #0020 D00003
021
MOV #0000 D00004
021
MOV #1000 D01001
021
MOV #00C8 D00005
021
MOV #2802 D01000
021
MOV #009C D01003
021
MOV #0001 D01004
021
MOV #7264 D01005
021
MOV #0000 D01006
021
ASL 0000
025
CMND D01000 D02000 D00000
490
MOV A203 D00006
021
ASR 0000
026
END
001
000014
000019
000025
000000
A20200
000001
A20200
A21900
201607
END
MOV #0000 D01007
021
MOV #0010 D01002
021
MOV #0001 0000
021
First Cycle
Set #0000 in D00000 to D02999.
Execution
condition
Network
communications
enabled
Remote I/O
Communications
in Progress (n +
16 bit 07)
Network
communications
enabled
Communications
Port Error Flag
Set #000F in D00000 (number of bytes to send: 15).
Set #0008 in D00001 (number of bytes to receive: 8).
Set #0000 in D00002 (destination network address:
00).
Set #0020 in D00003 (destination node address: 00,
destination unit address: 20).
Set #0000 in D00004 (response required,
communications port: 0, retries: 0).
Set #00C8 in D00005 (response monitoring time: 30
seconds).
Set #0001 in CIO 0000.
The 15 bytes of command data starting from D01000 is
sent to destination node address 00, then the 10 bytes of
response data is stored starting from D02000 of the local
node (D00000 contains control data).)
Shift the contents of CIO 0000 one bit to the left (turn
ON CIO 000001).
Store contents of A203 (Communications Port
Completion Code) in D00006
Shift the contents of CIO 0000 one bit to the right, then
retry in the next cycle (turn ON CIO 000000).
Set #2802 in D01000 (explicit
command).
Set #1000 in D01001.
Set #0010 in D01002.
Set #009C in D01003.
Set #0001 in D01004.
Set #7264 in D01005.
Command data
Set #0000 in D01006.
Set #0000 in D01007.
Содержание CompoNetT E3NW-CRT
Страница 1: ...CompoNet TM Digital Sensor Communications Unit E3NW CRT Cat No E430 E1 04 User s Manual ...
Страница 14: ...12 Introduction E3NW CRT User s Manual Introduction Reading This Manual ...
Страница 18: ...16 E3NW CRT User s Manual Introduction Contents Introduction MEMO ...
Страница 101: ......