SATO SG112 ex Programming Reference Manual page 397

Hide thumbs Also See for SG112 ex:
Table of Contents

Advertisement

[ESC+IO] External Signal Input/Output
Hexadecimal code
Initial value
Valid range and term of
command
[Function]
Specify input/output of the designated pin number of the external signal.
[Format]
<IO>a,b,c(,dddddd)
-
Parameter
a [Input or output]
       0 : Input
       1 : Output
b [Pin number] = Valid range : 1 to 14
  c [Input/Output level]
       0 : Low
       1 : High
d [Timeout for input] = Valid range : 0 to 999999 (1 = 5 ms) (Omissible)
       * When it is [Input], this parameter is the input timeout time.
       When this parameter is omitted, the printer does not proceed to the next command analysis
       until the next input from the designated port.
[Output time] = Valid range : 0 to 999999 (1 = 5 ms) (Omissible)
       * When it is [Output], this parameter is the output time.
       The signal level will be returned to the status before this command after the specified time
       has been passed when this parameter is specified.
       The signal will be output continuously at the specified level when this parameter is omitted.
[Coding Example 1]
Wait until HIGH level is input from the EXT5 pin (with 5 second timeout)
<A>
<IO>0,5,1,1000
<Z>
[Coding Example 2]
Output LOW level for 5 seconds to the EXT1 pin (before this command the signal is HIGH level)
<A>
<IO>1,1,0,1000
<Z>
ESC
<1B>
16
None
When the power is OFF
Valid range within items
Valid range between items
396
IO
<49>
<4F>
16
16
The set parameter is not maintained.
The set parameter becomes invalid.
The set parameter becomes invalid.
Parameter
a,b,c(,dddddd)

Advertisement

Table of Contents
loading

Table of Contents