Omron CX-programmer 5 0-function Block Operation
Here you can find all about Omron CX-programmer 5 0-function Block Operation like manual and other informations. For example: review.
Omron CX-programmer 5 0-function Block Operation manual (user guide) is ready to download for free.
On the bottom of page users can write a review. If you own a Omron CX-programmer 5 0-function Block Operation please write about it to help other people. [ Report abuse or wrong photo | Share your Omron CX-programmer 5 0-function Block Operation photo ]
Manual
Preview of first few manual pages (at low quality). Check before download. Click to enlarge.
Download
(English)Omron CX-programmer 5.0-function Block Operation, size: 3.1 MB |
Omron CX-programmer 5 0-function Block Operation
User reviews and opinions
| Soollon |
3:36am on Saturday, October 16th, 2010 ![]() |
| I bought 2 of these both refurb and have had no issues. I would hide it from the kids unless they are over 21 and responsible iTunes is easy for me to use but I can see that a former WMP user could have tr... just fantastic device just fantastic device. plays videos, photos, and of course music. even has built in radio which you can pause, rewind. | |
| elociaz |
11:43am on Saturday, August 28th, 2010 ![]() |
| Ipod Nano Brought this product to use while working out. When I received it, it was in excellent condition, just like brand new. Works wonderful. Love it! This is a great product. My first iPod and am finding so many uses for it. | |
| deecha |
7:15pm on Wednesday, August 18th, 2010 ![]() |
| 179.99 is quite pricey for this product.It is a nice product. Was purchased as a gift.Person receiving gift is enjoying it. Lovin It new ipod nano is awesome! lots of great new features: fading from one song to another, radio, pedometer, and then some! | |
| NoelC |
2:09pm on Monday, August 9th, 2010 ![]() |
| The iPod came in perfect condition, well packaged against the holiday destruction of electronics in shipping. The iPod itself is a very nice on. | |
| Prios |
5:13am on Friday, July 16th, 2010 ![]() |
| This silver 16 GB is a pretty good deal considering that all the other nanos (including 8GB) cost quite a bit more. 179.99 is quite pricey for this product. It is a nice product. Was purchased as a gift. Person receiving gift is enjoying it. | |
| paulm |
9:24pm on Wednesday, July 7th, 2010 ![]() |
| 8 gigs of music isnt that much. If you have a large library of music or make lots of playists i would reccomend the 16gb version. Thank you for joining me for this review of the Ipod Nano. I got this ipod in green last Christmas and I love it so much. Every vacation we take I bring it with me. | |
| Stanleys |
5:39pm on Monday, June 28th, 2010 ![]() |
| great for the recorder i use it all of the time ; and i like the big screen ; the pink and the blue ine look the best i wish it took pictures instead ... I love my G5 Nano, why not have two, one for work & one for home. This purchase brings smiles every day. In all, a good MP3. If you want something stripped down and not too complicated, this is your MP3. The camera is really cool. | |
| oco2005 |
1:05am on Tuesday, May 25th, 2010 ![]() |
| hearing music enywhere Easy To Set Up, Great Sound, Long Battery Life, Lots of Storage, Reliable Performance, Simple Controls, Sleek/Compact Bulky. | |
| nonogrob |
2:40pm on Thursday, May 13th, 2010 ![]() |
| i used to have a shuffle but now i upgraded and i love the volume and the crisp color of video on this nano Great Sound Short Battery Life Awesome!! Easy To Set Up, Great Sound, Long Battery Life, Lots of Storage, Reliable Performance, Simple Controls, Sleek/Compact Easy to lose easy to take anywhere with you i love my ipod it stays with me 24/7 Easy To Set Up, Great Sound, Long Battery Life, Lots of Storage, Simple Controls,... | |
| cdewit |
10:23pm on Wednesday, April 14th, 2010 ![]() |
| I did not know how to return it faster. How can you design such a piece of hardware and then ruin it like that? I always wanted an ipod, and now. | |
| jerkface |
2:14pm on Thursday, March 18th, 2010 ![]() |
| died after 90 days I bought this to listen to my music while traveling and around the house. I liked it until it just died after 90 days of use. | |
Comments posted on www.ps2netdrivers.net are solely the views and opinions of the people posting them and do not necessarily reflect the views or opinions of us.
Documents

Control Device 1
A1 B1 X1 An An Bn Bn
Xn Xn Xn TIM n #0100
TIM 1 #0100 T1 Y1 Z1 Tn
Yn Yn Yn Zn Zn Zn
Produce template
Partial Ladder program for machine A Function Block definition
Device Control
EN A B
ENO X Y Z
X1 Y1 Z1
EN Allocate to Ladder program
Function Block Instance (call statement)
Control Device 2 parameters
Sets input / output
X2 Y2 Z2
Function Block definition This contains the defined logic (algorithm) and I/O interface. The memory addresses are not allocated in the Function Block Definition Function Block instance (call statement) This is the statement that will call the function block instance when used by the ladder program, using the memory allocated to the instance
2. An Example of a Function Block 2. An Example of a Function Block
The following figures describe an example of a function block for a time limit circuit, to be used in the ladder. It is possible to edit the set point of the TIM instruction to reallocate the set time for turning off the output in the ladder rung. Using the function block as shown below, it is possible to make the time limit of the circuit arbitrary by only changing one specific parameter.
Ladder diagram
000.00 TIM0000 TIM 0000 #0020
By enabling the input parameter to be editable, it is possible to allow an arbitrary time limit circuit.
PULSE EN ENO Q 001.00 Start Time
001.00 001.00
000.00 #0020
Timing chart
Start 000.00 001.00 2.0 sec T_FB TIM T_FB Time Q Q
A function is also provided to generate function blocks based on existing ladder programs. For details, refer to Overview of Helpful Functions, Generating FBs Based on an Existing Ladder Program.
3. Overview of the OMRON FB Library 3. Overview of the OMRON FB Library
The OMRON FB Library is a collection of predefined Function Block files provided by Omron. These files are intended to be used as an aid to simplify programs, containing standard functionality for programming PLCs and Omron FA component functions.
3-1. Benefits of the OMRON FB Library
The OMRON FB Library is a collection of function block examples that aim to improve the connectivity of the units for PLCs and FA components made by Omron. Here is a list of the benefits to be gained from using the OMRON FB Library: (1) No need to create ladder diagrams using basic functions of the PLC units and FA components More time can be spent on bespoke programs for the external devices, rather than creating basic ladder diagrams, as these are already available. (2) Easy to use A functioning program is achieved by loading the function block file to perform the target functionality, then by inputting an instance (function block call statement) to the ladder diagram program and setting addresses (parameters) for the inputs and outputs. (3) Testing of program operation is unnecessary Omron has tested the Function Block library. Debugging the programs for operating the unit and FA components for the PLCs is unnecessary for the user. (4) Easy to understand The function block has a clearly displayed name for its body and instances. A fixed name can be applied to the process. The instance (function block call statement) has input and output parameters. As the temporary relay and processing data is not displayed, the values of the inputs and outputs are more visible. Furthermore, as the modification of the parameters is localised, fine control during debugging etc. is easier. Finally, as the internal processing of the function block is not displayed when the instance is used in the ladder diagram, the ladder diagram program looks simpler to the end user. (5) Extendibility in the future Omron will not change the interface between the ladder diagram and the function blocks. Units will operate by replacing the function block to the corresponding FB for the new unit in the event of PLC and the FA component upgrades, for higher performance or enhancements, in the future.
Type FA components
Target components Temperature controller, Smart sensor, ID sensor, Vision sensor, 2 dimensions bar code reader, Wireless terminal CPU unit, Memory card, Special CPU IO unit (Ethernet, Controller Link, DeviceNet unit, Temperature control unit) Position control unit Inverter Servo motor driver
approx. 100
Motion control components
approx. 200
3-4-2. CX-One / CX-Programmer installation CD
OMRON FB Library is contained on the same install CD as CX-One / CX-Programmer. Installation can be selected during CX-One / CX-Programmer installation.
Install CD
3-4-3. Accessing OMRON FB Library files from Web server
The latest version OMRON FB Library files are provided by Omron on the Web server. New files will be added to support new or enhanced PLC units and FA components. The download service of the OMRON FB Library is provided as a menu of Omron Web in each country.
Web server The internet
The internet
Offline Operation
Explanation of Explanation of target Program target Program Opening a Opening a new project new project Import Import FB Library FB Library Creating a Creating a program program Program Check Program Check
1. Explanation of the target program 1. Explanation of the target program
This chapter describes how to use OMRON FB Library using the OMRON FB Part file Make ON Time/OFF Time Clock Pulse in BCD.
1-1. Application Specifications
The target application specifications are as follows :- Pulse is generated after PLC mode is changed torun or monitor mode. - Output the pulse to address 1.00. - On time of generated pulse is set at D100. - Off time of generated pulse is 2 seconds.
1-2. Specifications of the OMRON FB Part file
The OMRON FB Part file Make ON Time/OFF Time Clock Pulse in BCD has the following specifications:-
1-3. Input program
Create the following ladder program:-
[Reference] If created as a straightforward ladder diagram, the program would be as below:-
Explanation of Explanation of target Program target Program Opening a Opening a new project new project Import ImportImport Import FB Library FB Library FB Library FB Library Creating a Creating a program program Program Check Program Check
2. Opening a new project and setting the Device Type 2. Opening a new project and setting the Device Type
5. Program Creation
Confirm cursor position is at the upper left of Ladder Window to start programming.
5-1. Enter a Normally Open Contact
C Press the [C] key on the keyboard to open the [New Contact] dialog. Use the dropdownbox to select the P_On symbol.
ENT Deleting commands Move the cursor to the command and then press the DEL key or Move the cursor to the right cell of the command and press the BS key. P_On is a system defined symbol. Its state is always ON. 0 of the upper digit of an address is omitted when shown. [.] (period) is displayed between a channel number and a relay number.
5-2. Entering an Instance
F Press the [F] key on the keyboard to open the [New Function Block Invocation] dialog.
Enter text to create an FB instance name. [WorkInputTimingGenerator]
Applies a name for the specific Applies a name for the specific process in the diagram. process in the diagram.
Shows FB call statement WorkInputTimingGenerator.
5-3. Entering Parameters
Move the cursor to the left of input parameter.
Enter the address. [d100]
Choose an address for the input parameter OnTime.
Enter the remaining parameters in the same way.
Please add the following prefix for entering constants as parameters: # (Hexadecimal/BCD) Or & (Decimal)
ENT [Generated Pulse]
6. Program Error Check (Compile)
Before program transfer, check for errors using the program compile.
Errors and addresses are Errors and addresses are displayed in the Output Window. displayed in the Output Window.
Double-click on displayed errors, Double-click on displayed errors, and the Ladder Diagram cursor and the Ladder Diagram cursor will move to the corresponding will move to the corresponding error location, displaying the error error location, displaying the error rung in red. rung in red.
Modify the error. Modify the error.
Output Window automatically opens at program check. The cursor moves to an error location by pressing J or F4 key. Output Window closes by pressing the ESC key.
Online Operation Online Online to transfer to transfer Monitoring Monitoring Online Online Edit Edit
7. Going Online
CX-Programmer provides three methods of connecting, depending on usage.
The following messages are transferred between the Vision Sensor and the CPU Unit via the CPU Units RS-232C port.
Unit RS-232C port @MEASURE+CR @+1234567890,- 12345678+CR Vision Sensor
When the CPU Unit sends the message MEASURE+CR(0x13) from its RS-232C port and the Vision Sensor receives the message, the following data is sent as string data.
X-axis code
X-axis Position (10 digits)
Y-axis code
Y-axis Position (10 digits)
@ marker + or -
Carriage Return (0x13) Decimal text string with up to 10 digits (Padded with spaces on the left if there are fewer than 10 digits.)
3. Range of Programming in FB (ST)
The following range of processes are created in the FB. Set two words of data each for the X and Y coordinate, as the NC Units command values. Receive the workpieces present position (X and Y coordinates) from the Vision Sensor through serial communications. Analyze the data received from the Vision Sensor to get the workpieces present position (X and Y coordinate). Output the difference between the workpieces target position and present position as the NC Units command values.
4. FB (ST) Program
The following ST program satisfies the applications requirements.
Variable Table Variable type Name Internal bSending
Data type BOOL
Internal Internal Internal Internal Internal Internal Internal Internal Input Input Input Output Output ST Program
nSendStatus SndEnableCPUPort EndRecvCPUPort strXYPosition strXPos strYPos nLen nCommaPos bStartFlag nXTargetPos nYTargetPos nXDiff nYDiff
INT BOOL A392.05 BOOL A392.06 STRING(30) STRING(15) STRING(15) INT INT BOOL DINT DINT DINT DINT
Initial value Held Comment FALSE Sending flag Send status (1: Sending enabled, 2: Sending, 3 Send 0 completed) Built-in host link port send ready flag Built-in host link port receive completed flag String read from Vision Sensor X-axis present value temporary variable Y-axis present value temporary variable 0 Temporary variable for reception data analysis 0 Comma position for reception data analysis FALSE Send start flag 100 X-axis target value 100 Y-axis target value 0 X-axis command value 0 Y-axis command value
Open FB ladder editor. Open FB ladder editor.
Ladder Input Screen Ladder Input Screen
Move the mouse cursor to a function block icon , then double-click to open the function block ST editor.
Select the variables table and register variables in the function block. All variables of ActuatorControl FB of page 5-4 must be registered. Note: Order of variables must be the same as FB instance order. Note: Order of variables must be the same as FB instance order. To change order of variables, select a variable name then drag and drop it. To change order of variables, select a variable name then drag and drop it.
Select ladder input screen, then enter a ladder program. All variables of ActuatorControl FB of page 5-4 must be registered. Note: Although you can enter a circuit in the FB ladder editor similar to the main Note: Although you can enter a circuit in the FB ladder editor similar to the main ladder editor, entering of address in the FB is invalid. ladder editor, entering of address in the FB is invalid.
Note: To enter variable list in a line comment, you can select a variable from Note: To enter variable list in a line comment, you can select a variable from variables table then copy it. You can use it for more efficient input. variables table then copy it. You can use it for more efficient input.
5-4. Transferring Program
Connect to CX-Simulator online, transfer a program, then set PLC (simulator) to monitor mode. For how to connect online and transfer a For how to connect online and transfer a program, see page 2-10. program, see page 2-10.
5-5. Operation Check-1
Change current parameter value of FB call statement on the main ladder, then check the operation of ActuatorControl FB. Monitor the instance of ActuatorControl FB first.
Move the cursor to FB call statement, then double-click or click button.
FB ladder instance (under condition of address assigned) is monitored.
Display the main ladder and FB instance (FB ladder called by the main ladder) at the same time, then check the operation while changing current parameter value of FB call statement in the main ladder.
5-6. Operation Check-2
Enter following parameter values of FB call statement and check if expected output should be provided. In this example only (1) is shown, but all combination of conditions must be verified. (1) Initial State: Turn 0.03 ON. => 0.04 and 0.05 must be OFF. FB instance ladder monitor screen must be under state that corresponds to the value. (2) Actuator forward direction operation-1: Turn 0.00 ON => 0.04 must be turned ON. FB instance ladder monitor screen must be under state that corresponds to the value. (3) Actuator forward direction operation-2: Turn 0.03 OFF => 0.04 must be ON and 0.05 must be OFF. FB instance ladder monitor screen must be under state that corresponds to the value. (4) Actuator forward direction operation-3: Turn 0.02 ON => 0.04 must be OFF and 0.05 must be OFF. FB instance ladder monitor screen must be under state that corresponds to the value.
Click mouse left button Function Block definition will be deleted. Function Block definition will be deleted.
Memory allocation for Function Blocks
It is necessary to allocate required memory for each function block instances to execute Function Blocks. CX-Programmer allocates the memory automatically based on the following setting dialog information. ( PLC menu Function Block Memory Function Block Memory Allocation) There are 4 types of areas, Not retain, Retain, Timers, and Counters. Please change the settings if requires. Notice when changing the settings If you change the Not retain or Retain area, please consider the allocated memory areas for the special IO unit and CPU SIO unit. Special memory area for the Function Blocks CS1/CJ1-H/CJ1M CPUs (unit version: 3.0 or higher) have a special memory area which is extended hold (H) relay area. The address of the area is from H512 to H1535. CX-Programmer sets the area as a default. Please note that the area cannot be used for the operands of ladder command.
Useful Functions Command Operand Input Automatic Search and List Display
It is possible to automatically display a list of symbol names or IO comments when entering the operands of commands. When entering the operand for contact or output (or special instructions), enter a string, and the dropdown list is automatically updated to display in symbol names or IO Comments using the defined string. Selecting the item from the list defines the operand information. This is an efficient way of entering registered symbol information into the ladder. Example: Enter text Temperature to the edit field in the operand dialog.
Click or push [F4] key; all symbols / address having IO comment containing the text temperature are listed. See below:-
For instance, select temp_alarm01, W1.00, Temperature error of upper case of MachineA, from the list. The operand is set to be using symbol alarm01.
FB Protect Function
Preventative measures can be implemented by setting the password in the function block definition allocated on project file, protection corresponding to the use, program know-how leaks, improper changes, and alterations. Prohibit writing and display By setting the protection classification Prohibit writing and display, the corresponding function block definition contents cannot be displayed. By setting the password protection on the function block definition, program know-how leaks can be prevented. Prohibit writing only By setting the protection classification Prohibit writing only, the corresponding function block definition contents cannot be written or changed. By setting the password protection on the function block definition, improper program changes or modifications can be prevented.
Offline Functions
Description Description of Program of Program Creating an Creating an ST Task ST Task Registering Registering Symbols Symbols Entering the Entering the ST Program ST Program
Chapter 6
Advanced: Creating a Task Program Using Structured Text
Task programs can be created using the structured text (ST) language with CX-Programmer. A wider choice of programming languages is now supported to enable optimizing the language to the control object. You can select from SFC, ladder diagrams, or structured text. Structured text was standardized under IEC 61131-3 (JIS B3503) as a high-level textual programming language for industrial control. Starting with CX-Programmer version 7.2, structured text can be used in task programs, in addition to the previous support for use in function blocks.
Note: Refer to page 4-1 for information on using structured text in function blocks.
Controls using IF-THEN-ELSE or FOR/WHILE loops, or numeric calculations using SIN, COS, and other functions can be easily achieved using actual addresses. Structured text can thus be used in tasks to easily program numeric calculations using actual addresses, while structured text can be used in function blocks to enable easily reusing programming.
Note: A task is the smallest programming unit that can be executed in a SYSMAC CS1/CJ1-series CPU Unit. With controls separated into tasks, execution of non-active tasks is stopped to enable shortening the cycle time.
1. Description of Program
The procedure used to create a program that finds average values is described as an example. The diameter of a workpiece is measured in three locations and then the average diameter is found. If the average value is within the allowable range, a green lamp is lit. If the average value is outside the allowable range, a red lamp is lit. Here, an ST program is created to average the workpiece diameters and determine if the average value is within the allowable range.
Measure
Criterion
Optical Line Sensor
PLC with Analog Input Unit
Out of In range range
Margin
All other programming is done with ladder diagrams.
(1) Initializing Measurement Values and Setting Margin for Workpiece Diameter (2) Setting Measurement Values (3) Displaying Measurement Values and Average Value on Seven-segment Display
2. Creating an ST Task
Creating an ST Task
Right-click the Programs Icon and select Insert Program Structured Text.
A new ST program will be created. Change the name of the ST Change the name of the ST program and assigned it to program and assigned it to a task. a task. Right-click the icon for the new program that was created and select Properties. A dialog box will be displayed.
Enter the name of the program: Average_Value_Calculation Also, select the task type from the pull-down menu: Cyclic Task 01
Appendix. Examples of ST (Structured Text)
IF Statement Examples IF expression1 THEN statement-list1 [ ELSIF expression2 THEN statement-list2 ] [ ELSE statement-list3 ] END_IF; The expression1 and expression2 expressions must each evaluate to a boolean value. The statement-list is a list of several simple statements e.g. a:=a+1; b:=3+c; etc. The IF keyword executes statement-list1 if expression1 is true; if ELSIF is present and expression1 is false and expression2 is true, it executes statement-list2; if ELSE is present and expression1 or expression2 is false, it executes statement-list3. After executing statement-list1, statement-list2 or statement-list3, control passes to the next statement after the END_IF. There can be several ELSIF statements within an IF Statement, but only one ELSE statement. IF statements can be nested within other IF statements (Refer to example 5). Example 1 IF a > 0 THEN b := 0; END_IF;
In this example, if the variable "a" is greater than zero, then the variable "b" will be assigned the value of zero. If "a" is not greater than zero, then no action will be performed upon the variable "b", and control will pass to the program steps following the END_IF clause. In this example, if the variable "a" is true, then the variable "b" will be assigned the value of zero. If "a" is false, then no action will be performed upon the variable "b", and control will pass to the program steps following the END_IF clause. In this example, if the variable "a" is greater than zero, then the variable "b" will be assigned the value of true (1), and control will be passed to the program steps following the END_IF clause. If "a" is not greater than zero, then no action is performed upon the variable "b" and control is passed to the statement following the ELSE clause, and "b" will be assigned the value of false (0). Control is then passed to the program steps following the END_IF clause. In this example, if the variable "a" is less than 10, then the variable "b" will be assigned the value of true (1), and the variable "c" will be assigned the value of 100. Control is then passed to the program steps following the END_IF clause. If the variable "a" is equal to or greater than 10 then control is passed to the ELSE_IF clause, and if the variable "a" is greater than 20, variable "b" will be assigned the value of true (1), and the variable "c" will be assigned the value of 200. Control is then passed to the program steps following the END_IF clause. If the variable "a" is between the values of 10 and 20 (i.e. both of the previous conditions IF and ELSE_IF were false) then control is passed to the ELSE clause, and the variable "b" will be assigned the value of false (0), and the variable "c" will be assigned the value of 300. Control is then passed to the program steps following the END_IF clause.
Example 2 IF a THEN b := 0; END_IF; Example 3 IF a > 0 THEN b := TRUE; ELSE b := FALSE; END_IF;
Example 4 IF a < 10 THEN b := TRUE; c := 100; ELSIF a > 20 THEN b := TRUE; c := 200; ELSE b := FALSE; c := 300; END_IF;
IF Statement Examples Example 5 IF a THEN b := TRUE; ELSE IF c>0 THEN d := 0; ELSE d := 100; END_IF; d := 400; END_IF; In this example (an example of a nested IF. THEN statement), if the variable "a" is true (1), then the variable "b" will be assigned the value of true (1), and control will be passed to the program steps following the associated END_IF clause. If "a" is false (0), then no action is performed upon the variable "b" and control is passed to the statement following the ELSE clause (in this example, another IF. THEN statement, which is executed as described in Example 3, although it should be noted that any of the supported IEC61131-3 statements may be used). After the described IF. THEN statement is executed, the variable "d" will be assigned the value of 400. Control is then passed to the program steps following the END_IF clause. WHILE Statement Examples WHILE expression DO statement-list; END_WHILE; The WHILE expression must evaluate to a boolean value. The statement-list is a list of several simple statements. The WHILE keyword repeatedly executes the statement-list while the expression is true. When the expression becomes false, control passes to the next statement after the END_WHILE. Example 1 WHILE a < 10 DO a := a + 1; b := b * 2.0; END_WHILE;
In this example, the WHILE expression will be evaluated and if true (i.e. variable "a" is less than 10) then the statement-list (a:=a+1; and b:=b*2.0;) will be executed. After execution of the statement-list, control will pass back to the start of the WHILE expression. This process is repeated while variable "a" is less than 10. When the variable "a" is greater than or equal to 10, then the statement-list will not be executed and control will pass to the program steps following the END_WHILE clause. In this example, the WHILE expression will be evaluated and if true (i.e. variable "a" is true), then the statement-list (b:=b+1; and the IF. THEN statement) will be executed. After execution of the statement-list, control will pass back to the start of the WHILE expression. This process is repeated while variable "a" is true. When variable "a" is false, the statement-list will not be executed and control will pass to the program steps following the END_WHILE clause.
Example 2 WHILE a DO b := b + 1; IF b > 10 THEN a:= FALSE; END_IF; END_WHILE; Example 3 WHILE (a + 1) >= (b * 2) DO a := a + 1; b := b / c; END_WHILE;
Example 2 FOR a := 1 TO 10 BY 2 DO b := b + a; c := c + 1.0; END_FOR;
Example 3 FOR a := 10 TO 1 BY -1 DO b := b + a; c := c + 1.0; END_FOR;
Example 4 FOR a := b + 1 TO c + 2 DO d := d + a; e := e + 1; END_FOR;
FOR Statement Examples Example 5 FOR a := b + c TO d - e BY f DO g := g + a; h := h + 1.0; END_FOR;
In this example, the FOR expression will initially be evaluated and variable "a" will be initialized with the value of variable "b" plus variable "c". The 'TO' value of the FOR statement will be evaluated to the value of variable "d" minus variable "e". The value of variable "a" will then be compared with the 'TO' value. If the value of variable "f" is positive and the value of variable "a" is less than or equal to the 'TO' value then the statement-list (i.e. g:=g+a; and h:=h+1.0;) will be executed. If the value variable "f" is negative and the value of variable "a" is greater than or equal to the 'TO' value then the statement-list (i.e. g:=g+a; and h:=h+1.0;) will also be executed. Variable "a" will then be incremented or decremented by the value of variable "f" and control will pass back to the start of the FOR statement. Variable "a" will again be compared with the 'TO' value and the statement-list executed if appropriate (as described above). This process is repeated until the value of variable "a" is greater than the 'TO' value (if the value of variable "f" is positive) or until the value of variable "a" is less than the 'TO' value (if the value of variable "f" is negative), and then control will pass to the program steps following the END_FOR clause.
CASE Statement Examples CASE expression OF case label1 [ , case label2 ] [. case label3 ] : statement-list1; [ ELSE statement-list2 ] END_CASE; The CASE expression must evaluate to an integer value. The statement-list is a list of several simple statements. The case labels must be valid literal integer values e.g. 0, 1, +100, -2 etc. The CASE keyword evaluates the expression and executes the relevant statement-list associated with a case label whose value matches the initial expression. Control then passes to the next statement after the END_CASE. If no match occurs within the previous case labels and an ELSE command is present the statement-list associated with the ELSE keyword is executed. If the ELSE keyword is not present, control passes to the next statement after the END_CASE. There can be several different case labels statements (and associated statement-list) within a CASE statement but only one ELSE statement. The , operator is used to list multiple case labels associated with the same statement-list. The. operator denotes a range case label. If the CASE expression is within that range then the associated statement-list is executed, e.g. case label of 1.10 : a:=a+1; would execute the a:=a+1 if the CASE expression is greater or equal to 1 and less than 10. Example 1 CASE a OF 2 : b := 1; 5 : c := 1.0; END_CASE; In this example, the CASE statement will be evaluated and then compared with each of the CASE statement comparison values (i.e. 2 and 5 in this example). If the value of variable "a" is 2 then that statement-list will be executed (i.e. b:=1;). Control will then pass to the program steps following the END_CASE clause. If the value of variable "a" is 5 then that statement-list will be executed (i.e. c:=1.0;). Control will then pass to the program steps following the END_CASE clause. If the value of variable "a" does not match any of the CASE statement comparison values then control will pass to the program steps following the END_CASE clause. Example 2 CASE a + 2 OF -2 : b := 1; 5 : c := 1.0; ELSE d := 1.0; END_CASE; In this example, the CASE statement will be evaluated and then compared with each of the CASE statement comparison values (i.e. -2 and 5 in this example). If the value of variable "a" plus 2 is -2 then that statement-list will be executed (i.e. b:=1;). Control will then pass to the program steps following the END_CASE clause. If the value of variable "a" plus 2 is 5 then that statement-list will be executed (i.e. c:=1.0;). Control will then pass to the program steps following the END_CASE clause. If the value of variable "a" plus 2 is not -2 or 5, then the statement-list in the ELSE condition (i.e. d:=1.0;) will be executed. Control will then pass to the program steps following the END_CASE clause.
If the first or second IF statement is true (i.e. "a_1*b" is larger than 100, or "a_2*(b+10)" is larger than 100), the statement (c:=TRUE; and RETURN;) is executed. The execution of the RETURN keyword breaks off the execution of the inside of the Function Block and the control returns to the program which calls the Function Block.
In this example variable "c" is an array of 2 elements and has a BOOL data type. When executed, the first element in the array will be set to false and the second element will be set to false (i.e. 2 is greater than 3 evaluates to false).
Array Examples Example 3 d[9]:= 2.0; In this example, variable "d" is an array of 10 elements and has a REAL data type. When executed, the last element in the array (the 10th element) will be set to 2.0.
Example 4 a[1] := b[2]; In this example, variable "a" and variable "b" are arrays of the same data type. When executed, the value of the second element in variable "a" will be set to the value of the third element in variable "b".
Example 5 a[b] := 1; a[b+1] := 1; a[(b+c) *( d-e)] := 1;
Note: As the integer variables and expressions are being used to access the array, the actual index value will not be known until run time, so the user must ensure that the index is within the valid range of the array a. For example, a safer way would be to check the array index is valid: f := (b+c) *( d-e); IF (f >0) AND (f<5) THEN a[f] := 1; END_IF; Where variable "f" has an INT data type. Example 6 a[b[1]]:= c; a[b[2] + 3]:= c;
This example shows how an array element expression can be used within another array element expression.
Numerical Functions and Arithmetic Functions
Function ABS(argument) Name Argument data Return value type type Operation Example a:=ABS(b)
Absolute value INT, DINT, LINT, UINT, UDINT, ULINT, REAL, LREAL Natural logarithm Common logarithm Natural exponential Sine Cosine Tangent Arc sine
| argument | NT, DINT, LINT, UINT, UDINT, ULINT, REAL, LREAL
SQRT(argument) Square root LN(argument) LOG(argument) EXP(argument) SIN(argument) COS(argument) TAN(argument) ASIN(argument)
REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL SIN(argument)
a:=SQRT(b) a:=LN(b) a:=LOG(b) a:=EXP(b) a:=SIN(b)
REAL, LREAL REAL, LREAL COS(argument) a:=COS(b) REAL, LREAL REAL, LREAL TAN(argument) a:=TAN(b) REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL REAL, LREAL Base: REAL, LREAL Exponent: INT, DINT, LINT, UINT, UDINT, ULINT REAL, LREAL a:=ASIN(b) a:=ACOS(b) a:=ATAN(b) a:=EXPT(b, c)
Argument data type
Return value type
Operation
Example
WRITE_TEXT(<write string>, <filename>, <delimiter>, <parameter>) TXD_CPU(<send string>) TXD_SCB(<send string>, <serial port number>) TXD_SCU(<send string>, <SCU unit number>, <serial port number>, <logical port number>)
Create text file
Write string: STRING Filename: STRING Delimiter: STRING Parameter: INT, UINT, WORD Send string: STRING
Creates a text file.
WRITE_TEXT(a, b, c, d)
Send string (CPU serial port) Send string (SCB serial port) Send string (SCU serial port)
Sends a string (CPUs serial port). Sends a string (SCBs serial port). Sends a string (SCUs serial port)
TXD_CPU(a)
Send string: STRING Serial port number: INT, UINT, WORD Send string: STRING SCU unit number: INT, UINT, WORD Serial port number: INT, UINT, WORD Logical port number: INT, UINT, WORD Receive string: INT, UINT, WORD Receive string: INT, UINT, WORD Serial port number: INT, UINT, WORD Receive string: INT, UINT, WORD SCU unit number: INT, UINT, WORD Serial port number: INT, UINT, WORD Logical port number: INT, UINT, WORD REAL, LREAL
TXD_SCB(a, b)
TXD_SCU(a, b, c, d)
RXD_CPU(<receive string>) RXD_SCB(<receive string>, <serial port number>) RXD_SCU (<receive string>, <SCU unit number>, <serial port number>, <logical port number>)
Receive string (CPU serial port) Receive string (SCB serial port) Receive string (SCU serial port)
Receives a string (CPUs serial port). Receives a string (SCBs serial port). Receives a string (SCBs serial port).
a:= RXD_CPU(b)
a:= RXD_SCB(b, c)
a:= RXD_SCU(b, c, d, e)
DEG_TO_RAD(argume nt) RAD_TO_DEG(argume nt)
Convert degrees to radians Convert radians to degrees
REAL LREAL REAL LREAL
Converts degrees to radians. Converts radians to degrees.
a:= DEG_TO_RAD a:= RAD_TO_DEG
REAL, LREAL
Terms and Conditions of Sale
1. Offer; Acceptance. These terms and conditions (these "Terms") are deemed part of all quotes, agreements, purchase orders, acknowledgments, price lists, catalogs, manuals, brochures and other documents, whether electronic or in writing, relating to the sale of products or services (collectively, the "Products") by Omron Electronics LLC and its subsidiary companies (Omron). Omron objects to any terms or conditions proposed in Buyers purchase order or other documents which are inconsistent with, or in addition to, these Terms. 2. Prices; Payment Terms. All prices stated are current, subject to change without notice by Omron. Omron reserves the right to increase or decrease prices on any unshipped portions of outstanding orders. Payments for Products are due net 30 days unless otherwise stated in the invoice. 3. Discounts. Cash discounts, if any, will apply only on the net amount of invoices sent to Buyer after deducting transportation charges, taxes and duties, and will be allowed only if (i) the invoice is paid according to Omrons payment terms and (ii) Buyer has no past due amounts. 4. Interest. Omron, at its option, may charge Buyer 1-1/2% interest per month or the maximum legal rate, whichever is less, on any balance not paid within the stated terms. 5. Orders. Omron will accept no order less than $200 net billing. 6. Governmental Approvals. Buyer shall be responsible for, and shall bear all costs involved in, obtaining any government approvals required for the importation or sale of the Products. 7. Taxes. All taxes, duties and other governmental charges (other than general real property and income taxes), including any interest or penalties thereon, imposed directly or indirectly on Omron or required to be collected directly or indirectly by Omron for the manufacture, production, sale, delivery, importation, consumption or use of the Products sold hereunder (including customs duties and sales, excise, use, turnover and license taxes) shall be charged to and remitted by Buyer to Omron. 8. Financial. If the financial position of Buyer at any time becomes unsatisfactory to Omron, Omron reserves the right to stop shipments or require satisfactory security or payment in advance. If Buyer fails to make payment or otherwise comply with these Terms or any related agreement, Omron may (without liability and in addition to other remedies) cancel any unshipped portion of Products sold hereunder and stop any Products in transit until Buyer pays all amounts, including amounts payable hereunder, whether or not then due, which are owing to it by Buyer. Buyer shall in any event remain liable for all unpaid accounts. 9. Cancellation; Etc. Orders are not subject to rescheduling or cancellation unless Buyer indemnifies Omron against all related costs or expenses. 10. Force Majeure. Omron shall not be liable for any delay or failure in delivery resulting from causes beyond its control, including earthquakes, fires, floods, strikes or other labor disputes, shortage of labor or materials, accidents to machinery, acts of sabotage, riots, delay in or lack of transportation or the requirements of any government authority. 11. Shipping; Delivery. Unless otherwise expressly agreed in writing by Omron: a. Shipments shall be by a carrier selected by Omron; Omron will not drop ship except in break down situations. b. Such carrier shall act as the agent of Buyer and delivery to such carrier shall constitute delivery to Buyer; c. All sales and shipments of Products shall be FOB shipping point (unless otherwise stated in writing by Omron), at which point title and risk of loss shall pass from Omron to Buyer; provided that Omron shall retain a security interest in the Products until the full purchase price is paid; d. Delivery and shipping dates are estimates only; and e. Omron will package Products as it deems proper for protection against normal handling and extra charges apply to special conditions. 12. Claims. Any claim by Buyer against Omron for shortage or damage to the Products occurring before delivery to the carrier must be presented in writing to Omron within 30 days of receipt of shipment and include the original transportation bill signed by the carrier noting that the carrier received the Products from Omron in the condition claimed. 13. Warranties. (a) Exclusive Warranty. Omrons exclusive warranty is that the Products will be free from defects in materials and workmanship for a period of twelve months from the date of sale by Omron (or such other period expressed in writing by Omron). Omron disclaims all other warranties, express or implied. (b) Limitations. OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE. Omron further disclaims all warranties and responsibility of any type for claims or expenses based on infringement by the Products or otherwise of any intellectual property right. (c) Buyer Remedy. Omrons sole obligation hereunder shall be, at Omrons election, to (i) replace (in the form originally shipped with Buyer responsible for labor charges for removal or replacement thereof) the non-complying Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer an amount equal to the purchase price of the non-complying Product; provided that in no event shall Omron be responsible for warranty, repair, indemnity or any other claims or expenses regarding the Products unless Omrons analysis confirms that the Products were properly handled, stored, installed and maintained and not subject to contamination, abuse, misuse or inappropriate modification. Return of any Products by Buyer must be approved in writing by Omron before shipment. Omron Companies shall not be liable for the suitability or unsuitability or the results from the use of Products in combination with any electrical or electronic components, circuits, system assemblies or any other materials or substances or environments. Any advice, recommendations or information given orally or in writing, are not to be construed as an amendment or addition to the above warranty. See http://www.omron247.com or contact your Omron representative for published information. Limitation on Liability; Etc. OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT, WARRANTY, NEGLIGENCE OR STRICT LIABILITY. Further, in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted. Indemnities. Buyer shall indemnify and hold harmless Omron Companies and their employees from and against all liabilities, losses, claims, costs and expenses (including attorney's fees and expenses) related to any claim, investigation, litigation or proceeding (whether or not Omron is a party) which arises or is alleged to arise from Buyer's acts or omissions under these Terms or in any way with respect to the Products. Without limiting the foregoing, Buyer (at its own expense) shall indemnify and hold harmless Omron and defend or settle any action brought against such Companies to the extent based on a claim that any Product made to Buyer specifications infringed intellectual property rights of another party. Property; Confidentiality. Any intellectual property in the Products is the exclusive property of Omron Companies and Buyer shall not attempt to duplicate it in any way without the written permission of Omron. Notwithstanding any charges to Buyer for engineering or tooling, all engineering and tooling shall remain the exclusive property of Omron. All information and materials supplied by Omron to Buyer relating to the Products are confidential and proprietary, and Buyer shall limit distribution thereof to its trusted employees and strictly prevent disclosure to any third party. Export Controls. Buyer shall comply with all applicable laws, regulations and licenses regarding (i) export of products or information; (iii) sale of products to forbidden or other proscribed persons; and (ii) disclosure to non-citizens of regulated technology or information. Miscellaneous. (a) Waiver. No failure or delay by Omron in exercising any right and no course of dealing between Buyer and Omron shall operate as a waiver of rights by Omron. (b) Assignment. Buyer may not assign its rights hereunder without Omron's written consent. (c) Law. These Terms are governed by the law of the jurisdiction of the home office of the Omron company from which Buyer is purchasing the Products (without regard to conflict of law principles). (d) Amendment. These Terms constitute the entire agreement between Buyer and Omron relating to the Products, and no provision may be changed or waived unless in writing signed by the parties. (e) Severability. If any provision hereof is rendered ineffective or invalid, such provision shall not invalidate any other provision. (f) Setoff. Buyer shall have no right to set off any amounts against the amount owing in respect of this invoice. (g) Definitions. As used herein, including means including without limitation; and Omron Companies (or similar words) mean Omron Corporation and any direct or indirect subsidiary or affiliate thereof.
OMRON ELECTRONICS LLC
1 Commerce Drive Schaumburg, IL 60173 847.843.7900
For US technical support or other inquiries: 800.556.6766
OMRON CANADA, INC.
885 Milner Avenue Toronto, Ontario M1B 5V8 416.286.6465
OMRON ON-LINE Global - www.omron.com USA - www.omron247.com Canada - www.omron.ca Brazil - www.omron.com.br Latin America - www.espanol.omron.com
UNITED STATES To locate a Regional Sales Office, local Distributor or to obtain product information, call: 847.843.7900 MEXICO SALES OFFICES Mexico, D.F. Ciudad Jurez Monterrey, N.L Quertaro Sao Paulo Cono Sur 555.660.3144 656.623.7083 818.377.4281 442.135.4510 55.11.2101.6310 54.114.787.1129 mela@omron.com
R144-E1-OMRON ELECTRONICS LLC Printed in the U.S.A. Specifications subject to change without notice.
BRAZIL SALES OFFICE ARGENTINA SALES OFFICE OTHER LATIN AMERICAN SALES
Tags
DMC-FZ18 MS-74ML UE32C6620UW Traffic GTP-750 EL-506V EX-M2 Treo 650 VP-D371WI AL1703 R-771 97630 UP-A1 FAX3900 Abit AB9 S18AWN-n58 SA3285 Evolution PRO 4040 24 R PB760 KX-P2624 TU930 System HR-V510E EPL-N2750 Powerdirector 8 AR6L 85 Dwl-G510 SLV-SE700d2 RD-6503 Command III AP2400R-e1 DCB-9401R EC160 Gprs779 Iphoto 6 CT-S530 R-730A BC895XLT SPC220NC MDT402S SRW224P DV 3000 Edition Travelmate 2000 Rpxp6GT RX-V390 Multivac A200 SRF-M32 SGH-D600 GA-P55-usb3 Firewire Solo 66 S Traffic PRO PT-LB20SU RMS2000 PL Plus Eu R08 Futura 4020 KX-TEM824 Echohead YSP-800 IC-PCR2500 8600F Pnts 30-4 EOS-1DS Server 3000 XL Golf MK3 960HD 28PW6518 SC-EN17 CL21F60S ASF65020 AMP CAN Warranty Edition Sunfire 1994 DR7400NP1M System Master Touch Magicstomp GC900 Cybertron PDF Anycall PSR-110 Plus-FB915bu- SAT-A55 120SW PDC-700 NEC VT37 Coolpix 8400 500 Trio HB 60 TEW-430APB Review Freeagent Desk Automatic DSC-W350 B
manuel d'instructions, Guide de l'utilisateur | Manual de instrucciones, Instrucciones de uso | Bedienungsanleitung, Bedienungsanleitung | Manual de Instruções, guia do usuário | инструкция | návod na použitie, Užívateľská príručka, návod k použití | bruksanvisningen | instrukcja, podręcznik użytkownika | kullanım kılavuzu, Kullanım | kézikönyv, használati útmutató | manuale di istruzioni, istruzioni d'uso | handleiding, gebruikershandleiding
Sitemap
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101



