Bonjour à tous,
J'ai un programme en Somachine V4.1.
Je dois créer un chechsum sur l'ensemble du programme.
C'est a dire "avoir un numéro" qui permet de vérifier très rapidement que personne a fait des modifications sur le programme automate.
Je voudrais afficher ce numéro sur HMI. L’utilisateur devras vérifier ce numéro avant de lancer la machine.
Somachine : checksum
- itasoft
- Mi homme - Mi automate

- Messages : 7806
- Enregistré le : 20 oct. 2015, 10:15
- Localisation : Lyon
- Contact :
Re: Somachine : checksum
Slts,
Il faut prendre ce type d’information dans une variable système et l’afficher (ex : la signature)
Il faut prendre ce type d’information dans une variable système et l’afficher (ex : la signature)
Automaticien privé (de tout)
itasoft@free.fr
itasoft@free.fr
Re: Somachine : checksum
Je viens de trouvé un doc sur les variables du M258
http://www2.schneider-electric.com/reso ... 0Guide.pdf
Je pourrais peut-être faire un checksum sur les variables PLC_R.i_dwAppliSignature1 et PLC_R.i_dwAppliSignature2 et PLC_R.i_dwAppliSignature3 PLC_R.i_dwAppliSignature4.
http://www2.schneider-electric.com/reso ... 0Guide.pdf
Je pourrais peut-être faire un checksum sur les variables PLC_R.i_dwAppliSignature1 et PLC_R.i_dwAppliSignature2 et PLC_R.i_dwAppliSignature3 PLC_R.i_dwAppliSignature4.
- itasoft
- Mi homme - Mi automate

- Messages : 7806
- Enregistré le : 20 oct. 2015, 10:15
- Localisation : Lyon
- Contact :
Re: Somachine : checksum
slts
OUI
checksum := PLC_R.i_dwAppliSignature1 XOR PLC_R.i_dwAppliSignature2 XOR PLC_R.i_dwAppliSignature3
XOR PLC_R.i_dwAppliSignature4;
OUI
checksum := PLC_R.i_dwAppliSignature1 XOR PLC_R.i_dwAppliSignature2 XOR PLC_R.i_dwAppliSignature3
XOR PLC_R.i_dwAppliSignature4;
Automaticien privé (de tout)
itasoft@free.fr
itasoft@free.fr
