Program Examples - Mitsubishi Electric NZ2GN2S-D41P01 User Manual

Cc-link ie tsn fpga module
Table of Contents

Advertisement

14.8

Program Examples

This section describes program examples for using the functions of the sample circuit.
Devices to be used
■Common device
Device
SB0049
SW00B0.0
N0
M0
X100A
W1000
D10
X20
X21
Y100A
X1000
X100B
Y1000
■Devices to be used for the inversion output function
None
■Devices to be used in the pulse count function
Device
X22
X23
D20
D21
D22
D23
W1043
W1044
W1118
W1119
W111A
■Devices to be used for the A/D conversion function
Device
D30
W101F
■Devices to be used for the D/A conversion function
Device
X24
D40
W1150
W1156
Description
Data link status of the own station (master station)
Data link status of each station (station number 1)
Nesting (station number 1)
Communication ready flag (station number 1)
Error flag
Latest error code
Storage variable for the latest error code
FPGA control start/stop command
Error clear command
Error clear request flag
FPGA controlling flag
Remote READY
FPGA control start request
Description
Preset data setting command
Preset data write command
Counter value storage register (lower)
Counter value storage register (upper)
Preset data setting value storage register (lower)
Preset data setting value storage register (upper)
Counter control part 32-bit ring counter (2-phase multiple of 4) counter value (lower side) (B0)
Counter control part 32-bit ring counter (2-phase multiple of 4) counter value (upper side) (B0)
32-bit ring counter (2-phase multiple of 4) preset instruction (B0)
32-bit ring counter (2-phase multiple of 4) preset data (lower side) (B0)
32-bit ring counter (2-phase multiple of 4) preset data (upper side) (B0)
Description
A/D conversion value CH0 (E0) storage register
Analog control A/D conversion value CH0 (E0)
Description
Analog output enable command
D/A conversion value CH0(E0) storage register
Analog output part D/A conversion value CH0 (E0)
Analog output part D/A conversion value enable (usr_wreg_1C6)
14 SAMPLE CIRCUIT IN CC-LINK IE TSN COMMUNICATION MODE
421
14.8 Program Examples
14

Advertisement

Table of Contents
loading

Table of Contents