Yoctopuce Yocto-RS485-V2 Mode D'emploi page 427

Table des Matières

Publicité

serialport→writeMODBUS()
Envoie une commande MODBUS (fournie sous forme de chaîne hexadécimale) sur le port série.
function writeMODBUS( hexString)
js
int writeMODBUS( string hexString)
cpp
-(int) writeMODBUS : (NSString*)
m
LongInt writeMODBUS( hexString: string): LongInt
pas
function writeMODBUS( ByVal
vb
int writeMODBUS( string hexString)
cs
int writeMODBUS( String hexString)
java
async Task<int> writeMODBUS( string hexString)
uwp
writeMODBUS( hexString)
py
function writeMODBUS( $hexString)
php
async writeMODBUS( hexString: string): Promise<number>
ts
async writeMODBUS( hexString)
es
int writeMODBUS( string hexString)
dnp
int writeMODBUS( string hexString)
cp
YSerialPort
target
cmd
Le message doit commencer par l'adresse de destination. Le CRC (ou LRC) MODBUS est ajouté
automatiquement par la fonction. Cette fonction n'attend pas de réponse.
Paramètres :
hexString
le message à envoyer, en hexadécimal, sans le CRC/LRC
Retourne :
YAPI.SUCCESS
En cas d'erreur, déclenche une exception ou retourne un code d'erreur négatif.
www.yoctopuce.com
hexString
hexString
writeMODBUS
hexString
si l'opération se déroule sans erreur.
As String) As Integer
25. Référence de l'API de haut niveau
YSerialPort
419

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

Yocto-rs232

Table des Matières