17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

74 SEGL 7-segment with Latch<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F SEGL: 7 steps<br />

S * * * * * * * * * * *<br />

D *<br />

n * *<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Operands:<br />

S: Source device storing the value to be displayed in 7-segment display D: Output device for<br />

7-segment display<br />

n: Configuration setting of output signal (n = 0~7)<br />

Explanations:<br />

185. This instruction occupies 8 or 12 consecutive external output points starting from D for<br />

displaying the data of 1 or 2 sets of 4-digit 7-segment display. Every digit of the 7-segment<br />

display carries a “Drive” which converts the BCD codes into 7-segment display signal. The<br />

drive also carries latch control signals to retain the display data of 7-segment display.<br />

186. n specifies the number of sets of 7-segment display (1 set or 2 sets ), and designates the<br />

positive / negative output of PLC and the 7-segment display.<br />

187. When there is 1 set of 4-digit output, 8 output points will be occupied. When there are 2 sets<br />

of 4-digit output, 12 output points will be occupied<br />

188. When the instruction is executed, the output terminals will be scanned circularly. When the<br />

drive contact goes from OFF to ON again during the execution of instruction, the scan will<br />

restart from the beginning of the output terminals.<br />

189. Flag: When SEGL is completed, M1029 = ON for one scan cycle.<br />

190. There is no limitation on the times of using this instruction in the program, however only one<br />

instruction is allowed to be executed at a time.<br />

Program Example:<br />

191. When X20 = ON, SEGL instruction executes and Y24~Y27 forms an output scan loop for<br />

7-segment display. The value of D10 will be mapped to Y20~Y23, converted to BCD code<br />

and sent to the 1st set of 7-segment display. The value of D11 will be mapped to Y30~Y33,<br />

converted to BCD code and sent to the 2 nd set of 7-segment display. If the values in D10 and<br />

D11 exceed 9,999, operational error will occur.<br />

X20<br />

SEGL D10 Y20 K4<br />

3-191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!