SubmarineCraft Forum

 Forgot password?
 Register
Search
Hot search: 活动 交友 discuz
View: 363|Reply: 2

【Advanced 进阶教程】4.Fundamentals of Circuit.电路基础

[Copy link]

34

Threads

36

Posts

161

Credits

Admin

Rank: 9Rank: 9Rank: 9

Credits
161
Post time 2019-2-9 07:46:15 | Show all posts |Read mode
The circuit system used in the game can control many blocks automatically. Next, we will learn about the circuit system in the game one by one.
The whole circuit system operates around an attribute一一 voltage
In games, higher than 500V is called High voltage, whereas lower than 500V is called Low voltage.

游戏中使用电路系统可以对许多方块进行自动化控制,下面我们将一一学习游戏中的电路系统。
整个电路系统都围绕着一个属性进行操作——电压
在游戏中,高于500V称为高电压,反之,低于500V称为低电压。

1. Voltage Generating Block-Button

1、产生电压的方块——按钮



When the button is pressed (activated), a 1000V voltage signal will be sent around.
When the button is not pressed (inactive), it will also send a 300 V voltage signal around.
Therefore, when the button is pressed, the button will output high voltage, and vice versa, low voltage.
当按钮被按下(激活)时,会向四周发出1000V的电压信号。
当按钮未被按下(非激活)时,也会向四周发出300V的电压信号。
所以,当按钮被按下时,按钮会输出高电压,反之输出低电压。

2. Viewing Voltage Block-Numberical display
2、查看电压的方块——数字显示屏


The numberical display can convert the voltage signal into visible numbers.
Since a digital display screen can only display one digit, it is necessary to set its display digit.
数字显示屏可以将电压信号转换为可视的数字。
由于一个数字显示屏只能显示1位数,所以需要设置其显示位数。


As shown in the figure above, the general voltage signal is not more than 10,000, so only four display screens are enough. Then the display bits are set to 0, 1, 2 and 3 from right to left.
There is a quick way to set the display number. If you put the display from right to left, the game will automatically adjust the display number.
When The numberical display is placed next to the button , it will display the output voltage of the button.
如上图所示,一般电压信号不大于10000,所以只需摆4个显示屏就足够了。然后从右往左依次设置显示位数为0、1、2、3.
设置显示位数有个快捷的方法,如果你是从右往左摆放显示屏的话,游戏会自动调整显示位数。
数字显示屏摆放在按钮的旁边,就可以显示按钮的输出的电压了。
The figure above are the output voltage values of the button when it is not activated and when it is activated.
But why not 300 and 1000? Please continue with the following tutorial.
上图分别是按钮非激活时和激活时输出的电压值。
但是为什么不是前面说的300和1000呢?请看继续看下面的教程。

3. Voltage transmission
3、电压的传输
Voltage can be transmitted through the cable. Numberical display can also transmit voltage, but only horizontally.
电压可以通过信号电缆进行传输。数字信号屏也可以进行电压的传输,但只能进行横向传输。

In the process of transmission, the voltage signal will drop by 1V for each transmission grid.
在传输的过程中,每传输1格,电压信号会下降1V。
In the figure above, the voltage signal passes through 12 cables and 3 digital signal screens to reach the last position of the digital signal screen, so the display screen shows 1000V - (12 + 3) V = 985V.
Voltage drop adds to the difficulty of the game, especially in the case of integers (such as 1000V, 100V, 200V, etc.), which is particularly prone to misreading.
The real voltage in the figure below is 1000V, but since the 1000 bits are displayed in thousand digit, but the hundred
digit, tendigit and ones digit are displayed in the values after voltage drops (997, 998, 999), they all add up to 1997.
在上图中,电压信号经过12格电缆、3格数字信号屏才到达数字信号屏的最后一位,所以显示屏显示的是1000V-(12+3)V=985V。
电压下降的属性增加了游戏的难度,特别是在整位数时(如1000、100、200等),特别容易读错。
下图真实的电压是1000V,但是由于千位显示的是1000的千位,但是百位、十位、个位显示的都是电压下降后的数值(997、998、999),所以合起来就变成了1997了。

3. Using Voltage Control Block
3、利用电压控制方块

Many blocks can be controlled by voltage.
The signal light will turn green when it receives high voltage (> 500V) and remain red when it receives (< 500V).
许多方块都可以受到电压的控制。
信号灯在收到高电压(>500V)时则会变成绿色,反之(<500V)时则保持红色。

Similarly, the functions block such as pump or valve will start when high voltage is received, and stop when low voltage is received.
同理,水泵、阀门等功能方块在收到高电压时,则会启动,收到低电压时则停止。
But the crane's starting mode is slightly different. Detailed tutorial can see the wiki of crane block.
但起重机的启动方式稍有不同,详细教程可以看起重机的方块百科



Reply

Use magic Report

34

Threads

36

Posts

161

Credits

Admin

Rank: 9Rank: 9Rank: 9

Credits
161
 Author| Post time 2019-2-9 08:56:32 | Show all posts
1. Sensors

1、传感器
Temperature sensors can convert temperature into voltage signals.
温度传感器可以将温度转换成电压信号。

As you can see from the picture above, the default temperature of the game is 25 degrees Celsius.

可以从上图中看出,游戏的默认温度为25摄氏度。
Other sensors are the same, the pressure sensor detects the pressure, and the shaft sensor detects the speed of the shaft.
其他传感器同理,只不过压力传感器检测的是压力,转速传感器检测的是转速。

2. Comparator
Comparator can set a comparison value, when the input voltage is greater than this comparison value, it will output 1000V high voltage, and vice versa, output 300V low voltage.
比较器可以设置设置一个比较值,当输入的电压大于这个比较值时,则会输出1000V的高电压,反之则输出300V的低电压。

Note that the following texture shows that the comparator has three sides for input (comparated) signals and one side (right in the figure below) for output (1000V or 300V voltage signals).

注意观察下面的贴图,比较器有3面是用来输入(被比较的)信号,1面(下图中的右面)用来输出比较的结果(1000V或300V电压信号)。


But after running,the signal light did not turn green. Why is that?

但是运行后发现信号灯并没有变绿。这是为什么?



Because the same frequency blocks in the game can transmit voltage signals to each other.
Temperature sensor and signal light frequency are 100 by default, so the signal of the sensor will interfere with the signal lamp.
The solution is to set their frequencies differently. Or turn off signal 100 activation in the settings.

因为游戏中同设置同频率的方块可以互相传输电压信号。
温度传感器和信号灯频率默认都是100,所以传感器的信号会干扰到信号灯。
解决方法是将他们的频率设置为不同。或者在设置里将信号100激活关闭。


The following figure shows that when the comparator is set to 10V, the 25V voltage produced by the temperature sensor (after the voltage drop is still greater than 10V), so the comparator output 1000V high voltage, making the signal light green.

下图就是当比较器设置比较值为10V时,由于温度传感器产生的25V电压(经过电压降后仍然)大于10V,所以比较器输出了1000V的高电压,使得信号灯变成了绿色。



34

Threads

36

Posts

161

Credits

Admin

Rank: 9Rank: 9Rank: 9

Credits
161
 Author| Post time 2019-2-9 09:29:42 | Show all posts
The goal of the whole circuit system is only one, that is, to control the voltage.
整个电路系统的目标只有一个,那就是对电压的控制。

In digital circuits, we only need to care about whether the voltage is high (> 500V) or low (< 500V), not how many voltage it is.

在数字电路中,我们只需要在乎电压是高电压(>500V)还是低电压(<500V),而不关心具体是多少V。

Gate circuits are such a group of circuits that can convert high and low voltages to each other

门电路就是这样一组电路,它们能将高、低电压进行相互的转换。

1, not gate

1、非门


Non-gate is the simplest logic gate.

非门是最简单的逻辑门。

The function of the non-gate is to convert the input high voltage into the low voltage, and the input low voltage into the high voltage. (reverse)

非门的作用就是将输入的高电压转换成低电压,输入的低电压转换成高电压。(取反)



2, or gate

2、或门
Without rotating the block, a high voltage (1000V) will be output to the right when one of the upper or lower blocks of the gate has a high voltage (greater than 500V). ("or" relationship)
在不旋转方块的情况下,当或门的上端下端其中一端有高电压(大于500V)时,会在右边输出高电压(1000V)。(“或"的关系)




3, and gate

3、与门
在不旋转方块的情况下,当与门的上端下端同时有高电压(大于500V)时,会在右边输出高电压(1000V)。(“且”的关系)
Without rotating the square, when there is a high voltage (greater than 500V) at the same time with the upper and lower blocks of the gate, a high voltage (1000V) will be output on the right side. ("and" relationship)






You have to log in before you can reply Login | Register

Points Rules

Archiver|手机版|小黑屋|91miaoyue.com ( 桂ICP备18010869号-1 )

2019-5-24 10:48 GMT+8 , Processed in 0.106482 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list