Cos - Cosine - Allen-Bradley MicroLogix 1400 Instruction Manual

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
214
Math Instructions

COS - Cosine

ABS
COS
Cosine
Source
N7:0
0<
Dest
N7:1
0<
COS Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 92.
Data Files
Parameter
Source
Destination •
(1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2) The Data Log Status file can only be used for the following math instructions: ADD, SUB, MUL, DIV, NEG, and SCP.
(3) See Important note about indirect addressing.
Publication 1766-RM001A-EN-P - October 2008
Instruction Type: output
Execution Time for the COS Instruction
Controller
Data Size
MicroLogix 1400
word
long word
The COS instruction places the sine of the Source (in radians) in the
Destination.
Enter the following parameters when programming this instruction:
• Source is the address to compute the cosine.
• Destination is the address to store the cosine of the Source.
Address Levels for the operands involved in the COS can be ALL word,
ALL double word, ALL float, or a combination. These operands shall
undergo a conversion to float. The calculation of the source (in float) is
then performed, and the result is then cast to the data type of Destination.
Function Files
You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
IMPORTANT
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
When Rung Is:
True
False
112.7110 µs
0.7686 µs
19.8070 µs
0.7694 µs
(1)
Address Mode
(3)
Address Level

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents