<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.ocrobot.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.ocrobot.com/feed.php">
        <title> ocrobot:microcontroller:s-100</title>
        <description></description>
        <link>https://wiki.ocrobot.com/</link>
        <image rdf:resource="https://wiki.ocrobot.com/lib/tpl/20cones/images/favicon.ico" />
       <dc:date>2026-06-03T23:44:39+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:microcontroller:s-100:tutorial01&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:microcontroller:s-100:tutorial06&amp;rev=1760151335&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.ocrobot.com/lib/tpl/20cones/images/favicon.ico">
        <title></title>
        <link>https://wiki.ocrobot.com/</link>
        <url>https://wiki.ocrobot.com/lib/tpl/20cones/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:microcontroller:s-100:tutorial01&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:microcontroller:s-100:tutorial01</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:microcontroller:s-100:tutorial01&amp;rev=1760151335&amp;do=diff</link>
        <description>使用S-100作为485 MODBUS RTU Slave设备使用

首先我们要把下面的从机代码通过IDE烧录进入S-100（注意需将本文底部库文件正确解压缩至arduino编译环境libraries目录下）。


#include &quot;SimpleModbusSlave.h&quot;
//分配寄存器地址
enum
{
	// 地址从0开始
	IN12, //0
        IN13, //1
	IN14, //..
	IN15,
	IN16,
	IN17,
	IN18,
	IN19,
	OUT2,
	OUT3,
	OUT4,
	OUT5,
	OUT6,
	OUT7,
	OUT8,
	OUT9,
	TOTAL_ERRORS,
	TOTAL_REGS_SIZE
	};
unsigned int holdingRegs[TOTAL_REGS_SIZE]; // 3和16功能码的寄存器数组
void setup()
{
	/* 配置(波特率,设备地址ID,使能脚(本设备自动使能请勿修改),超时时间【根据实际情况取值0-3000】单位毫秒)
	*/
	modbus_configure(115200,…</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:microcontroller:s-100:tutorial06&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:microcontroller:s-100:tutorial06</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:microcontroller:s-100:tutorial06&amp;rev=1760151335&amp;do=diff</link>
        <description>使用S-100作为485 MODBUS RTU Slave设备使用

首先我们要把下面的从机代码通过IDE烧录进入S-100。


#include &quot;SimpleModbusSlave.h&quot;
//分配寄存器地址
enum
{
	// 地址从0开始
	IN12, //0
        IN13, //1
	IN14, //..
	IN15,
	IN16,
	IN17,
	IN18,
	IN19,
	OUT2,
	OUT3,
	OUT4,
	OUT5,
	OUT6,
	OUT7,
	OUT8,
	OUT9,
	TOTAL_ERRORS,
	TOTAL_REGS_SIZE
	};
unsigned int holdingRegs[TOTAL_REGS_SIZE]; // 3和16功能码的寄存器数组
void setup()
{
	/* 配置(波特率,ID,使能脚,寄存器大小)
	*/
	modbus_configure(115200, 1, 1, TOTAL_REGS_SIZE, 0);
	pinMode(2, OUTPUT);
	pinMode(3, OUTPUT);
	pinMode…</description>
    </item>
</rdf:RDF>
