I've been writing some offline utilities to ease the setup on some new lines we're building, and am having trouble setting DeviceNet devices via a CM file.
I'm creating a DeviceNet definition file (dndef.dg) without issue and it will load fine and the definitions are visible from the pendant. My CM code is setting variables in $DN_DEV_LIST and though they are visible from the pendant after running the CM file, I am still not seeing anything on the DeviceNet IO Menu screen. I know I must be missing something but I can't seem to figure out what it is.
Obviously it's quite easy to setup the devices manually, I'm just trying to eliminate as much hands on work as possible.
On new 30ib robots.
Any help or insight would be appreciated, thanks.
EDIT:
To anyone else who needs this information, I found that setting the required variables with a CF program was the better way to go, I found that there was one variable which would create an unassigned dnet device on the pendant.
I found I needed to modify the DN_DEV_INDX variable in order to actually create the devices, and then assign mac ids and devices specifics after.
Below is a sample of the code I'm outputting.
SET VAR [SYSTEM]$DN_DEV_INDX[2].$INDEX[34] = 0
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_BDIDX = 1
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_MACID = 20
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_PDT = 1
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_STAT = 1
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_INP_SIZE = 6
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_OUT_SIZE = 1
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_VNDID = 1
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_DVTYP = 22
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_PRDCD = 130
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_MODE = 2
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_NDIN = 48
SET VAR [SYSTEM]$DN_DEV_LIST[1].$DN_DV_NDOUT = 8
Display More