EasyManuals Logo

Allen-Bradley MicroLogix 1100 Instruction Set Reference Manual

Allen-Bradley MicroLogix 1100
616 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 #577 background imageLoading...
Page #577 background image
Publication 1763-RM001C-EN-P - October 2009
How to Use 40kHz PTO/PWM of MicroLogix 1100 Series B Controller 577
DIV/SCP Instruction
The operands of DIV and SCP instructions work as signed value, but JF,
OF, OFS of PTO/PWM are unsigned 16-bit variable at MicroLogix 1100
Series B controller. Therefore, these instructions could cause undesired
results when JF, OF and OFS of PTO/PWM values are greater than 32767.
For example, assume the PWM:0.OF value is 40000 (9C40h) and a user
wants to divide it by 2. The expected result is 20000, but the actual return
value is -12768 because DIV instruction recognize 9C40h as -25536.
To solve this issue, JF, OF, OFS of PTO/PWM type should be changed to
Long Type (32-bit) by CPW instruction before the execution of these
instructions as shown below.
NEG/ABS Instruction
The operands of NEG and ABS instructions work as signed value, but JF,
OF, OFS of PTO/PWM are unsigned 16-bit variable at MicroLogix 1100
Series B. Therefore, these instructions could cause undesired results when
JF, OF and OFS of PTO/PWM values are greater than 32767. If PTO:0.JF is
40000, the expected NEG result is -40000 and the expected ABS result is
40000. However, the actual results are 25536 both because both NEG and
ABS instruction recognize 9C40h as -25536.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley MicroLogix 1100 and is the answer not in the manual?

Allen-Bradley MicroLogix 1100 Specifications

General IconGeneral
Processor32-bit
Programming SoftwareRSLogix 500
MountingDIN rail or panel mount
Power Supply24V DC
TypeCompact PLC
Digital Inputs12
Digital Outputs8
Analog Inputs4 (depending on model)
Analog OutputsOptional with expansion module
Programming LanguageLadder Logic
Operating Temperature0 to 55 °C (32 to 131 °F)
SeriesMicroLogix

Related product manuals