11 - 422 11 - 422
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
Specifying high impedance control
Control table format definition
Element position
Item
Description
%(0)
Processing code
Specify the processing code.
Processing Code 48
%(1)
Setting
Specify whether or not to set the high
impedance control.
• This processing code is used to set whether or not the high impedance control is
used when the RS-422/485(CH3) and other stations are connected in a 1 : n
configuration.
• Specify 48 for the processing code.
• Specify whether or not the high impedance control is used in the setting.
0 • • • High impedance control disabled
1 • • • High impedance control enabled
• The default value of the setting is 0 (high impedance control disabled).
• For a transmission station to send data when the communication module and
other stations are connected in a 1 : n configuration and the high impedance
control is enabled for the communication channel, the transmission station
should cancel the high impedance before sending the data. The impedance
should then be set high again after sending the data. Stations other than the
station sending data should be in the high impedance status.
At this point, the communication module sends up to 2 bytes of data between
the canceling of the high impedance control and the start of transmission, as
well as between the end of data transmission and setting the impedance high
again. If another station wants to send data thereafter, it must not start its
transmission until after the station that was previously sending data finishes
transmission of these 2 bytes of data.
High impedance status
High impedance status
Maximum
2-byte data
Data
Maximum
2-byte data
Program Example
100 ' This program sets the high impedance control
110 DIM TBL1%(10),TBL2%(10)
:
' Defines arrays
120 CH%=4
:
' Selects channel 4
130 TBL1%(0)=4800
140 TBL1%(1)=&H107
150 TBL1%(2)=&H1
160 ZOPEN #CH%,TBL1%( )
:
' Opens the communication channel
170 TBL2%(0)=48
:
' Specifies to set the high impedance
control
180 TBL2%(1)=1
:
' Enables the high impedance control
190 ZCNTL #CH%,0,TBL2%( )
:
' Executes
200 ZCLOSE #CH%
:
' Closes the communication channel
210 END
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...