| |
|
|
GDL | Hi,
i'll over ands over again, and not only here in the Community, demand How I it with the interface so handhabe.
DA GIBT ES NICHTS BESONDERES.ICH NUTZE AUCH ONLY ROLANDS BEFEHLE. Roland describe it Yes eh so well.
most Error(where I helped) were :
1.)through fehlendes benefit the Handshakeleitungn swam always a RS232 planlos in the Datenstrom. 2.) then there Interfaces, The if The Gegenstelle Pin1 and Pin6 not over Pullupwiderstände to plus order, utterly dislike. 3.) with several Datenbytes will not on The Sendereihenfolge held. 4.) with of/ one conscience Relay Card one known Herstellers go The Rlaisnummern not binary give away. 5. for Prüfbytes go The XOR Verknüpfungen wrong created.
To 1.) Since I too no HsLeitungen use, begins a Mehrbyteübertragung by me always with of/ one 255. 255 = whistle on The RS232: it go new coherent Bytes transfer.ex now data einsortieren.
To 2.) by me having any Rs232 on Pin1 and Pin6 apiece a 2k2 resistance to plus.
To 3.) here helps only the study the Pflichtenheftes .
To 4.) only for these a manner Relaisarte
Relais1 = 0 abgefallen (ex) Relais1 = 1 angezogen (on) Relais2 = 0 ex Relais2 = 2 on Relais3 = 0 ex Relais3 = 4 on Relais4 = 0 ex Relais4 = 8 on Relais5 = 0 ex Relais5 = 16 on Relais6 = 0 ex Relais6 = 32 on Relais7 = 0 ex Relais7 = 64 on Relais8 = 0 ex Relais8 = 128 on
How we see go only The AN-values beücksichtigt. an 00100101 means the (of right red) Relais1;Relais3 and Relais6 angezogen are and the remainder abgefallen is. this Binärbyte then to Dezimal converting and to Pflichtenheft Send.
To 5.)
integrally simply
fehlerbyte%=xor(byte1% ,byte2%) fehlerbyte%=xor(fehlerbyte%,byte3%) fehlerbyte%=xor(fehlerbyte%,byte4%)
everything no bewitchment Hello Georg |
|
|
| |
|
|