<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to I2C_Master read/write to specific register</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/283b2543ec/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/283b2543ec/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/283b2543ec/</id><updated>2021-03-09T05:40:55.735000Z</updated><subtitle>Recent posts to I2C_Master read/write to specific register</subtitle><entry><title>I2C_Master read/write to specific register</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/283b2543ec/?limit=25#9798" rel="alternate"/><published>2021-03-09T05:40:55.735000Z</published><updated>2021-03-09T05:40:55.735000Z</updated><author><name>audi0615</name><uri>https://forge.codesys.com/u/audi0615/</uri></author><id>https://forge.codesys.comac2aea161e76349b406a8cf7183706f359071e96</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;Is it possible to read or write to a specific register with I2C_Master read, write method?&lt;br/&gt;
i found following topic but still don't understand how to use.&lt;br/&gt;
&lt;a href="https://forge.codesys.com/forge/talk/Runtime/thread/d34960a109/"&gt;https://forge.codesys.com/forge/talk/Runtime/thread/d34960a109/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;for example, Is it correct do as below to write byValue to byRegister?&lt;/p&gt;
&lt;p&gt;usiAddress:=16#20&lt;br/&gt;
byRegister:=16#19&lt;br/&gt;
byValue:=16#3C&lt;/p&gt;
&lt;p&gt;I2C_Master.write(usiAddress, ADR(byRegister),1);&lt;br/&gt;
I2C_Master.write(usiAddress, ADR(byValue),1);&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>