GE VersaMax IC200PWR001 User Manual page 467

Table of Contents

Advertisement

Mixed Module, 24 V DC Positive Logic Input 20 Points / Output 12 Point /
(4) High-speed Counter, PWM, or Pulse Train Configurable Points
Using the COMREQ Function to Send Data Commands
The VersaMax PLC CPU can use the COMREQ function to send Data
Commands to the High Speed Counter module. These commands are all 6
bytes in length. The command data must be placed in the correct order (in a
command block) in CPU memory before the command is executed. Program
logic should be set up to assure that the command is sent to the module once,
not repeatedly. This function is effective only on counters that are enabled.
Command Block
The format for Data Commands is as follows:
The command block used to send Data Commands is composed of 10 words
as follows. All values are hexadecimal unless otherwise indicated. Note that if
the command block is not set up correctly, unexpected operation may occur.
The command block can be placed in any word-oriented area of memory that is
not reserved.
Location
%R0001
%R0002
%R0003
%R0004
%R0005
%R0006
%R0007
%R0008
%R0009
%R0010
GFK-1504N
Chapter 13 Mixed Discrete/High-Speed Counter Module
MSB
LSB
0n
cc
command word
dd
dd
data word (LSW)
data word (MSW)
dd
dd
Data
0004
Should be 0004
0000
Reserved (must be zero)
nnnn
Status Data type (0008 = R, 000A=AI, 000C=AQ,
0010=I, 0012=Q)
nnnn
Start location of COMREQ Status word
0000
Reserved (must be zero)
0000
Reserved (must be zero)
0003
HSC application request (always 3)
nnnn
Command word
nnnn
LS data word
nnnn
MS data word
IC200MDD841
where: n=counter 1-4
cc=subcommand code
dd=data type
Description
13
13-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents