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's Set Configuration Parameters Tag, defined by the address -1, 0, 0, 3 (N1.N2.N3.N4).

Parameters at run time

Parameter

Comment

Default Value

CIP.StartOffline

If in 1 (one), allows this Driver to start inactive, so that other parameters are configured at run time. After defining them, this variable can be changed to 0 (zero), so 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 E3, assuming that this Driver was saved with the StartOffline option selected.

Dim arr(2)
//Configure 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 following parameters cannot be changed at run time:

CIP.CheckDownload

CIP.TCPConn

CIP.UseCache

CIP.TotalTargets

CIP.TotalDefs

CIP.ReadType

Was this page useful?