<< Click to Display Table of Contents > 

Flash Control Interface Manual > Inputs And Outputs

Inputs And Outputs
Previous pageReturn to chapter overviewNext page

The following FCI commands are found in this chapter:

Command

Description

AIN0

Get analog input 0.

AIN1

Get analog input 1.

DBG

Return electric/logical state of the Opto I/Os.

EWI

Get/Set error warning info.

EWM

Get/Set error warning mode.

IN

Get Opto_Ins and Digi_Ins.

LPJ

Get/Set output pulse for looped job.

LSI

Get/Set laser suppression input

LSO

Get/Set laser suppression output

OIF

Get Digi_Ins.

OIFI

Set/Get invert mask of Digi_Ins.

OIU

Get Opto_Ins.

OIUI

Set/Get invert mask of Opto_Ins.

OOF

Get/Set Digi_Outs.

OOFI

Set/Get invert mask of Digi_Outs.

OOU

Get/Set Opto_Outs.

OOUI

Set/Get invert mask of Opto_Outs.

OUT

Get/Set Opto_Outs and Digi_Outs.

IN_INVERT

Get/Set Invert State of Opto_Ins and Digi_Ins.

OUT_INVERT

Get/Set Invert State of Opto_Outs and Digi_Outs.

SYNC

Define status output pins of Flash JobIOSelection mode.

Table 95: Overview Commands Inputs And Outputs

AIN0

 

Get analog input 0

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command reads the current input state of the analog input 0 of the USC-Card and returns the decimal value [0; 1023]. The unit is [10mV].

Example

Command

Return

Note

AIN0

0:

Get state of analog input in 10mV.

AIN0 12

1:

Read only command. Too many parameters give the error message 1.

Notes

-

Save

N/A

Restriction

None

Errors

1: Too many parameters

Table 96: AIN0

AIN1

 

Get analog input 1

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command reads the current input state of the analog input 1 of the USC-Card and returns the decimal value [0; 1023]. The unit is [10mV].

Example

Command

Return

Note

AIN1

0:

Get state of analog input in 10mV.

AIN1 12

1:

Read only command. Too many parameters give the error message 1.

Notes

-

Save

N/A

Restriction

None

Errors

1: Too many parameters

Table 97: AIN1

DBG  <Par1> <Par2>

 

Return electric/logical state of the Opto-IOs

ok  USC-2

ok  USC-3

ok  USC-4

Description

The DBG command returns the electric or logical state of the Opto_Ins and Opto_Outs.

<Par1>

Value: <int>

Function

empty

Not available. This parameter is obligatory.

0

This value must always be 0.

<Par2>

Value: <int>

Function

empty

Not available. This parameter is obligatory.

0

Get the electrical state of the IOs.

1

Get the logic state of the IOs.

Example

Command

Return

Note

DBG 0 0

0: 32

Opto_In_5 is inverted and not set.

DBG 0 0

0: 0

Opto_In_5 is inverted and set.

DBG 0 1

0: 0

Opto_In_5 is inverted and not set.

DBG 0 1

0: 32

Opto_In_5 is inverted and set.

DBG 0 0

0: 32

Opto_In_5 is not inverted and set.

 

 

 

DBG 0 1

0: 4160

Opto_Out_0 is not inverted and set

DBG 0 1

0: 4096

Opto_Out_0 is inverted and set.

DBG 0 0

0: 4160

Opto_Out_0 is not inverted and set.

DBG 0 0

0: 4160

Opto_Out_0 is inverted and set.

Notes

If the inputs are not inverted, the electrical and the logic state are identical. Otherwise not.

Save

N/A

Restriction

None

Errors

1: Too many parameters

2: Too few parameters

8: Parameter out of range

17: Wrong parameter type

Table 98: DBG

EWI <Type> [<Reset>]

 

Get/Set error warning info

ok  USC-2

ok  USC-3

ok  USC-4

Description

Get or set the error warning info.

<Type>

Value: <string>

Function

empty

Not available. This parameter is obligatory.

OD

Out of data with laser on (OD) is set when a buffer underrun occurred.

OF

Out of field (OF) is set when a position overflow (head specific optic matrix, MOTF, Analog Input, USC-3 Wobble) occurred.

OM

Overflow MOTF offset (OM) is set when a MOTF offset is reached too early (e.g. still marking).

SI

Supression Input (SI) is set when a Laser Suppression Input (LSI) is defined and set. (USC-3 only)

<Reset>

[optional]

Value: <int>

Function

empty

Get the error warning info specified with parameter 1.

0

Reset info

Example

Find the maximum MOTF speed for flash job 1.

 

Prepare the error warning feature:

Command

Return

Note

EWM OF 1

0:

Enable out of field error warning mode.

EWI OF 0

0:

Reset out of field error warning info.

 

Mark a MOTF job with running belt:

JN 1

0:

Select job 1.

ET 1

0:

Enable trigger mode.

M 1

0:

Start trigger mode.


Start job process with an external trigger signal.

 

Check the result:

 

EWI OF

0: 0/1

Get out of field error warning info.

'0' is good, increase belt speed and try again.

'1' means an overflow happened, reduce belt speed and try again.

Notes

To use the error warning info (EWI) feature, the corresponding error warning mode (EWM) must be enabled.

Save

N/A

Restriction

None

Errors

1: Too many parameters

2: Too few parameters

8: Parameter out of range

Table 99: EWI

EWM <Type> [<Mode>]

 

Get/Set error warning mode

ok  USC-2

ok  USC-3

ok  USC-4

Description

Get or set the error warning mode for the USC-Card.

<Type>

Value: <string>

Function

empty

Not available. This parameter is obligatory.

OD

Out of data with laser on (OD) is set when a buffer underrun occurred.

OF

Out of field (OF) is set when a position overflow (head specific optic matrix, MOTF, Analog Input, USC-3 Wobble) occurred.

OM

Overflow MOTF offset (OM) is set when a MOTF offset is reached too early (e.g. still marking).

<Mode>

[optional]

Value: <int>

Function

empty

Get the state of the error warning mode specified with parameter 1.

0

Disable mode

1

Enable mode

Example

Command

Return

Note

EWM OF 1

0:

Enable out of field error warning mode.

EWI OF 0

0:

Reset out of field error warning info.

 

 

 

Notes

-

Save

N/A

Restriction

None

Errors

1: Too many parameters

2: Too few parameters

8: Parameter out of range

Table 100: EWM

IN

 

Get Opto_Ins and Digi_Ins

ok  USC-2

ok  USC-3

ok  USC-4

Description

Get the state of the Opto_Outs and the Digi_Outs with one command.

Example

Command

Return

Note

IN

0: 0

No inputs are set.

IN

0: 28

Opto_In_2, _3, and _4 are set.

Notes

Allowed during marking

Save

N/A

Restriction

None

Errors

1: Too many parameters

Table 101: IN

LPJ [<Output> <Pulse>]

 

Get/Set output pulse for looped job

ok  USC-2

ok  USC-3

ok  USC-4

Description

Defines an output pulse for a looped job. Each time a loop in a job begins, the defined output pulse will be active for a defined time. Recognized are the outermost loops in the entity hierarchy of the job.

<Output>

[optional]

Value: <int>

Function

empty

Without any parameters: get the currently defined output pulse for a looped job.

Output

Set output pin value in . Available values for the output bit are [1; 16].

<Pulse>

[optional]

Value: <int>

Function

empty

Without any parameters: get the currently defined output pulse for a looped job.

Pulse

Set the pulse length of the output in us (minimum  = 10us)

Example

Command

Return

Note

LPJ 66 200

0:

set Opto_Out_1 and Digi_Out_0 logically high for a minimum of 200 us at the beginning of each loop

Notes

The valid Output Bit range is [2-16] and the pin to bit mapping of the outputs can be found in the SAMLight IO chapter.

Multiple outputs can be defined by using the sum of output pin values for parameter 1. LPJ 0 0 disables the feature.

The exact duration of the pulse is job specific.

Save

N/A

Restriction

Set and reset: not allowed during marking

Errors

1: Too many parameters

2: Too few parameters

5: Not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 102: LPJ

 

LSI <Parameter> [<Mask> <Value>] [<InvertResult>]

 

Get/Set laser suppression input

notavailable  USC-2

ok  USC-3

ok  USC-4

Description

Defines the laser suppression input. If this input is set, the Laser_Gate signal is suppressed.

<Parameter>

 

Value: <string>

Function

empty

Not available. This parameter is obligatory.

Status

The status of each 20-bit word of the X, Y and Z scan head from head 0 is compared to the value of the masked bits. If the comparison is true for any axis, the suppression state is activated. The result of the comparison for each axis is inverted if InvertResult is 1.

<Mask>

[optional]

Value: <int>

Function

empty

Get the current LSI parameters <Mask> <Value> <InvertResult>.

Mask

[0; ‭1048575]

Set the mask of the value. It can be set in decimal, hexadecimal (0x) or binary (b) format. If it is set to '0' the command is deactivated.

 


 


 
 

<Value>

[optional]

Value: <int>

Function

empty

Get the current LSI parameters <Mask> <Value> <InvertResult>.

Value

[0; ‭1048575]

Set the value. It can be set in decimal, hexadecimal (0x) or binary (b) format. If it is set to '0' the command is deactivated.

 

 

<InvertResult>
[optional]

Value: <int>

Function

empty

Get the current LSI parameters <Mask> <Value> <InvertResult>.

Default for InvertResult is 0.

0

Set the laser suppression flag if

((Status0X & Mask) == (Value & Mask)) |

((Status0Y & Mask) == (Value & Mask)) |

((Status0Z & Mask) == (Value & Mask))

1

Set the laser suppression flag if

((Status0X & Mask) != (Value & Mask)) |

((Status0Y & Mask) != (Value & Mask)) |

((Status0Z & Mask) != (Value & Mask))

Example Set

Command

LSI Status b11100001000000000000 b00000001000000000000 1

Return

0:

Note

 

Set the mask to compare bit 12, 17, 18 and 19. Set Value12 to 0, Value17..19 to 1, Set InvertResult to 1.

Example Get

Command

LSI Status

Return

0:921600 4096 1

Note

Get <Mask> <Value> <InvertResult> in decimal format.

Notes

If the input is active, the Laser_Gate remains suppressed until it is manually reset or the card is restarted.

The suppressed state can be queried with EWI SI and mapped to an output with LSO.

The suppressed state can be reset with EWI SI 0 or by repowering the card.

If either the mask or the value is set to '0', the command is deactivated.

Save

Changes are saved with SVG.

When not saved, changes are valid until the next reboot of the USC-Card.

Restriction

Set and reset: not allowed during marking

Errors

1: Too many parameters

2: Too few parameters

5: Not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 103: LSI

LSO <Parameter> [<Mask> <Value>]

 

Get/Set output if laser suppression is active.

notavailable  USC-2

ok  USC-3

ok  USC-4

Description

Defines the outputs which is set when laser suppression flag is active.

<Parameter>

 

Value: <int>

Function

empty

Not available. This parameter is obligatory.

Status

Map the laser suppression input flag to an output.

<Mask>

[optional]

Value: <int>

Function

empty

Without any parameters: get the currently defined output for the laser suppression

Mask

[0; 65535 ]

Set one decimal value for the mask of Opto_Outs and Digi_Outs.

<Value>

[optional]

Value: <int>

Function

empty

Without any parameters: get the currently defined input for laser suppression.

OutputState

[0; 65535]

Set one decimal value to define the states to which the input of the mask should be set.

Example

Command

Return

Note

LSO STATUS 0x20 0x20

0:

map the laser suppression flag to active Opto_Out_5.

 

 

 

Notes

The laser suppression flag can be triggered by the LSI feature.

Save

Changes are saved with SVG.

When not saved, changes are valid until the next reboot of the USC-Card.

Restriction

Set and reset: not allowed during marking

Errors

1: Too many parameters

2: Too few parameters

5: Not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 104: LSO

OIF

 

Get Digi_Ins

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command reads the current input state of the digital inputs of the USC-Card and returns the decimal value of the bit pattern.

Example

Command

Return

Note

OIF

0:

Get state of digital inputs.

OIF 12

1:

Read only command. Too many parameters give the error message 1.

Notes

-

Save

N/A

Restriction

None

Errors

1: Too many parameters

Table 105: OIF

OIFI [<InvertMask>]

 

Set/Get invert mask of Digi_Ins

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command is used to set or return the invert mask for the digital inputs of the USC-Card (on the extension connector).

<InvertMask>

[optional]

Value: <int>

Function

empty

Return the digital input invert mask.

Digi_In

[0; 1023]

Set the invert mask for the digital inputs.

Example

Command

Return

Note

OIFI 1023

0:

Set invert mask for the digital inputs

OIFI

0: 1023

Get invert mask for the digital inputs

OIFI 1024

8:

Parameter out of range

OIFI 0

0:

Set invert mask to its original state.

Notes

When setting a new state, earlier states are not remembered. The inverted mask can be checked at InfoView of sc_usc_server.exe in visible mode at Member InputInvertFlags. The set value by OIFI cannot be saved with SVG command.

To set the command to its original state, the command OIFI 0 can be sent.

Save

N/A

Restriction

Set: not allowed during marking

Set: not allowed during JobIOSelection mode

Errors

1: Too many parameters

5: Set not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 106: OIFI

OIU

 

Get Opto_Ins

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command reads the current input state of the Opto_Ins of the USC-Card and returns the decimal value of the bit pattern.

Example

Command

Return

Note

OIU

0:

Get state of Opto_Ins.

OIU 12

1:

Read only command. Too many parameters give the error message 1.

Notes

-

Save

N/A

Restriction

None

Errors

1: Too many parameters

Table 107: OIU

OIUI [<InvertMask>]

 

Set/Get invert mask of Opto_Ins

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command is used to set or return the invert mask for the Opto_Ins of the USC-Card.

<InvertMask>

[optional]

Value: <int>

Function

empty

Return the Opto_Ins input invert mask.

Opto_In

[0; 63]

Set the invert mask for the Opto_Ins.

Example

Command

Return

Note

OIUI

0:

Get invert mask for the Opto_Ins

OIUI 16

0:

Set invert mask for the Opto_Ins

OIUI 64

8:

Parameter out of range

Notes

When setting a new state, earlier states are not remembered. The inverted mask can be checked at InfoView of sc_usc_server.exe in visible mode at Member InputInvertFlags. The set value by OIUI cannot be saved with SVG command. The flags for Trigger Start = Opto_In_0 and Trigger Stop = Opto_In_1 cannot be set by this command.

If Opto_In_0 and Opto_In_1 need to be inverted, see IN_INVERT.

Save

N/A

Restriction

Set: not allowed during marking

Set: not allowed during JobIOSelection mode

Errors

1: Too many parameters

5: Set not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 108: OIUI

OOF [<Digi_Out>]

 

Get/Set Digi_Outs

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command sets a new output state for the digital outputs of the USC-Card according to the specified decimal value. Single outputs or a combination of outputs can be set using the decimal representation of the binary counting. A single output cannot be unset other than by sending the decimal value including all outputs which should stay set (see example below).

<Digi_Out>

[optional]

Value: <int>

Function

empty

Get the state of the digital outputs.

Digi_Out

[0; 1023]

Set the digital outputs. Single outputs or a combination of outputs can be set using the decimal representation of the binary counting.

Example

Command

Return

Note

OOF 1

0:

Set Digi_Out_0

OOF 3

0:

Set Digi_Out_0 and Digi_Out_1

OOF 5

0:

Set Digi_Out_0 and Digi_Out_2

OOF 4

0:

Set Digi_Out_2 (all other bits like Digi_Out_0 are overwritten)

 

OOF 0

0:

Set all Digi_Outs to their inactive state.

Notes

When setting a new state, earlier states are not remembered.

Save

N/A

Restriction

Set: not allowed during marking

Set: not allowed during JobIOSelection mode

Errors

1: Too many parameters

5: Set not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 109: OOF

OOFI [<InvertMask>]

 

Set/Get invert mask of Digi_Outs

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command is used to set or return the invert mask for the digital outputs of the USC-Card (on the extension connector).

<InvertMask>

[optional]

Value: <int>

Function

empty

Return the digital output invert mask.

Digi_Out

[0; 1023]

Set the invert mask for the digital outputs.

Example

Command

Return

Note

OOFI

0:

Get invert mask for the digital outputs

OOFI 1023

0:

Set invert mask for the digital outputs

OOFI 1024

8:

Parameter out of range

Notes

When setting a new state, earlier states are not remembered. The inverted mask can be checked at InfoView of sc_usc_server.exe in visible mode at Member OutputInvertFlags. The set value by OOFI cannot be saved with SVG command.

Save

N/A

Restriction

Set: not allowed during marking

Set: not allowed during JobIOSelection mode

Errors

1: Too many parameters

5: Set not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 110: OOFI

OOU [<Opto_Out>]

 

Get/Set Opto_Outs

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command is used to get or set a new output state for the opto outputs of the USC-Card according to the specified decimal value. Single outputs or a combination of outputs can be set using the decimal representation of the binary counting. A single output cannot be unset other than by sending the decimal value including all outputs which should stay set (see example below).

<Opto_Out>

[optional]

Value: <int>

Function

empty

Get the state of the Opto_Outs.

Opto_Out

[0; 63]

Set the Opto_Outs. Single outputs or a combination of outputs can be set using the decimal representation of the binary counting.

Example

Command

Return

Note

OOU 1

0:

Set Opto_Out_0

OOU 3

0:

Set Opto_Out_0 and Opto_Out_1

OOU 5

0:

Set Opto_Out_0 and Opto_Out_2

OOU 4

0:

Set Opto_Out_2 (all other bits like Opto_Out_0 are overwritten)

OOU 0

0:

Set all Opto_Outs to their inactive state.

Notes

When setting a new state, earlier states are not remembered.

With this command Opto_Out_0 cannot be set. If these inputs need to be set, see OUT_INVERT.

Save

N/A

Restriction

Set: not allowed during marking

Set: not allowed during JobIOSelection mode

Errors

1: Too many parameters

5: Set not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 111: OOU

OOUI [<InvertMask>]

 

Get/Set invert mask of Opto_Outs

ok  USC-2

ok  USC-3

ok  USC-4

Description

This command is used to set or return the invert mask for the opto outputs of the USC-Card.

<InvertMask>

[optional]

Value: <int>

Function

empty

Return the invert mask of the Opto_Outs.

Opto_Out

[0; 63]

Set the invert mask for the Opto_Outs.

Example

Command

Return

Note

OOUI

0:

Get invert mask for the Opto_Outs

OOUI 47

0:

Set invert mask for the Opto_Outs

OOUI 64

8:

Parameter out of range

Notes

When setting a new state, earlier states are not remembered. The inverted mask can be checked at InfoView of sc_usc_server.exe in visible mode at Member OutputInvertFlags. The set value by OOUI cannot be saved with SVG command.

With this command Opto_Out_0  cannot be inverted. If this output needs to be inverted, see OUT_INVERT.

Save

N/A

Restriction

Set: not allowed during marking

Set: not allowed during JobIOSelection mode

Errors

1: Too many parameters

5: Set not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 112: OOUI

OUT [<Mask> <Value>] [<Marking>]

 

Get/Set Opto_Outs and Digi_Outs

ok  USC-2

ok  USC-3

ok  USC-4

Description

Get and set state of the Opto_Outs and the Digi_Outs with one command. To set any output, this command needs the parameters <Mask> and <Value> with <Mask> being the mask specifying which outputs will be changed and <Value> specifying the exact value these outputs should be set to (0 or 1). In addition the optional parameter <Marking> can be used to set outputs even during marking.

<Mask>

[optional]

Value: <int>

Function

empty

Without any parameters: get the current state of the Opto_Outs and Digi_Outs.

Mask

[0; 65535 ]

Set one decimal value for the mask of Opto_Outs and Digi_Outs.

<Value>

[optional]

Value: <int>

Function

empty

Without any parameters: get the current state of the Opto_Outs and Digi_Outs.

Value

[0; 65535]

Set one decimal value to define the states to which the outputs of the mask should be set.

<Marking>

[optional]

Value: <int>

Function

empty

Without any parameters: this command does not work during marking (M = 1).

Marking

[0; 1]

This parameter is used to allow setting of outputs during marking .

0: This command does not work during marking.

1: This command does work even during marking.

Example

Command

Return

Note

OUT 4 4

0:

Set Opto_Out_2 to 1.

Out 192 128 1

0:

Set Digi_Out_0 to 0 and Digi_Out_1 to 1, allowed during marking.

OUT

0: 132

Opto_Out_2 and Digi_Out_1 are 1.

Notes

Without parameter <Marking>, setting of outputs is not allowed during marking.

Only the outputs of the mask are changed, outputs outside the mask stay untouched.

Opto_Out_0 (Marking in Progress) cannot be set.

If Opto_Out_0 needs to be inverted, see OUT_INVERT.

Save

N/A

Restriction

Set: not allowed during marking

Errors

1: Too many parameters

5: Not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 113: OUT

IN_INVERT [<Mask><Value>] [<AllowDuringMarking>]

 

Get/Set Invert States of Opto_Ins and Digi_Ins.

notavailable  USC-2

ok  USC-3

ok  USC-4

Description

Get or set invert states of the Opto_Ins and Digi_Ins with one command.

<Mask>

 

Value: <int>

Function

empty

Get the current invert states of all inputs. The returned value is in decimal.

Mask

[1; 65535‭]

Select which input invert states are updated. It can be set in decimal, hexadecimal (0x) or binary (b) format.

 

The general calculation follows:

 

 


 

 

 

In binary:

 

0000_0000_0000_0100

|          ||     |

|          ||     |

|          ||     |

|          ||     |

|          ||     ╰Mask Opto_In_0

|          |╰Mask Opto_In_5

|          ╰Mask Digi_In_0

╰Mask Digi_In_9

 

<Value>

 

Value: <int>

Function

empty

Get the current invert states of all inputs. The returned <Value> is in decimal format.

Value

[0; 65535]

Set the new invert states for the selected inputs. It can be set in decimal, hexadecimal (0x) or binary (b) format. A value of '0' clears the invert states selected by the mask.

 

The general calculation follows:

 

 

 

 

 

In binary:

 

0000_0000_0000_0100

|          ||     ╰State Opto_In_0

|          |╰State Opto_In_5

|          ╰State Digi_In_0

╰State Digi_In_9

 

<AllowDuringMarking>
[optional]

Value: <int>

Function

empty or 0

Command is not allowed during marking.

1

Command is allowed during marking.

Example Set

Command

IN_INVERT 4 4 0

Return

0:

Note

 

Select Opto_In_2 and set its invert state.

Example Get

Command

IN_INVERT

Return

0:4

Note

Get <Value> in decimal format.

Example Set

Command

IN_INVERT 0x40 0x40 0

 

Return

0:

 

Note

 

Select Digi_In_0 and set its invert state.

Example Get

Command

IN_INVERT

 

Return

0:64

 

Note

Get <Value> in decimal format.

Notes

<Mask> selects which invert states are updated. <Value> defines the new states for the selected inputs.

Opto_In_0 and Opto_In_1 can also be set with this command. Please note that changing these inputs during Marking is not advisable.

Save

Set: Cannot be saved with SVG.

Changes are valid until the next reboot of the USC-Card.

Restriction

without AllowDuringMarking, command is not allowed during Marking

Errors

1: Too many parameters

2: Too few parameters

5: Not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 114: IN_INVERT

OUT_INVERT [<Mask><Value>] [<AllowDuringMarking>]

 

Get/Set Invert States of Opto_Outs and Digi_Outs.

notavailable  USC-2

ok  USC-3

ok  USC-4

Description

Get or set invert states of the Opto_Outs and Digi_Outs with one command.

<Mask>

 

Value: <int>

Function

empty

Get the current invert states of all outputs. The returned value is in decimal.

Mask

[1; 65535‭]

Select which output invert states are updated. It can be set in decimal, hexadecimal (0x) or binary (b) format.

 

The general calculation follows:

 

 


 

 

 

In binary:

 

0000_0000_0000_0100

|          ||     |

|          ||     |

|          ||     |

|          ||     |

|          ||     ╰Mask Opto_Out_0

|          |╰Mask Opto_Out_5

|          ╰Mask Digi_Out_0

╰Mask Digi_Out_9

 

<Value>

 

Value: <int>

Function

empty

Get the current invert states of all outputs. The returned <Value> is in decimal format.

Value

[0; 65535]

Set the new invert states for the selected outputs. It can be set in decimal, hexadecimal (0x) or binary (b) format. A value of '0' clears the invert states selected by the mask.

 

The general calculation follows:

 

 

 

 

 

In binary:

 

0000_0000_0000_0100

|          ||     ╰State Opto_Out_0

|          |╰State Opto_Out_5

|          ╰State Digi_Out_0

╰State Digi_Out_9

 

<AllowDuringMarking>
[optional]

Value: <int>

Function

empty or 0

Command is not allowed during marking.

1

Command is allowed during marking.

Example Set

Command

OUT_INVERT 4 4 0

Return

0:

Note

 

Select Opto_Out_2 and set its invert state.

Example Get

Command

OUT_INVERT

Return

0:4

Note

Get <Value> in decimal format.

Example Set

Command

OUT_INVERT 0x40 0x40 0

 

Return

0:

 

Note

 

Select Digi_Out_0 and set its invert state.

Example Get

Command

OUT_INVERT

 

Return

0:64

 

Note

Get <Value> in decimal format.

Notes

<Mask> selects which invert states are updated. <Value> defines the new states for the selected outputs.

Opto_Out_0 can also be set with this command. Please note that changing these inputs during Marking is not advisable.

Save

Set: Cannot be saved with SVG.

Changes are valid until the next reboot of the USC-Card.

Restriction

without AllowDuringMarking, command is not allowed during Marking

Errors

1: Too many parameters

2: Too few parameters

5: Not allowed during marking

8: Parameter out of range

17: Wrong parameter type

Table 115: OUT_INVERT

 

SYNC  <Func> [<Output>]

 

Get/Set output pins of Flash JobIOSelection status outputs.

ok  USC-2

ok  USC-3

ok  USC-4

Description

The SYNC command defines the output pins of the status outputs of the Flash JobIOSelection.

<Func>

 

Value: <int>

Function

empty

Not available. This parameter is obligatory.

0

Ready for Trigger (default 8 = Opto_Out_3).

1

Job Loaded (default 16 = Opto_Out_4).

-1

Resets both status outputs to defaults.

<Output>

[optional]

Value: <int>

Function

empty

Get output pin value in .

Output

Set output pin value in .. Available values for the output bit are [1; 16].

Example

Command

Return

Note

SYNC 0 64

0:

Set status output Ready for Trigger to Digi_Out_0.

SYNC 1

0: 16

Get output pin for Job Loaded, 16 is the default Opto_Out_4.

Notes

The valid Output Bit range is [2-16] and the pin to bit mapping of the outputs can be found in the SAMLight IO chapter.

Mark in Progress status output cannot be changed and is always on Opto_Out_0.

After sending the command FM 0x80000, the output bit for Ready for Trigger can also be adjusted for the Trigger mode.

Save

Changes are saved with SVG.

When not saved, changes are valid until the next reboot of the USC-Card.

Saved changes are restored with LDG.

Restriction

Set and reset: not allowed during marking

Errors

1: Too many parameters

2: Too few parameters

5: Not allowed during marking

8: Parameter out of range

Table 116: SYNC