RTS WM300 Dokumentacja Strona 33

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 67
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 32
Chapter 2 Specification of Communication port for CPU module
2 – 19
Sample program
[Sample 1]
Network consists of two EHV-CPUs as follows, and the Control Editor sets the ASR communication. The setting
information for two EHV-CPUs is as follows.
EHV-CPU2
(Passive, Receive)
EHV-CPU1
(Active, Send)
Data sending
Figure 2.20 Connection diagram of Sample 1
Table 2.10 Setting information of Sample 1
Setting EHV-CPU1 EHV-CPU2
1 IP address 192.168.0.1 192.168.0.2
2 Port No. 4000 4000
3 Protocol TCP/IP-Active, Specified TCP/IP-Passive, Specified
4 Send / Receive Send Receive
5 Access Point – IP address 192.168.0.2 192.168.0.1
6 Access Point – Port No. 4000 4000
7 Send Timing Cyclic sending: 1 second
8 Transmission area WR0 to WRF
9 Receiving area WN0 to WNF
[Description of Sample program]
The connection is opened and the transmitting starts when R0 of EHV-CPU1 is turned ON.
[Sample program of EHV-CPU1]
R0
WRF601 = H0001
While the connection of ASR port a is no
t
established, ASR port a is opened at the
rising edge of user turns on R0. After the
connection is established, AS
R
communication is started according to the
setting and data is transmitted at one
second interval.
DIF
WRF600.0
WRF601 = H0000
DFN
When the connection of ASR port 1 is cu
t
b
y other station and the cable is cut, the
ASR port open request flag falls when the
connection is closed.
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 66 67

Komentarze do niniejszej Instrukcji

Brak uwag