7-30
Section
Communications Instructions
505
C2, which specifies the timer’s SV, can be a constant or the first of two words
containing the SV. The settings are slightly different depending on the method
used.
C2 = Constant
If C2 is a constant, it specifies the SV of the decrementing counter in BCD. The
setting range is 0000 to 9999 (0 to 9.999 ms). (The timing units are fixed at 1 ms.)
C3 specifies subroutine number: 0000 to 0049.
C2 = Word Address
If C2 is a word address, the content of C2 contains the SV of the decrementing
counter (BCD, 0000 to 9999).
The content of C2+1 specifies the timing units (BCD, 0005 to 0320) in units of
0.1 ms. The decrementing time interval can thus be 0.5 to 32 ms.
The timer SV is: (the content of C2)
×
(the content of C2+1)
×
0.1 ms.
C3 specifies subroutine number: 0000 to 0049.
Set C1=006 to read the timer PV.
C2 specifies the first of two destination words that will receive the timer’s PV. C2
receives the number of times the decrementing counter has been decremented
(hexadecimal, 0000 to 9999) and C2+1 receives the timing units (BCD in 0.1 ms
units).
C3 specifies the destination word that receives the time which has elapsed since
the last time the timer was decremented (BCD in 0.1 ms units).
Note
The time that has elapsed since the timer was started is computed as follows:
((Content of C2)
×
(Content of C2+1)) + ((Content of C3))
×
0.1 ms
Set C1=010 to stop the timer. C2 and C3 have no function and should both be set
to 000.
Flags
ER:
C1 is not 000, 003, 006, or 010.
A specified subroutine number is not between 0000 and 0049.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
A data area boundary has been exceeded.
7-30 Communications Instructions
7-30-1
RECEIVE – RXD(47)
D:
First destination word
IR, SR, AR, DM, HR, TC, LR
C
: Control word
#
Ladder Symbols
Operand Data Areas
N:
Number of bytes
IR, SR, AR, DM, HR, TC, LR, #
RXD(47)
D
C
N
@RXD(47)
D
C
N
Limitations
This instruction is available in the
CPM2A/CPM2C and SRM1(-V2) only
.
D and D+(N
÷
2)–1 must be in the same data area.
DM 6144 to DM 6655 cannot be used for D or N.
Reading the Timer PV
(C1=006)
Stopping the Timer
(C=010)
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...