Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

I2C device DS1802 library problem

galexis
2021-06-28
2021-07-01
  • galexis - 2021-06-28

    Hi,
    I have post in 2016 library for I2C device : DS1803. https://forge.codesys.com/forge/talk/Runtime/thread/8981ce928a/#479b
    On V3.5Sp11, library worked but on SP17 I can't add device from devdesc file.
    When I want to add it, System say : it's not ETHERCAT description.
    How resolve it ?
    Thanks for your help.

     

    Last edit: galexis 2021-06-28
  • galexis - 2021-06-29
    <!-- created with CoDeSys 3.0 (http://www.3s-software.com) by DeviceDescriptionBuilder (3S-Smart Software Solutions GmbH) -->
    <DeviceDescription xmlns="http://www.3s-software.com/schemas/DeviceDescription-1.0.xsd" xmlns:ts="http://www.3s-software.com/schemas/TargetSettings-0.1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Types namespace="local"> </Types>
    <Strings namespace="local">
    <Language lang="en"> </Language>
    </Strings>
    <!--   <Files namespace="local">
        <Language lang="en">
          <File fileref="local" identifier="JoystickIcon">
            <LocalFile>Joystick.ico</LocalFile>
          </File>
        </Language>
      </Files> -->
    <Device hideInCatalogue="false">
    <DeviceIdentification>
    <Type>500</Type>
    <Id>0000 0003</Id>
    <Version>1.0.0.0</Version>
    </DeviceIdentification>
    <DeviceInfo>
    <Name name="local:ModelName">DS1803</Name>
    <Description name="local:DeviceDescription">I2C potentiometer ouptput</Description>
    <Vendor name="local:VendorName">AG</Vendor>
    <OrderNumber>-</OrderNumber>
    <!--       <Icon name="local:JoystickIcon">Joystick.ico</Icon>  -->
    </DeviceInfo>
    <Connector moduleType="500" interface="Raspberry.I2C" role="child" explicit="false" connectorId="1" hostpath="-1">
    <InterfaceName name="local:PCI">IΒ²C-Bus</InterfaceName>
    <Slot count="1" allowEmpty="false"> </Slot>
    <DriverInfo needsBusCycle="false">
    <RequiredLib libname="Raspberry I2C DS1803" vendor="AG" version="1.0.0.0" identifier="deviceLib">
    <FBInstance basename="$(DeviceName)" fbname="DS1803">
    <Initialize methodName="Initialize"/>
    <CyclicCall methodname="AfterReadInputs" task="#buscycletask" whentocall="afterReadInputs"/>
    </FBInstance>
    </RequiredLib>
    </DriverInfo>
    <HostParameterSet>
    <Parameter ParameterId="1" type="std:USINT">
    <Attributes channel="none" download="true" functional="false" onlineaccess="read"/>
    <Default>0</Default>
    <Name name="local:Id393218">IΒ²C address</Name>
    <Description name="local:Id393218.Desc">Address of the device</Description>
    </Parameter>
    </HostParameterSet>
    </Connector>
    </Device>
    </DeviceDescription>
    
     

    Last edit: galexis 2021-06-29
  • galexis - 2021-07-01

    I had test this id but it doesn't work better...

     

Log in to post a comment.