Hi,

today, I am trying to establish the IO-configuration of the CPs (some for input, some for output). I started with CP3 - 6 for input, CP7 for output.

I want to configure the IOs during startup of my application with the XMLImportFromStream - method, which works fine. But the result is, that CP7 and its output group is disabled after configuration. The input pins seem to be enabled.

(see groups LC_INP_GRP and LC_WD_GRP)

Best regards, rbk

See the data below:

My IO-Group configuration follows.
This is, what I am streaming to the XCR on startup of my application.

static const char *xmlIOConfig = \
"<?xml version=\"1.0\" standalone=\"yes\"?>" \
"<configrecord version = \"0.1.0.0T0\">" \
"<configgroup name = \"cp group\" instance = \"LC_INP_GRP\">" \
"<configitem name = \"cp\">" \
"<value name = \"cp\">3</value>" \
"<value name = \"bit\">0</value>" \
"<value name = \"type\">input</value>" \
"<value name = \"assert low\">disable</value>" \
"</configitem>" \
"<configitem name = \"cp\">" \
"<value name = \"cp\">4</value>" \
"<value name = \"bit\">1</value>" \
"<value name = \"type\">input</value>" \
"<value name = \"assert low\">disable</value>" \
"</configitem>" \
"<configitem name = \"cp\">" \
"<value name = \"cp\">5</value>" \
"<value name = \"bit\">2</value>" \
"<value name = \"type\">input</value>" \
"<value name = \"assert low\">disable</value>" \
"</configitem>" \
"<configitem name = \"cp\">" \
"<value name = \"cp\">6</value>" \
"<value name = \"bit\">3</value>" \
"<value name = \"type\">input</value>" \
"<value name = \"assert low\">disable</value>" \
"</configitem>" \
"<configitem name = \"state\">" \
"<value>enable</value>" \
"</configitem>" \
"</configgroup>" \
"<configgroup name = \"cp group\" instance = \"LC_WD_GRP\">" \
"<configitem name = \"cp\">" \
"<value name = \"cp\">7</value>" \
"<value name = \"bit\">0</value>" \
"<value name = \"type\">output</value>" \
"<value name = \"assert low\">disable</value>" \
"</configitem>" \
"<configitem name = \"state\">" \
"<value>enable</value>" \
"</configitem>" \
"</configgroup>" \
"</configrecord>";

telnet excerpt after starting my application follows

>cpm
Syntax error
>enable
(enable)#cpm
(cpm)#show groups
Group name State CP info
LC_INP_GRP Enabled 4 CPs assigned
Line2_Modem_Ctl_O Disabled 0 CPs assigned
LC_WD_GRP Disabled 1 CP assigned
Line1_RS485_HDpx Disabled 0 CPs assigned
Line2_Modem_Ctl_In Disabled 0 CPs assigned
Line1_Modem_Ctl_O Disabled 0 CPs assigned
Line1_RS485_Select Disabled 0 CPs assigned
Line1_Modem_Ctl_In Disabled 0 CPs assigned
(cpm)#show LC_WD_GRP
Name : LC_WD_GRP
State : Disabled
Value : Disabled
: -+-+-+-+-+-+-+
:
Bit : 6 5 4 3 2 1 0
: -+-+-+-+-+-+-+
Level : -
: -+-+-+-+-+-+-+
I/O : O
: -+-+-+-+-+-+-+
Logic :
: -+-+-+-+-+-+-+
Binary : Group is disabled.
: -+-+-+-+-+-+-+
CP# : 0 0 0 0 0 0 7
: -+-+-+-+-+-+-+
(cpm)#enable LC_WD_GRP
ERROR: CP7 is in use by LC_WD_GRP.
Error executing command
(cpm)#

then i do a

xcr export config.xml + ftp get config.xml
see result below
especially configuration of IO group LC_WD_GRP !!!

<?xml version="1.0" standalone="yes"?>
<configrecord version = "0.1.0.0T0">
..... shortened
<configgroup name = "cp group" instance = "LC_INP_GRP">
<configitem name = "cp">
<value name = "cp">3</value>
<value name = "bit">0</value>
<value name = "type">input</value>
<value name = "assert low">disable</value>
</configitem>
<configitem name = "cp">
<value name = "cp">4</value>
<value name = "bit">1</value>
<value name = "type">input</value>
<value name = "assert low">disable</value>
</configitem>
<configitem name = "cp">
<value name = "cp">5</value>
<value name = "bit">2</value>
<value name = "type">input</value>
<value name = "assert low">disable</value>
</configitem>
<configitem name = "cp">
<value name = "cp">6</value>
<value name = "bit">3</value>
<value name = "type">input</value>
<value name = "assert low">disable</value>
</configitem>
<configitem name = "state">
<value>enable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "Line2_Modem_Ctl_O">
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "LC_WD_GRP">
<configitem name = "cp">
<value name = "cp">7</value>
<value name = "bit">0</value>
<value name = "type">output</value>
<value name = "assert low">disable</value>
</configitem>
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "Line1_RS485_HDpx">
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "Line2_Modem_Ctl_In">
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "Line1_Modem_Ctl_O">
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "Line1_RS485_Select">
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
<configgroup name = "cp group" instance = "Line1_Modem_Ctl_In">
<configitem name = "state">
<value>disable</value>
</configitem>
</configgroup>
.... shortened
</configrecord>