Aide Au Diagnostique - Sensorex 690 043 045 Notice D'instruction

Table des Matières

Publicité

8. CALCUL CHECKSUM MODBUS.
La procédure pour générer ce checksum est la
suivante :
1-initialiser la variable CRC16 à 0xFFFF
2- réaliser un « ou exclusif » entre l'octet de poids faible
de ce CRC16 et le premier octet de la trame
3- réaliser un décalage à droite du nombre 16 bits
résultat, en remplissant le MSB avec un '0'. Regarder la
valeur qu'avait le LSB avant le décalage à droite.
4- si le LSB valait '0', alors répéter l'étape 3. Sinon, si le
LSB valait '1', réaliser un « ou exclusif » entre la valeur
CRC16 décalée à droite et la valeur 0xA001.
5- répéter les étapes 3 et 4 jusqu'à ce que 8 décalages
à droite aient été réalisés. Quand c'est le cas, alors le
traitement du premier octet est terminé.
6- répéter les étapes 2 à 5 avec les octets suivants de la
trame, jusqu'à ce que tous les octets aient été traités.
7- la valeur du CRC à ajouter à la trame et la valeur
finale du nombre CRC16.
8- attention, pour ajouter le CRC à la trame, il faut
inverser les places de l'octet de poids fort et de poids
faible du nombre CRC16.
Exemple :
La trame à envoyer, avant ajout du CRC, est la
suivante :
01 06 00 07 05 FF
Le calcul du CRC suivant la procédure ci-dessus donne
la valeur suivante en hexadécimal :
1B7B
La trame complète sera donc :
01 6 00 07 05 FF 7B 1B

9. AIDE AU DIAGNOSTIQUE

Si le capteur ne fournit pas de mesure, ou ne semble
pas fonctionner normalement, les points suivants sont à
vérifier:
1- vérifier que le capteur est bien alimenté sous une
tension DC comprise entre 6 et 30V.
2- contrôler sa consommation, qui devrait être de l'ordre
de 120mA (pour une tension d'alimentation de 6V) et de
25mA (pour une tension d'alimentation de 24V). Si ce
n'est
pas
le
cas
consommation trop élevée), couper immédiatement
l'alimentation, et contrôler le câblage.
3- si malgré le contrôle du point N°2, la consommation
ne parait toujours pas normale, contacter MEGGITT
(Sensorex), pour connaitre la marche à suivre.
Toute information contenue dans ce document est susceptible d'être soumise aux règles de contrôle des exportations européennes, américaines ou de tout autre pays. Il est de la responsabilité du destinataire de ce
document de s'assurer que le transfert ou l'utilisation des données qu'il contient est conforme à toutes les règles de contrôle des exportations en vigueur.
Information contained in this document may be subject to Export Control Regulations of the European Union, USA or other countries. Each recipient of this document is responsible for ensuring that transfer or use of any
information contained in this document complies with all relevant Export Control Regulations.
Meggitt (Sensorex) se réserve le droit de modifier la présente notice sans préavis/ Meggitt (Sensorex) reserves the right to change the specification without any prior notice
NOTICE D'INSTRUCTION / INSTRUCTION MANUAL
(pas
de
consommation,
NOT043045A1
8. CALCULATION
CHECKSUM
The procedure for generating the CRC is:
1- load a 16-bit register with 0xFFFF (all 1's). call
this CRC16.
2- exclusive OR the first 8-bit byte of the frame
with the low-order byte of the 16-bit CRC
register, putting the result in the CRC16 variable.
3- shift the CRC16 one bit to the right (toward the
LSB), zero filling the MSB. Extract and examine
the LSB.
4- (if the LSB was 0): repeat step 3 (another
shift)
(if the LSB was 1): Exclusive OR the CRC16
variable with the hexadecimal value 0xA001.
5- repeat steps 3 and 4 until 8 shifts have been
performed. When this is done, a complete 8-bit
byte will have been processed.
6- repeat steps 2 through 5 for the next 8-bit byte
of the message. Continue doing this until all
bytes have been processed.
7- the final content of the CRC16 variable is the
CRC value to include at the end of the frame.
8- warning, to add the CRC to the frame, its
upper and lower bytes shall be switched:
Example:
The frame to send, before adding the CRC, is the
following:
01 06 00 07 05 FF
The CRC calculation according the procedure
above give the following hexadecimal value :
1B7B
The complete frame will therefore be the
following:
01 6 00 07 05 FF 7B 1B
9. TROUBLESHOOTING
In case the sensor does not provide any
measurement, or does not seem do operate
correctly, the following topics shall be verified :
1- Check that the sensor is correctly powered by
a DC voltage between 6V and 30V.
2- Check its consumption that should normally be
approximately 120mA (under 6V supply) and
around 25mA (under 24V supply). If it is not the
case (no current, or over consumption), cut
ou
immediately the power supply, and check the
wiring.
3- If, after the check of topic N°2, the current
consumption still seems too high, please contact
MEGGITT (Sensorex) to know what to do next.
OF
MODBUS
- 14 -

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

690 043 046

Table des Matières