Set64rs-Adaption-Of-MultiChannel-Software-Channelization
'----------- Channelization Array Variables ------------
Public N_Channels As Integer '-- this is setup for Anafaze > tells how many channes are "installed" in the form of 2,4,8,16,32.
'-- glbNumberOfChannels = 64 '--for set64rs > maximum possible > below 32 is used because 32 is max for anafaze
'-- any way to set N_Channel before the declarations below? > Use const
'-- glbChannelNumber = operational channel at any given time '-- glbChannelMap( 1 to N_Channels ) = map of channel number versus modbus address: 1 - N_Channel , addr '-- In operation the temperature components will use the same arrays '-- the control timer executive will be modified to access more than one modbus address
'-- anafaze > uses just 1 address and loads the entire arrays > array load happens in driver
'-- set64rs > uses multiple addresses > each use of driver only loads 1 array element >
'--thus requires multiple calls by the executive control timer loop -OR- a routine in the driver to fill the arrays > do there!
Public Channel_Temperature(1 To 32) As Integer Public Channel_SetPoint(1 To 32) As Integer '--- these are the setpoint values read from the controller.... use to confirm setting is correct Public Channel_Output(1 To 32) As Integer '--- duty cycle of channel Public Channel_Limit_Low(1 To 32) As Integer Public Channel_Limit_High(1 To 32) As Integer Public Channel_Input_Type(1 To 32) As Integer Public Channel_Output_Mode(1 To 32) As Integer '--- M | A | T | manual / auto / tune and output signal type
Public Channel_Set_Temperature(1 To 32) As Integer '--- post parse values - valid and ready for download to controller Public Channel_Set_Input_Array(1 To 32) As Integer '--- tentative setpoints from FrontPanel - to be parsed for validity
Public Channel_Unit(1 To 32) As String '--- F or C temperature scale
Public Channel_Name(1 To 32) As String '--- device name array Public Channel_CurrentSegment(1 To 32) As Byte Public Channel_ElapsedTime(1 To 32) As Double
Public Channel_AlarmStatus(1 To 32) As Long Public Channel_GroupArray(1 To 32) As Integer