Omron NS - Reference Manual

Brand: Omron
Category: Other
Model: NS - (Reference Manual)
File Type: PDF
File Size: —
Pages: 73
Text of Omron NS - Reference Manual

Omron NS - Cat. No. V075-E1-08

Macro Reference NS-Series REFERENCE MANUAL Cat. No. Z264-E1-06A Smart Sensor ZFX-C USER´S MANUAL

Omron NS - Section 1 Outline of Macro Function

1-1 NS series Macro Reference Section1 Outline of Macro Function This section describes execution conditions and programming procedure for using macro. 1-1 What is Macro?…………………………………………………………………….1 – 1 1-2 Macro Execution Condition……………………………………………………….1 – 2 1-3 Macro Programming………………………………………
Section 1 Outline of Macro Function 1-2 NS series Macro Reference 1-1 What is Macro? Macro is the function which can be executed by users original program. User can add functions, such as arithmetic operations and distinction of conditions, which are not supported by standard functions in CX-Designer. This function allows the PT to process screen display or data, which is performed by PLC before. It is also possible to reduce a load of PLC. In this manual,
Section 1 Outline of Macro Function 1-3 NS series Macro Reference 1-2 Macro Execution Condition Macros can be created for each project, screen, and functional objects. Also they can be created for the following execution conditions. Executing conditions for the project Macro execution conditions that can be made for the project are indicated below. Select [PT]-[Project Properties]-[Macro] tab in CX-Designer, then set execution condition and record macro. F
Section 1 Outline of Macro Function 1-4 NS series Macro Reference Reference Macros are executed by the timing as shown below. NS series, NSJ series and NSH series When loading a screen (Execute at the destination screen) When unloading a screen (Execute at the destination screen) User screen->User screen Executed Executed User screen->Transfer screen Not Executed Executed User screen->System menu Not Executed Executed System menu->User screen Executed Not
Section 1 Outline of Macro Function 1-5 NS series Macro Reference Execution conditions for the functional objects Macro execution conditions that can be made for each functional object are described in the following table. Open property dialog for each functional object and select [Macro] tab page, then set the execution condition and create macro. For details on registering macros, refer to the online CX-Designer Help ‘Creating Functional Objects’. Ex
Section 1 Outline of Macro Function 1-6 NS series Macro Reference The following conditions can be selected for functional objects. Functional Object Touch on Timing Touch Off Timing When changing Numeral/String and comparing Numeral Before inputting Numeral/String Before writing Numeral/String List Selection ON/OFF Button OK OK - - - - Word Button OK OK - - - - Command Button OK OK - - - - Bit Lamp - - OK - - - Word Lamp - - OK - - - Numeral Display & Inpu
Section 1 Outline of Macro Function NS series Macro Reference Reference � When a command button is set in the following functions, macros that are set at the touch on will be executed at the touch off. Macros that are set at the off will not be executed. Switch screen Control pop-up screen Display system menu Data block control When functions other than above are selected, macros will be executed at the specified timing. � Document Display
Section 1 Outline of Macro Function 1-8 NS series Macro Reference 1-3 Macro Programming This section describes macro creation procedures and programming terms. The Method for Writing a Macro Delimiter of the Program Put a semicolon (;) at the end of each program as a delimiter. However, it is not necessary for IF (), ELSEIF (), ELSE(),ENDIF. Example; $W0=2; IF ($W0>=10) $W5=$W0-$W2; ELSE $W5=$W0+$W2; ENDIF Comment Put single quotation mark at the
Section 1 Outline of Macro Function 1-9 NS series Macro Reference Programming Terms This section describes terms used in this function. Variable The following variables can be used in macro program. Item Explanation Host address Use functions (READCMEM and WRITECMEM) for communication when accessing to the address in the host. Enclose address in [ ] Example: READCMEM($W100,[HOST1:DM00000],100); ‘Read HOST1:DM00000 to DM00099 to $W100 to $W1
Section 1 Outline of Macro Function 1-10 NS series Macro Reference Constant Usable constants for macro program and procedure are described in the following table. Item Explanation Decimal constant -32768 to 32767 can be input when using word (16-bit) -2147483648 to 2147483647 can be input when using 2 words (32-bit) Hexadecimal constant H0 to HFFFF can be input when using word (16-bit) H0 to HFFFFFFFF can be input when using 2 words (32-bit) Character Stri

Omron Other Owners Instructions:

Device Model Type of Document Pages Size Views Downloads Updated
E6C-N -

Other #5F69FC

12 1044 220 08-10-2026
DRT2-D16S

#JRNH16: DRT2-D16S Other Specifications

2 883 168 07-05-2026
CX-ONE V4

CX-ONE V4 Brochure - MKUHC7

8 898 153 19-09-2026
SJDE-ANA-OY

PDF User Manual (@79CLAB), Omron SJDE-ANA-OY Other (11-07-2026)

170 1476 222 11-07-2026

Other: Similar Manuals