Sensoray 2600 Manual do Utilizador Página 38

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 77
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 37
Sensoray 2600 Programming Guide 34 Gateway Action Scheduling
7.5.3 S26_Sched2610_GetModes()
Function: Schedules the fetching of the operating modes for DIO channels 0 to 7 from a model 2610 IOM.
Prototype: u32 S26_Sched2610_GetModes( XACT x, IOMPORT IomPort, u8 *modes );
Returns: Error code as described in section 5.5. Zero is returned if the operation was successful.
Benchmark: 0.8 ms.
Example: // Get DIO channel 0-7 operating modes from the 2610 at MM number 0, IOM port 2.
u8 modes;
void *x = S26_SchedOpen( 0, 1 );
S26_Sched2610_GetModes( x, 2, &modes );
S26_SchedExecute( x, 1000, 0 );
7.5.4 S26_Sched2610_GetModes32()
Function: Schedules the fetching of the operating modes for DIO channels 0 to 31 from a model 2610 IOM.
Prototype: u32 S26_Sched2610_GetModes32( XACT x, IOMPORT IomPort, u8 *modes );
Returns: Error code as described in section 5.5. Zero is returned if the operation was successful.
Benchmark: 1.1 ms.
Notes: This function is compatible with 7410 firmware version 1.02 or higher. Earlier firmware versions support only
eight pwm channels.
Example: // Get DIO channel 0-31 operating modes from the 2610 at MM number 0, IOM port 2.
u8 modes[4];
void *x = S26_SchedOpen( 0, 1 );
S26_Sched2610_GetModes32( x, 2, modes );
S26_SchedExecute( x, 1000, 0 );
7.5.5 S26_Sched2610_GetOutputs()
Function: Schedules the fetching of all 48 DIO programmed output states from a model 2610 IOM.
Parameter Type Description
x void *
Transaction handle obtained from S26_SchedOpen().
IomPort u8
The IOM port number (on the MM) to which the target IOM is connected.
modes u8 *
Pointer to a 1-byte application buffer that is to receive the channel mode info. The
byte indicates the operating modes for DIO channels 0 to 7. Each bit is associated
with a channel number. For example, bit 4 is associated with channel 4. A bit is set to
one when operating in the PWM mode, or to zero in the Standard mode.
Parameter Type Description
x void *
Transaction handle obtained from S26_SchedOpen().
IomPort u8
The IOM port number (on the MM) to which the target IOM is connected.
modes u8 *
Pointer to a 4-byte application buffer that is to receive the channel mode info. The
bytes indicates the operating modes for DIO channels 0 to 31. Each bit is associated
with a channel number. For example, bit 4 of modes[0] is associated with channel 4.
A bit is set to one when operating in the PWM mode, or to zero in the Standard mode.
Vista de página 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 76 77

Comentários a estes Manuais

Sem comentários