427
Advanced I/O Instructions
Section 5-31
SR 25409 will turn ON while 7SEG(88) is being executed.
Note
1.
Do not use 7SEG(88) more than once within the same program.
2.
Consider the cycle time and the characteristics of the 7-segment display
when designing the system.
3.
Output bits not used here can be used as ordinary output bits.
With this instruction, 4 digits or 8 digits are displayed in 12 cycles.
Operation will proceed from the first execution without regard to the status
prior to execution.
Application Example
This example shows a program for displaying the CQM1’s 8-digit BCD num-
bers at the 7-segment LED display. Assume that the 7-segment display is
connected to output word IR 100. Also assume that the Output Unit is using
negative logic, and that the 7-segment display logic is also negative for data
signals and latch signals.
The 8-digit BCD data in DM 0120 (rightmost 4 digits) and DM 0121 (leftmost 4
digits) are always displayed by means of 7SEG(88). When the contents of
DM 0120 and DM 0121 change, the display will also change.
5-31-2 DIGITAL SWITCH INPUT – DSW(87)
Limitations
DM 6144 to DM 6655 cannot be used for R.
Description
DSW(87) is used to read the value set on a digital switch connected to I/O
Units. When the execution condition is OFF, DSW(87) is not executed. When
the execution condition is ON, DSW(87) reads the value (either 4 or 8-digit)
set on the digital switch from IW and places the result in R.
If the value is an 8-digit number, it is placed in R and R+1, with the most signif-
icant digits placed in R+1. The number of digits is set in DM 6639 of the PC
Setup.
DSW(87) reads the 4 or 8-digit data in 12 cycles, and then starts over and
continues reading the data.
Refer to page 427 for more information on DSW(87) and its applications.
Flags
ER:
IW and/or OW are not allocated to the correct I/O Units.
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
7SEG(88)
DM0120
100
004
25313 (Always ON)
IW
:
Input word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ladder Symbols
Operand Data Areas
DSW(87)
IW
OW
R
R
:
First result word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
OW
:
Output word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......