Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MODBUS_WRITE_BITS(3)	       libmodbus Manual		  MODBUS_WRITE_BITS(3)

NAME
       modbus_write_bits - write many bits

SYNOPSIS
       int modbus_write_bits(modbus_t *ctx, int	addr, int nb, const uint8_t
       *src);

DESCRIPTION
       The modbus_write_bits() function	shall write the	status of the nb bits
       (coils) from src	at the address addr of the remote device. The src
       array must contains bytes set to	TRUE or	FALSE.

       The function uses the Modbus function code 0x0F (force multiple coils).

RETURN VALUE
       The function shall return the number of written bits if successful.
       Otherwise it shall return -1 and	set errno.

ERRORS
       EMBMDATA
	   Writing too many bits

SEE ALSO
       modbus_read_bits(3) modbus_write_bit(3)

AUTHORS
       The libmodbus documentation was written by StA(C)phane Raimbault
       <stephane.raimbault@gmail.com>

libmodbus v3.1.6		  08/10/2020		  MODBUS_WRITE_BITS(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=modbus_write_bits&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help