Download Inhoudsopgave Inhoud Print deze pagina

Schrijven Van Een Bit - JUMO LOGOSCREEN 500 Handleiding

Verberg thumbnails Zie ook voor LOGOSCREEN 500:
Inhoudsopgave

Advertenties

5 Functies

5.3 Schrijven van een Bit

Aanwijzing
Antwoord
H
Voorbeeld
18
Bij de functie schrijven van een Bit zijn de datablokken voor aanwijzing
en antwoord identiek.
Slave-
Functie
adres
0x05
1 Byte
1 Byte
Slave-
Functie
adres
0x05
1 Byte
1 Byte
Voor de Bitwaarde geldt:FF00= Bit inzetten
Inzetten van de Modbus-Flag (Bit 0) onder het basisadres 0x002F
" Hoofdstuk 8.2 "Procesdata"
" Hoofdstuk 9.1 "Modus-Flag"
Bitadres
= (basisadres + adres „Modbus-Flag") * 16 + Bitnummer
= (0x002F + 0x0004) * 0x10 + 0x0
= 0x0330
Aanwijzing: (CRC16 = B48E)
14
05
0330
Antwoord (zoals aanwijzing):
14
05
0330
Bitadres
Bitwaarde
2 Byte
Bitadres
Bitwaarde
2 Byte
0000 = Bit verwijderen
FF00
8EB4
FF00
8EB4
Checksom
XX 00
CRC16
2 Byte
2 Byte
ChecksomCR
XX 00
CRC16
2 Byte
2 Byte

Advertenties

Inhoudsopgave
loading

Inhoudsopgave