Changing Parameters At Run Time

<< Click to Display Table of Contents >>

 

Changing Parameters At Run Time

All parameters on the next table can be configured at run time by writing to IOKit library's Set Configuration Parameters Tag, defined by the N1 parameter equal to -1 (minus one), the N2 parameter equal to 0 (zero), the N3 parameter equal to 0 (zero), and the N4 parameter equal to 3 (three).

Parameters at run time

Parameter

Comment

Default Value

CIP.StartOffline

If this parameter is configured with the value 1 (one), this Driver starts inactive, so that other parameters are configured at run time. After defining them, this variable can be changed to the value 0 (zero), so that this Driver starts to communicate with its new parameters

0 (zero)

CIP.CheckDownload

 

0 (zero)

CIP.Retries

 

0 (zero)

CIP.PortID

 

1 (one)

CIP.DefaultSlaveAddress

 

0 (zero)

CIP.SlotNumber

 

1 (one)

 

Example of a configuration script at run time for Elipse E3, Elipse Power, or Elipse Water, assuming that this Driver was saved with the StartOffline option selected.

Dim arr(2)
//Configure this Driver's name and path
Set Driver = Application.GetObject("ABCIPDriver")
arr(1) = Array("CIP.Retries", 2)
arr(2) = Array("CIP.StartOffline", 0)
Driver.Write -1, 0, 0, 3, arr

 

The CIP.CheckDownload, CIP.TCPConn, CIP.UseCache, CIP.TotalTargets, CIP.TotalDefs, and CIP.ReadType parameters cannot be changed at run time.

Was this page useful?