Development

Examples:

Communication / RS-485

» RS-485 06: Modbus Write Single Coil

Last edition: Jan 10th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. This sketch shows how to use the function Write Singles Coil. This function writes a single coil to either ON or OFF.

» RS-485 07: Modbus Write Single Register

Last edition: Jan 10th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. This sketch shows how to use the function write single coil. This function code is used to write a single holding register in a remote device

» RS-485 08: Modbus Several Slaves

Last edition: Jan 10th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. This example shows how to create a network with several slaves, and how to get data from them.

» RS-485 09: Modbus Slave Mode

Last edition: Jan 10th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. This example shows the use of the Waspmote RS-485 in slave mode.

» RS-485 10: Modbus Slave ACC & Battery Level

Last edition: Nov 13th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. This example shows how to configure the Waspmote as a Modbus slave device.

» RS-485 11: Modbus Master ACC & Battery Level

Last edition: Nov 13th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. This example shows how to configure the Waspmote as a Modbus master device. The Waspmote read the ACC values and the battery level from a Modbus slave.

» RS-485 12: Modbus Registers Map

Last edition: Jan 10th, 2017 |

This sketch shows the use of the Modbus communication protocol over RS-485 standard, and the use of the main functions of the library. Modbus allows for communication between many devices connected to the same network. There are many variants of Modbus protocols, but Waspmote implements the RTU format. Modbus RTU is the most common implementation available for Modbus.