EasyManuals Logo

Vector VEC-VA Series User Manual

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #271 background imageLoading...
Page #271 background image
VA Motion Controller Programming Manual
266
writing variables of different data types of
PDD
WR_BOOL_BY_
SYM
WR_BYTE_BY_SY
M
WR_WORD_BY_
SYM
WR_DWORD_BY_
SYM
WR_SINT_BY_S
YM
WR_INT_BY_SYM
WR_DINT_BY_SY
M
WR_USINT_BY_SY
M
WR_UINT_BY_S
YM
WR_UDINT_BY_S
YM
WR_REAL_BY_SY
M
WR_STRING_BY_S
YM
WR_TIME_BY_S
YM
WR_OUTPUT_GR
OUP
PDD
is a method that can access the value of a variable by the name of the variable. It is a
method used when the controller kernel layer accesses the value of the
PLC
variable defined
by
MULTIPROG
. The
WR_*_BY_SYM
instruction is temporarily unavailable, and the general user
directly reads and writes. The variables are fine.
10.6.21 RTC_S ( Read PLC Clock )
IL programming language
LD, FBD programming
language
Function: The RTC_S instruction is used to read the PLC clock in a string variable, and the
read clock is in GMT format. The format of the oral and time output string specified
in IEC61131-3 is : DT#1998-11-21-15:27:56.46 .
LD IN
ST RTC_S_1.EN
CAL RTC_S_1
LD RTC_S_1.Q
ST Q
LD RTC_S_1.CDT
ST OUT
ST programming language
RTC_S_1
(
EN:=
(
IN
))
; Q:=RTC_S_1.Q; OUT:=RTC_S_1.CDT;
Note
: IL, ST
language programming needs to insert variables
IN, O, OUT
or use constants in
the variable worksheet of the current
POU
RTC_S instruction processing data types
Input and
output
type of
data
description
IN
(
EN
)
BOOL
If
TRUE
, the actual date and time is written to the linked
output string.
Q
(
Q
)
BOOL
If
EN
is
TRUE, Q
is
TRUE
, otherwise
Q
is
FALSE
OUT ( CTD )
STRING
Date and time of the acquisition, such

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals