Mitsubishi Electronics JY992D97701 Network Card User Manual


 
α
2 Simple Application Controllers
ix
7. The Command String ............................................................................7-1
7.1 Format “A” ........................................................................................................... 7-2
7.2 Format “B” Message............................................................................................ 7-3
7.3 Control Protocol elements ...................................................................................7-5
7.3.1 Control Codes ...........................................................................................................7-6
7.3.2 No. of Communication Bytes.....................................................................................7-6
7.3.3 Format Number ......................................................................................................... 7-7
7.3.4 Station Number ......................................................................................................... 7-8
7.3.5 Command..................................................................................................................7-8
7.3.6 Number of Devices....................................................................................................7-9
7.3.7 Device Code............................................................................................................ 7-11
7.3.8 Device Number........................................................................................................ 7-12
7.3.9 Device Status ..........................................................................................................7-12
7.3.10 Sum Check.............................................................................................................. 7-13
7.3.11 Error Codes ............................................................................................................. 7-14
7.4 Communication Timing Chart ............................................................................7-15
7.4.1 Read/Write Data from the Controller ....................................................................... 7-15
7.4.2 Communication Time ..............................................................................................7-15
7.5 Character Area Data Transmission ................................................................... 7-16
7.5.1 Read Data Transmission......................................................................................... 7-16
7.5.2 Write Data Transmission .........................................................................................7-17
7.5.3 Time Switch Data Transmission.............................................................................. 7-19
7.6 Commands ........................................................................................................ 7-20
7.6.1 Communication Line Check .................................................................................... 7-21
7.6.2 Read Command ...................................................................................................... 7-22
7.6.3 Write Command ...................................................................................................... 7-24
7.6.4 Remote RUN/STOP Operation ...............................................................................7-26
7.6.5 Time Switch Settings...............................................................................................7-27
7.6.6 VLS Time Switch Settings (Sample) .......................................................................7-36
7.6.7 RTC Read Command (Ver. 2.20 or later)................................................................7-38
7.6.8 RTC Write Command (Ver. 2.20 or later)................................................................7-39
7.6.9 Display Read Command (Ver.3.00 or later) ............................................................7-40
7.7 Sample Visual Basic program ...........................................................................7-45
8. Dedicated Protocol Error Diagnostics ...................................................8-1
8.1 Check points for Dedicated Protocol .................................................................. 8-1