SNVT_ctrl_resp

Overview:

Control response.  (status, sender, controller ID.) .   

The network variable of this type is used to send the status on a control request, from a controlling device (SNVT_pos_ctrl).
Valid status responses are:

CTRLR_NO, CTRLR_PEND, CTRLR_REL, CTRLR_QUERY, CTRLR_RES, CTRLR_ERR

The status response CTRLR_NO, is sent on a control request to signal a control permission has been granted to the controlling device number (no.) sent as controller_id. Depending on the priority of the requesting device and the priority of the controlling device having permission, the controller_id may be equal to the requesting device or the one currently having permission.

The status response CTRLR_QUERY is sent to the controller currently having permission, whenever a controlling device with lower priority is requesting permission to control. This status response requires a retransmitted request from the current controller to maintain permission.

If the current controller fails to retransmit within some timeout determined by the controllable device, the permission is given to the requesting controller with the lower priority.

The response is sent to verify if the controlling device is online—e.g. to resolve control status if the controlling device has been reset, or having a power failure.

The status response CTRLR_PEND, is used when control permission is switched from one controlling device to another, due to equal priority of the controllers, optionally by polling the operator of the controlling device with a programmable timeout.

The status response CTRLR_REL is sent as response if a controlling device request to release the present control, e.g. when a keyboard selects another camera, or if the keyboard has been reset.

The status response CTRLR_RES is sent from the controllable device if it is reset, to relinquish control in a controlling device.

The status response CTRLR_ERR is sent if a bad function in the controllable device has occurred.

A union holds the logical id of the controllable device. For camera telemetry receivers this value is a fixed value configured prior to use.

For matrices, this value holds the currently selected monitor, by the specified controller in the controller_id field. The matrix is logically assigned by monitor range during configuration; thus, these values must be transmitted when the status is CTRLR_RES.

e.g., A matrix having the monitor range 1 to 16 must on reset send:
sender.range.lower = 1
sender.range.upper = 16

EXAMPLES

ctrl.status = CTRLR_NO
ctrl.sender.id = 1
ctrl.controller_id = 2
Physical value = Control permission for controllable device #1, is granted to controlling device #2

Details:

Resource Set: Standard 00:00:00:00:00:00:00:00-0
Index: 149
Obsolete: no
Size: 7
Programmatic Name: SNVT_ctrl_resp
Neuron C Type:
Structure
statusControl response type.  (control response type names.) .   
 
control_resp_t
senderSender ID..   
 
Union
idSender ID.  (ID number.) .   
 
unsigned long
Minimum: 1
Maximum: 65535
Invalid: 65535
Scaling (A,B,C): 1,  0,  0
Scaled value: 1 *10 0 *(Raw+0)
Resolution: 1
rangeSender ID range.  (lower, upper.) .   
 
Structure
lowerSender range lower ID.  (ID number.) .   
 
unsigned long
Minimum: 1
Maximum: 65535
Invalid: 65535
Scaling (A,B,C): 1,  0,  0
Scaled value: 1 *10 0 *(Raw+0)
Resolution: 1
upperSender range upper ID.  (ID number.) .   
 
unsigned long
Minimum: 1
Maximum: 65535
Invalid: 65535
Scaling (A,B,C): 1,  0,  0
Scaled value: 1 *10 0 *(Raw+0)
Resolution: 1
controller_idController ID.  (ID number.) .   
 
unsigned long
Minimum: 1
Maximum: 65535
Invalid: 65535
Scaling (A,B,C): 1,  0,  0
Scaled value: 1 *10 0 *(Raw+0)
Resolution: 1
Formats:

SNVT_ctrl_resp:  text("%m %d %d %d %d", status, sender.id, sender.range.upper, sender.range.lower, controller_id)